public class NullPartition extends AbstractPartition
initialized| Constructor and Description |
|---|
NullPartition()
Creates a new instance of NullPartition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext opContext)
Adds an entry to this ContextPartition.
|
void |
bind(BindOperationContext opContext)
Represents a bind operation issued to authenticate a client.
|
void |
delete(DeleteOperationContext opContext)
Deletes a leaf entry from this ContextPartition: non-leaf entries cannot be
deleted until this operation has been applied to their children.
|
protected void |
doDestroy()
Override this method to put your initialization code.
|
protected void |
doInit()
Override this method to put your initialization code.
|
String |
getId()
Gets the unique identifier for this partition.
|
org.apache.directory.shared.ldap.schema.SchemaManager |
getSchemaManager()
Gets the schema manager assigned to this Partition.
|
String |
getSuffix()
Gets the user provided suffix for this Partition as a String.
|
org.apache.directory.shared.ldap.name.DN |
getSuffixDn()
Gets the normalized suffix as an DN for this Partition after it has
been initialized.
|
EntryFilteringCursor |
list(ListOperationContext opContext)
A specialized form of one level search used to return a minimal set of
information regarding child entries under a base.
|
ClonedServerEntry |
lookup(Long id) |
ClonedServerEntry |
lookup(LookupOperationContext lookupContext)
This method calls
Partition.lookup(LookupOperationContext)
with null attributeIds by default. |
void |
modify(ModifyOperationContext opContext)
Modifies an entry by adding, removing or replacing a set of attributes.
|
void |
move(MoveOperationContext opContext)
Transplants a child entry, to a position in the namespace under a new
parent entry.
|
void |
moveAndRename(MoveAndRenameOperationContext opContext)
Transplants a child entry, to a position in the namespace under a new
parent entry and changes the RN of the child entry which can optionally
have its old RN attributes removed.
|
void |
rename(RenameOperationContext opContext)
Modifies an entry by changing its relative name.
|
EntryFilteringCursor |
search(SearchOperationContext opContext)
Conducts a search against this ContextPartition.
|
void |
setId(String id)
Sets the unique identifier for this partition.
|
void |
setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Sets the schema manager assigned to this Partition.
|
void |
setSuffix(String suffix)
Sets the user provided suffix for this Partition as a String.
|
void |
sync()
This method does nothing by default.
|
void |
unbind(UnbindOperationContext opContext)
Represents an unbind operation issued by an authenticated client.
|
destroy, hasEntry, initialize, isInitializedpublic void add(AddOperationContext opContext) throws Exception
PartitionopContext - the context used to add and entry to this ContextPartitionException - if there are any problemspublic void bind(BindOperationContext opContext) throws Exception
PartitionopContext - the bind context, containing all the needed informations to bindException - if something goes wrongpublic void delete(DeleteOperationContext opContext) throws Exception
PartitionopContext - the context of the entry to
delete from this ContextPartition.Exception - if there are any problemspublic String getId()
Partitionpublic org.apache.directory.shared.ldap.name.DN getSuffixDn()
Partitionpublic EntryFilteringCursor list(ListOperationContext opContext) throws Exception
PartitionopContext - the context containing the distinguished/absolute name for the search/listingServerSearchResultException - if there are any problemspublic ClonedServerEntry lookup(Long id) throws Exception
Exceptionpublic void modify(ModifyOperationContext opContext) throws Exception
PartitionopContext - The context containing the modification operation
to perform on the entry which is one of constants specified by the
DirContext interface:
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE.Exception - if there are any problemsDirContext,
DirContext.ADD_ATTRIBUTE,
DirContext.REMOVE_ATTRIBUTE,
DirContext.REPLACE_ATTRIBUTEpublic void move(MoveOperationContext opContext) throws Exception
PartitionopContext - The context containing the DNs to moveException - if there are any problemspublic void moveAndRename(MoveAndRenameOperationContext opContext) throws Exception
PartitionopContext - The context contain all the information about
the modifyDN operationException - if there are any problemspublic void rename(RenameOperationContext opContext) throws Exception
PartitionopContext - the modify DN contextException - if there are any problemspublic EntryFilteringCursor search(SearchOperationContext opContext) throws Exception
PartitionopContext - The context containing the information used by the operationException - if there are any problemspublic void setId(String id)
Partitionid - the unique identifier for this partitionpublic void setSuffix(String suffix) throws org.apache.directory.shared.ldap.exception.LdapInvalidDnException
suffix - the suffix String for this Partition.org.apache.directory.shared.ldap.exception.LdapInvalidDnException - if the suffix does not conform to LDAP DN syntaxpublic void unbind(UnbindOperationContext opContext) throws Exception
PartitionopContext - the context used to unbindException - if something goes wrongpublic String getSuffix()
Partitionpublic org.apache.directory.shared.ldap.schema.SchemaManager getSchemaManager()
Partitionpublic void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Partitionprotected void doDestroy()
throws Exception
AbstractPartitiondoDestroy in class AbstractPartitionExceptionprotected void doInit()
throws InvalidNameException,
Exception
AbstractPartitiondoInit in class AbstractPartitionExceptionInvalidNameExceptionpublic ClonedServerEntry lookup(LookupOperationContext lookupContext) throws Exception
AbstractPartitionPartition.lookup(LookupOperationContext)
with null attributeIds by default. Please override
this method if there is more effective way for your implementation.lookup in interface Partitionlookup in class AbstractPartitionlookupContext - The context containing the parametersException - if there are any problemspublic void sync()
throws Exception
AbstractPartitionsync in interface Partitionsync in class AbstractPartitionException - if buffers cannot be flushed to diskCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.