protected Partition addPartition(String partitionId, String partitionDn) throws Exception { Partition partition = new JdbmPartition(); partition.setId(partitionId); partition.setSuffix(partitionDn); service.addPartition(partition); return partition; }
/** * @see PartitionNexus#getSuffix(org.apache.directory.shared.ldap.name.LdapDN) */ public LdapDN getSuffix ( LdapDN dn ) throws NamingException { Partition backend = getBackend( dn ); return backend.getSuffix(); }
/** * @see Partition#delete(org.apache.directory.shared.ldap.name.LdapDN) */ public void delete( LdapDN dn ) throws NamingException { Partition backend = getBackend( dn ); backend.delete( dn ); }
/** * @see Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,int,javax.naming.directory.Attributes) */ public void modify( LdapDN dn, int modOp, Attributes mods ) throws NamingException { Partition backend = getBackend( dn ); backend.modify( dn, modOp, mods ); }
/** * @see Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN,String,boolean) */ public void move( LdapDN oldChildDn, LdapDN newParentDn, String newRdn, boolean deleteOldRdn ) throws NamingException { Partition backend = getBackend( oldChildDn ); backend.move( oldChildDn, newParentDn, newRdn, deleteOldRdn ); }
public void unbind( LdapDN bindDn ) throws NamingException { Partition partition = getBackend( bindDn ); partition.unbind( bindDn ); }
public void bind( LdapDN bindDn, byte[] credentials, List mechanisms, String saslAuthId ) throws NamingException { Partition partition = getBackend( bindDn ); partition.bind( bindDn, credentials, mechanisms, saslAuthId ); }
/** * @see Partition#list(org.apache.directory.shared.ldap.name.LdapDN) */ public NamingEnumeration list( LdapDN base ) throws NamingException { Partition backend = getBackend( base ); return backend.list( base ); }
/** * @see Partition#modifyRn(org.apache.directory.shared.ldap.name.LdapDN,String,boolean) */ public void modifyRn( LdapDN dn, String newRdn, boolean deleteOldRdn ) throws NamingException { Partition backend = getBackend( dn ); backend.modifyRn( dn, newRdn, deleteOldRdn ); }
/** * Looks up the backend corresponding to the entry first, then checks to * see if the entry already exists. If so an exception is thrown. If not * the add operation against the backend proceeds. This check is performed * here so backend implementors do not have to worry about performing these * kinds of checks. * * @see Partition#add(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.Attributes) */ public void add( LdapDN dn, Attributes entry ) throws NamingException { Partition backend = getBackend( dn ); backend.add( dn, entry ); }
public void modify( NextInterceptor next, LdapDN name, int modOp, Attributes mods ) throws NamingException { nexus.modify( name, modOp, mods ); }
public void move( NextInterceptor next, LdapDN oriChildName, LdapDN newParentName, String newRn, boolean deleteOldRn ) throws NamingException { nexus.move( oriChildName, newParentName, newRn, deleteOldRn ); }
public void bind( NextInterceptor next, LdapDN bindDn, byte[] credentials, List mechanisms, String saslAuthId ) throws NamingException { nexus.bind( bindDn, credentials, mechanisms, saslAuthId ); }
/** * This method calls {@link Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[])} * with null <tt>attributeIds</tt> by default. Please override * this method if there is more effective way for your implementation. */ public Attributes lookup( LdapDN name ) throws NamingException { return lookup( name, null ); }
public void unbind( NextInterceptor next, LdapDN bindDn ) throws NamingException { nexus.unbind( bindDn ); } };
public LdapDN getMatchedName ( LdapDN dn ) throws NamingException { return getMatchedName( dn, null ); }
public void delete( LdapDN name ) throws NamingException { delete( name, null ); }
public void removeContextPartition( LdapDN suffix ) throws NamingException { removeContextPartition( suffix, null ); }
/** * @see Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.ModificationItem[]) */ public void modify( LdapDN dn, ModificationItemImpl[] mods ) throws NamingException { Partition backend = getBackend( dn ); backend.modify( dn, mods ); }
/** * @see Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN) */ public void move( LdapDN oriChildName, LdapDN newParentName ) throws NamingException { Partition backend = getBackend( oriChildName ); backend.move( oriChildName, newParentName ); }