|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.xdbm.tools.StoreUtils
public class StoreUtils
A utility class for loading example LDIF data.
Constructor Summary | |
---|---|
StoreUtils()
|
Method Summary | |
---|---|
org.apache.directory.shared.ldap.entry.Entry |
getAttributes(Store<java.lang.Object,java.lang.Long> store,
java.lang.Long id)
This is primarily a convenience method used to extract all the attributes associated with an entry. |
static void |
injectEntryInStore(Store<org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> store,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
adds a given ServerEntry to the store after injecting entryCSN and entryUUID operational attributes |
static void |
loadExampleData(Store<org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> store,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Initializes and loads a store with the example data shown in Structure and Organization TODO might want to make this load an LDIF instead in the future TODO correct size of spaces in user provided DN |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreUtils()
Method Detail |
---|
public static void loadExampleData(Store<org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> store, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws java.lang.Exception
store
- the store object to be initializedregistries
- oid registries
java.lang.Exception
- on access exceptionspublic org.apache.directory.shared.ldap.entry.Entry getAttributes(Store<java.lang.Object,java.lang.Long> store, java.lang.Long id) throws java.lang.Exception
store
- the store to get the attributes fromid
- the id of the entry to get index information for
java.lang.Exception
- if there are failures accessing the underlying storepublic static void injectEntryInStore(Store<org.apache.directory.shared.ldap.entry.ServerEntry,java.lang.Long> store, org.apache.directory.shared.ldap.entry.ServerEntry entry) throws java.lang.Exception
store
- the storedn
- the normalized DNentry
- the server entry
java.lang.Exception
- in case of any problems in adding the entry to the store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |