public class ReadOnlyConfigurationPartition extends AbstractLdifPartition
CONF_FILE_EXTN, defaultCSNFactoryADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescacheService, contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDnSYS_INDEX_OID_ARRAY, SYS_INDEX_OIDSDEFAULT_ID, ROOT_ID| Constructor and Description |
|---|
ReadOnlyConfigurationPartition(InputStream inputStream,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new instance of ReadOnlyConfigurationPartition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext arg0)
Adds an entry to this ContextPartition.
|
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.
|
org.apache.directory.api.ldap.model.entry.Entry |
delete(String id)
Delete the entry associated with a given Id
|
protected void |
doInit()
Override this method to put your initialization code.
|
void |
modify(ModifyOperationContext arg0)
Modifies an entry by adding, removing or replacing a set of attributes.
|
void |
move(MoveOperationContext arg0)
Transplants a child entry, to a position in the namespace under a new
parent entry.
|
void |
moveAndRename(MoveAndRenameOperationContext arg0)
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 arg0)
Modifies an entry by changing its relative name.
|
getDefaultId, getPartitionPath, initInstanceconvertAndInit, createSystemIndex, getCacheSize, getRootId, isSyncOnWrite, syncaddAliasIndices, addIndex, addIndexedAttributes, addToCache, buildEntryDn, count, doDestroy, dropAliasIndices, dropMovedAliasIndices, dumpIndex, dumpRdnIdx, fetch, fetch, getAdministrativeRoleIndex, getAliasCache, getAliasIndex, getChildCount, getContextCsn, getEntryCsnIndex, getEntryDn, getEntryId, getIndex, getIndexedAttributes, getMasterTable, getObjectClassIndex, getOneAliasIndex, getOptimizer, getParentId, getPresenceIndex, getRdnIndex, getReadWriteLock, getSearchEngine, getSubAliasIndex, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, loadContextCsn, lookup, lookupCache, modify, move, moveAndRename, rename, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateCache, updateRdnIdxcheckInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setCacheService, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDnpublic ReadOnlyConfigurationPartition(InputStream inputStream, org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
inputStream - the input streamschemaManager - the schema managerprotected void doInit()
throws InvalidNameException,
Exception
doInit in class AvlPartitionExceptionInvalidNameExceptionpublic void add(AddOperationContext arg0) throws org.apache.directory.api.ldap.model.exception.LdapException
add in interface Partitionadd in class AbstractBTreePartitionarg0 - the context used to add and entry to this ContextPartitionorg.apache.directory.api.ldap.model.exception.LdapException - if there are any problemspublic org.apache.directory.api.ldap.model.entry.Entry delete(String id) throws org.apache.directory.api.ldap.model.exception.LdapException
delete in interface Storedelete in class AbstractBTreePartitionid - The id of the entry to deleteorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.entry.Entry delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
delete in interface Partitiondelete in class AbstractBTreePartitiondeleteContext - the context of the entry to
delete from this ContextPartition.org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void modify(ModifyOperationContext arg0) throws org.apache.directory.api.ldap.model.exception.LdapException
modify in interface Partitionmodify in class AbstractBTreePartitionarg0 - 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.LdapExceptionDirContext,
DirContext.ADD_ATTRIBUTE,
DirContext.REMOVE_ATTRIBUTE,
DirContext.REPLACE_ATTRIBUTEpublic void move(MoveOperationContext arg0) throws org.apache.directory.api.ldap.model.exception.LdapException
move in interface Partitionmove in class AbstractBTreePartitionarg0 - The context containing the DNs to moveorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void moveAndRename(MoveAndRenameOperationContext arg0) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename in interface PartitionmoveAndRename in class AbstractBTreePartitionarg0 - The context contain all the information about
the modifyDN operationorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void rename(RenameOperationContext arg0) throws org.apache.directory.api.ldap.model.exception.LdapException
rename in interface Partitionrename in class AbstractBTreePartitionarg0 - the modify Dn contextorg.apache.directory.api.ldap.model.exception.LdapExceptionCopyright © 2021. All rights reserved.