public Partition getPartition( LdapDN dn ) throws NamingException { return getBackend( dn ); }
/** * @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#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 ); }
/** * @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#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 ); }
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 ); }
/** * @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 ); }
/** * 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 ); }
/** * @see Partition#hasEntry(org.apache.directory.shared.ldap.name.LdapDN) */ public boolean hasEntry( LdapDN dn ) throws NamingException { if ( IS_DEBUG ) { log.debug( "Check if DN '" + dn + "' exists." ); } if ( dn.size() == 0 ) { return true; } Partition backend = getBackend( dn ); return backend.hasEntry( dn ); }
/** * @see Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN) */ public Attributes lookup( LdapDN dn ) throws NamingException { if ( dn.size() == 0 ) { return ( Attributes ) rootDSE.clone(); } Partition backend = getBackend( dn ); return backend.lookup( dn ); }
/** * @see Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[]) */ public Attributes lookup( LdapDN dn, String[] attrIds ) throws NamingException { if ( dn.size() == 0 ) { Attributes retval = new LockableAttributesImpl(); NamingEnumeration list = rootDSE.getIDs(); while ( list.hasMore() ) { String id = ( String ) list.next(); Attribute attr = rootDSE.get( id ); retval.put( ( Attribute ) attr.clone() ); } return retval; } Partition backend = getBackend( dn ); return backend.lookup( dn, attrIds ); }
public boolean compare( LdapDN name, String oid, Object value ) throws NamingException Partition partition = getBackend( name ); AttributeTypeRegistry registry = factoryCfg.getGlobalRegistries().getAttributeTypeRegistry();
Partition backend = getBackend( base ); return backend.search( base, env, filter, searchCtls );