public class SingleFileLdifPartition extends AbstractLdifPartition
CONF_FILE_EXTN, defaultCSNFactory
ADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceAT, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndices
contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDn
SYS_INDEX_OID_ARRAY, SYS_INDEX_OIDS
DEFAULT_ID, ROOT_ID
Constructor and Description |
---|
SingleFileLdifPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
DnFactory dnFactory)
Creates a new instance of SingleFileLdifPartition.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Adds an entry to this ContextPartition.
|
org.apache.directory.api.ldap.model.entry.Entry |
delete(PartitionTxn partitionTxn,
String id)
Delete the entry associated with a given Id
|
protected void |
doDestroy(PartitionTxn partitionTxn)
Override this method to put your initialization code.
|
protected void |
doInit()
Override this method to put your initialization code.
|
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 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 renameContext)
Modifies an entry by changing its relative name.
|
void |
setEnableRewriting(PartitionTxn partitionTxn,
boolean enableRewriting)
enable/disable the re-writing of partition data.
|
getDefaultId, getPartitionPath, initInstance
beginReadTransaction, beginWriteTransaction, convertAndInit, createSystemIndex, doRepair, getCacheSize, getRootId, isSyncOnWrite
addAliasIndices, addIndex, addIndexedAttributes, addToCache, buildEntryDn, count, delete, 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, getSubordinates, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, loadContextCsn, lookup, lookupCache, modify, move, moveAndRename, rename, repair, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateCache, updateRdnIdx
checkInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn, sync
public SingleFileLdifPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, DnFactory dnFactory)
schemaManager
- The SchemaManager instancednFactory
- The DN factoryprotected void doInit() throws org.apache.directory.api.ldap.model.exception.LdapException
AvlPartition
doInit
in class AvlPartition
org.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedpublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
add
in interface Partition
add
in class AbstractBTreePartition
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
modify
in interface Partition
modify
in class AbstractBTreePartition
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 void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
rename
in interface Partition
rename
in class AbstractBTreePartition
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
move
in interface Partition
move
in class AbstractBTreePartition
moveContext
- The context containing the DNs to moveorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic void moveAndRename(MoveAndRenameOperationContext opContext) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename
in interface Partition
moveAndRename
in class AbstractBTreePartition
opContext
- The context contain all the information about
the modifyDN operationorg.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemspublic org.apache.directory.api.ldap.model.entry.Entry delete(PartitionTxn partitionTxn, String id) throws org.apache.directory.api.ldap.model.exception.LdapException
AbstractBTreePartition
delete
in interface Store
delete
in class AbstractBTreePartition
partitionTxn
- The transaction to useid
- The id of the entry to deleteorg.apache.directory.api.ldap.model.exception.LdapException
- If the deletion failedprotected void doDestroy(PartitionTxn partitionTxn) throws org.apache.directory.api.ldap.model.exception.LdapException
doDestroy
in class AbstractBTreePartition
partitionTxn
- The transaction to useorg.apache.directory.api.ldap.model.exception.LdapException
- If the destroy call failedpublic void setEnableRewriting(PartitionTxn partitionTxn, boolean enableRewriting) throws org.apache.directory.api.ldap.model.exception.LdapException
partitionTxn
- The transaction to useenableRewriting
- flag to enable/disable re-writingorg.apache.directory.api.ldap.model.exception.LdapException
- If we weren't able to save the dirty dataCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.