public class RootPartition extends AbstractPartition
contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDn
DEFAULT_ID, ROOT_ID
Modifier | Constructor and Description |
---|---|
protected |
RootPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Adds an entry to this ContextPartition.
|
PartitionReadTxn |
beginReadTransaction()
Start a read transaction
|
PartitionWriteTxn |
beginWriteTransaction()
Start a write transaction
|
org.apache.directory.api.ldap.model.entry.Entry |
delete(DeleteOperationContext deleteContext)
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(PartitionTxn partitionTxn)
Override this method to put your initialization code.
|
protected void |
doInit()
Override this method to put your initialization code.
|
protected void |
doRepair()
Override this method to implement a repair method
|
Subordinates |
getSubordinates(PartitionTxn partitionTxn,
org.apache.directory.api.ldap.model.entry.Entry entry)
Return the number of children and subordinates for a given entry
|
boolean |
hasEntry(HasEntryOperationContext hasEntryContext)
Fast operation to check and see if a particular entry exists.
|
org.apache.directory.api.ldap.model.entry.Entry |
lookup(LookupOperationContext lookupContext)
Looks up an entry by distinguished/absolute name.
|
void |
modify(ModifyOperationContext modifyContext)
Modifies an entry by adding, removing or replacing a set of attributes.
|
void |
move(MoveOperationContext moveContext)
Transplants a child entry, to a position in the namespace under a new
parent entry.
|
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
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 renameContext)
Modifies an entry by changing its relative name.
|
void |
saveContextCsn(PartitionTxn partitionTxn)
Saves the context CSN value in the context entry of the partition
|
EntryFilteringCursor |
search(SearchOperationContext searchContext)
Conducts a search against this ContextPartition.
|
void |
unbind(UnbindOperationContext unbindContext)
Represents an unbind operation issued by an authenticated client.
|
checkInitialized, destroy, dumpIndex, getContextCsn, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, repair, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn, sync
protected RootPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
public PartitionReadTxn beginReadTransaction()
Partition
public PartitionWriteTxn beginWriteTransaction()
Partition
protected void doRepair() throws org.apache.directory.api.ldap.model.exception.LdapException
AbstractPartition
doRepair
in class AbstractPartition
org.apache.directory.api.ldap.model.exception.LdapException
- If the repair failedpublic org.apache.directory.api.ldap.model.entry.Entry delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
deleteContext
- the context of the entry to
delete from this ContextPartition.org.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
addContext
- the context used to add and entry to this ContextPartitionorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
modifyContext
- 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
.org.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
searchContext
- The context containing the information used by the operationorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic org.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
lookupContext
- The context containing the parametersorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic boolean hasEntry(HasEntryOperationContext hasEntryContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
hasEntryContext
- The context used to pass informationsorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
renameContext
- the modify Dn contextorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
moveContext
- The context containing the DNs to moveorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
moveAndRenameContext
- The context contain all the information about
the modifyDN operationorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void unbind(UnbindOperationContext unbindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
unbindContext
- the context used to unbindorg.apache.directory.api.ldap.model.exception.LdapException
- if something goes wrongpublic void saveContextCsn(PartitionTxn partitionTxn) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
partitionTxn
- The transaction to useorg.apache.directory.api.ldap.model.exception.LdapException
- If the context can't be savedpublic Subordinates getSubordinates(PartitionTxn partitionTxn, org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition
partitionTxn
- The transaction to useentry
- The entryorg.apache.directory.api.ldap.model.exception.LdapException
- If we had an issue while processing the requestprotected void doDestroy(PartitionTxn partitionTxn) throws org.apache.directory.api.ldap.model.exception.LdapException
AbstractPartition
doDestroy
in class AbstractPartition
partitionTxn
- The transaction to useorg.apache.directory.api.ldap.model.exception.LdapException
- If the destroy call failedprotected void doInit() throws InvalidNameException, org.apache.directory.api.ldap.model.exception.LdapException
AbstractPartition
doInit
in class AbstractPartition
InvalidNameException
- If the initialization failedorg.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.