1 17 package org.apache.ldap.server.invocation; 18 19 20 import org.apache.ldap.server.BackingStore; 21 22 import javax.naming.Name ; 23 import javax.naming.NamingException ; 24 25 26 32 public class Delete extends Invocation 33 { 34 private static final long serialVersionUID = 3258134639372677425L; 35 36 private Name name; 37 38 39 public Delete( Name name ) 40 { 41 if ( name == null ) 42 { 43 throw new NullPointerException ( "name" ); 44 } 45 46 this.name = name; 47 } 48 49 50 public Name getName() 51 { 52 return name; 53 } 54 55 56 protected Object doExecute( BackingStore store ) throws NamingException 57 { 58 store.delete( name ); 59 60 return null; 61 } 62 63 64 public void setName( Name name ) 65 { 66 this.name = name; 67 } 68 } 69 | Popular Tags |