org.apache.ldap.server
Class ApplicationPartition

java.lang.Object
  extended byorg.apache.ldap.server.AbstractContextPartition
      extended byorg.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

Field Summary
 
Fields inherited from class org.apache.ldap.server.AbstractContextPartition
ALIAS_OID, EXISTANCE_OID, HIERARCHY_OID, NDN_OID, ONEALIAS_OID, SUBALIAS_OID, UPDN_OID
 
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
 

Constructor Detail

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 normalization
normalizedSuffix - the normalized suffix
db - the database to use for this partition
searchEngine - the search engine to use for this partition
indexAttributes - the index attrivutes including system attributes
Throws:
javax.naming.NamingException - on failures while creating this partition
Method Detail

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 )


Copyright © 2002-2005 . All Rights Reserved.