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 IsSuffix extends Invocation 33 { 34 private static final long serialVersionUID = 3256723987429273908L; 35 36 private Name name; 37 38 39 public IsSuffix( 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 return store.isSuffix( name ) ? Boolean.TRUE : Boolean.FALSE; 59 } 60 61 62 public void setName( Name name ) 63 { 64 this.name = name; 65 } 66 } 67 | Popular Tags |