|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.partition.AbstractPartition
org.apache.directory.server.core.partition.impl.btree.BTreePartition<java.lang.Long>
org.apache.directory.server.core.partition.ldif.LdifPartition
public class LdifPartition
A LDIF based partition. Data are stored on disk as LDIF, following this organisation :
/ou=example,ou=system.ldif
/ou=example,ou=system/
|
+--> cn=test.ldif
cn=test/
|
+--> cn=another test.ldif
...
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartition |
|---|
cacheSize, contextEntry, id, optimizer, schemaManager, searchEngine, suffix, SYS_INDEX_OIDS |
| Fields inherited from class org.apache.directory.server.core.partition.AbstractPartition |
|---|
initialized |
| Constructor Summary | |
|---|---|
LdifPartition()
Creates a new instance of LdifPartition. |
|
| Method Summary | |
|---|---|
void |
add(AddOperationContext addContext)
|
void |
addIndexOn(Index<? extends java.lang.Object,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
bind(BindOperationContext bindContext)
|
int |
count()
|
void |
delete(java.lang.Long id)
|
protected void |
doDestroy()
|
protected void |
doInit()
|
Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getAliasIndex()
|
int |
getChildCount(java.lang.Long id)
|
org.apache.directory.shared.ldap.entry.Entry |
getContextEntry()
|
java.lang.String |
getEntryDn(java.lang.Long id)
|
java.lang.Long |
getEntryId(java.lang.String dn)
|
java.lang.String |
getEntryUpdn(java.lang.Long id)
|
java.lang.String |
getEntryUpdn(java.lang.String dn)
|
java.lang.String |
getId()
|
Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getNdnIndex()
|
Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getOneAliasIndex()
|
Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getOneLevelIndex()
|
java.lang.Long |
getParentId(java.lang.Long childId)
|
java.lang.Long |
getParentId(java.lang.String dn)
|
Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getPresenceIndex()
|
java.lang.String |
getProperty(java.lang.String propertyName)
|
Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getSubAliasIndex()
|
Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getSubLevelIndex()
|
Index<?,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getSystemIndex(java.lang.String id)
|
java.util.Iterator<java.lang.String> |
getSystemIndices()
|
Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getUpdnIndex()
|
Index<? extends java.lang.Object,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
getUserIndex(java.lang.String id)
|
java.util.Iterator<java.lang.String> |
getUserIndices()
|
java.lang.String |
getWorkingDirectory()
|
Partition |
getWrappedPartition()
|
boolean |
hasSystemIndexOn(java.lang.String id)
|
boolean |
hasUserIndexOn(java.lang.String id)
|
boolean |
isInitialized()
|
IndexCursor<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> |
list(java.lang.Long id)
|
ClonedServerEntry |
lookup(java.lang.Long id)
|
void |
modify(ModifyOperationContext modifyContext)
|
void |
move(MoveOperationContext moveContext)
|
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
|
void |
rename(RenameOperationContext renameContext)
|
void |
setAliasIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setContextEntry(java.lang.String contextEntry)
|
void |
setId(java.lang.String id)
|
void |
setLdifScanInterval(int ldifScanInterval)
the interval at which the config directory containing LDIF files should be scanned, default value is 10 min |
void |
setNdnIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setOneAliasIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setOneLevelIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setPresenceIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
|
void |
setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
|
void |
setSubAliasIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setSuffix(java.lang.String suffix)
|
void |
setUpdnIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index)
|
void |
setWorkingDirectory(java.lang.String workingDirectory)
|
void |
setWrappedPartition(AvlPartition wrappedPartition)
|
void |
sync()
|
void |
unbind(UnbindOperationContext unbindContext)
|
| Methods inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartition |
|---|
addIndexedAttributes, delete, getCacheSize, getIndexedAttributes, getPartitionDir, getSchemaManager, getSearchEngine, getSuffix, getSuffixDn, hasEntry, list, lookup, search, setCacheSize, setIndexedAttributes, setPartitionDir |
| Methods inherited from class org.apache.directory.server.core.partition.AbstractPartition |
|---|
destroy, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdifPartition()
| Method Detail |
|---|
protected void doInit() throws java.lang.Exception
doInit in class AbstractPartitionjava.lang.Exceptionpublic void add(AddOperationContext addContext) throws java.lang.Exception
add in interface Partitionadd in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void bind(BindOperationContext bindContext) throws java.lang.Exception
java.lang.Exceptionpublic void delete(java.lang.Long id) throws java.lang.Exception
delete in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void modify(ModifyOperationContext modifyContext) throws java.lang.Exception
modify in interface Partitionmodify in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void move(MoveOperationContext moveContext) throws java.lang.Exception
move in interface Partitionmove in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws java.lang.Exception
moveAndRename in interface PartitionmoveAndRename in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void rename(RenameOperationContext renameContext) throws java.lang.Exception
rename in interface Partitionrename in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void addIndexOn(Index<? extends java.lang.Object,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
addIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic int count() throws java.lang.Exception
count in class BTreePartition<java.lang.Long>java.lang.Exceptionprotected void doDestroy() throws java.lang.Exception
doDestroy in class AbstractPartitionjava.lang.Exceptionpublic Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getAliasIndex()
getAliasIndex in class BTreePartition<java.lang.Long>public int getChildCount(java.lang.Long id) throws java.lang.Exception
getChildCount in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.lang.String getEntryDn(java.lang.Long id) throws java.lang.Exception
getEntryDn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.lang.Long getEntryId(java.lang.String dn) throws java.lang.Exception
getEntryId in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.lang.String getEntryUpdn(java.lang.Long id) throws java.lang.Exception
getEntryUpdn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.lang.String getEntryUpdn(java.lang.String dn) throws java.lang.Exception
getEntryUpdn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getNdnIndex()
getNdnIndex in class BTreePartition<java.lang.Long>public Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getOneAliasIndex()
getOneAliasIndex in class BTreePartition<java.lang.Long>public Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getOneLevelIndex()
getOneLevelIndex in class BTreePartition<java.lang.Long>public java.lang.Long getParentId(java.lang.Long childId) throws java.lang.Exception
getParentId in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.lang.Long getParentId(java.lang.String dn) throws java.lang.Exception
getParentId in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getPresenceIndex()
getPresenceIndex in class BTreePartition<java.lang.Long>public java.lang.String getProperty(java.lang.String propertyName) throws java.lang.Exception
getProperty in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getSubAliasIndex()
getSubAliasIndex in class BTreePartition<java.lang.Long>public Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getSubLevelIndex()
getSubLevelIndex in class BTreePartition<java.lang.Long>public Index<?,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getSystemIndex(java.lang.String id) throws java.lang.Exception
getSystemIndex in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.util.Iterator<java.lang.String> getSystemIndices()
getSystemIndices in class BTreePartition<java.lang.Long>public Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getUpdnIndex()
getUpdnIndex in class BTreePartition<java.lang.Long>public Index<? extends java.lang.Object,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> getUserIndex(java.lang.String id) throws java.lang.Exception
getUserIndex in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic java.util.Iterator<java.lang.String> getUserIndices()
getUserIndices in class BTreePartition<java.lang.Long>public boolean hasSystemIndexOn(java.lang.String id) throws java.lang.Exception
hasSystemIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic boolean hasUserIndexOn(java.lang.String id) throws java.lang.Exception
hasUserIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic boolean isInitialized()
isInitialized in interface PartitionisInitialized in class AbstractPartitionpublic IndexCursor<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> list(java.lang.Long id) throws java.lang.Exception
list in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic ClonedServerEntry lookup(java.lang.Long id) throws java.lang.Exception
lookup in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setAliasIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setAliasIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setNdnIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setNdnIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setOneAliasIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setOneAliasIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setOneLevelIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setOneLevelIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setPresenceIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setPresenceIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setProperty(java.lang.String propertyName, java.lang.String propertyValue) throws java.lang.Exception
setProperty in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
setSchemaManager in interface PartitionsetSchemaManager in class BTreePartition<java.lang.Long>public void setSubAliasIndexOn(Index<java.lang.Long,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setSubAliasIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void setUpdnIndexOn(Index<java.lang.String,org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> index) throws java.lang.Exception
setUpdnIndexOn in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void sync() throws java.lang.Exception
sync in interface Partitionsync in class BTreePartition<java.lang.Long>java.lang.Exceptionpublic void unbind(UnbindOperationContext unbindContext) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getId()
getId in interface PartitiongetId in class BTreePartition<java.lang.Long>public void setId(java.lang.String id)
setId in interface PartitionsetId in class BTreePartition<java.lang.Long>public void setSuffix(java.lang.String suffix) throws org.apache.directory.shared.ldap.exception.LdapInvalidDnException
setSuffix in interface PartitionsetSuffix in class BTreePartition<java.lang.Long>org.apache.directory.shared.ldap.exception.LdapInvalidDnExceptionpublic void setLdifScanInterval(int ldifScanInterval)
ldifScanInterval - the scan interval time in minutespublic java.lang.String getWorkingDirectory()
public void setWorkingDirectory(java.lang.String workingDirectory)
workingDirectory - the workingDirectory to setpublic org.apache.directory.shared.ldap.entry.Entry getContextEntry()
public void setContextEntry(java.lang.String contextEntry) throws org.apache.directory.shared.ldap.ldif.LdapLdifException
contextEntry - the contextEntry to set
org.apache.directory.shared.ldap.ldif.LdapLdifExceptionpublic Partition getWrappedPartition()
public void setWrappedPartition(AvlPartition wrappedPartition)
wrappedPartition - the wrappedPartition to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||