org.apache.ldap.server
Class ApplicationPartition
java.lang.Object
org.apache.ldap.server.AbstractContextPartition
org.apache.ldap.server.ApplicationPartition
- All Implemented Interfaces:
- BackingStore, ContextPartition
- public class ApplicationPartition
- extends AbstractContextPartition
Creates a ContextPartition to be use for application specific contexts.
- Version:
- $Rev: 159259 $
- Author:
- Apache Directory Project
Constructor Summary |
ApplicationPartition(javax.naming.Name upSuffix,
javax.naming.Name normalizedSuffix,
Database db,
SearchEngine searchEngine,
org.apache.ldap.common.schema.AttributeType[] indexAttributes)
|
Method Summary |
javax.naming.Name |
getSuffix(boolean normalized)
Gets the distinguished/absolute name of the suffix for all entries
stored within this BackingStore. |
boolean |
isSuffix(javax.naming.Name dn)
Checks to see if name is a context suffix. |
Methods inherited from class org.apache.ldap.server.AbstractContextPartition |
add, close, delete, getDb, getEngine, hasEntry, inspect, isClosed, list, lookup, lookup, modify, modify, modifyRn, move, move, search, sync |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationPartition
public ApplicationPartition(javax.naming.Name upSuffix,
javax.naming.Name normalizedSuffix,
Database db,
SearchEngine searchEngine,
org.apache.ldap.common.schema.AttributeType[] indexAttributes)
throws javax.naming.NamingException
- Parameters:
upSuffix
- the user provided suffix without normalizationnormalizedSuffix
- the normalized suffixdb
- the database to use for this partitionsearchEngine
- the search engine to use for this partitionindexAttributes
- the index attrivutes including system attributes
- Throws:
javax.naming.NamingException
- on failures while creating this partition
getSuffix
public javax.naming.Name getSuffix(boolean normalized)
- Description copied from interface:
ContextPartition
- Gets the distinguished/absolute name of the suffix for all entries
stored within this BackingStore.
- Parameters:
normalized
- boolean value used to control the normalization of the
returned Name. If true the normalized Name is returned, otherwise the
original user provided Name without normalization is returned.
- Returns:
- Name representing the distinguished/absolute name of this
BackingStores root context.
- See Also:
ContextPartition.getSuffix( boolean )
isSuffix
public boolean isSuffix(javax.naming.Name dn)
throws javax.naming.NamingException
- Description copied from interface:
BackingStore
- Checks to see if name is a context suffix.
- Parameters:
dn
- the normalized distinguished/absolute name of the context
- Returns:
- true if the name is a context suffix, false if it is not.
- Throws:
javax.naming.NamingException
- if there are any problems- See Also:
BackingStore.isSuffix( Name )