public interface Directory
This interface is implemented in order to create an NXDirectory. One should implement this interface in order to create either a new Directory implementation or a new Directory Source.
| Modifier and Type | Method and Description |
|---|---|
DirectoryCache |
getCache()
Gets the cache instance of the directory
|
String |
getIdField()
Gets the id field of the schema for this directory.
|
String |
getName()
Gets the unique name of the directory, used for registering.
|
String |
getParentDirectory()
Gets the name of the parent directory.
|
String |
getPasswordField()
Gets the password field of the schema for this directory.
|
Reference |
getReference(String referenceFieldName)
Lookup a Reference by field name.
|
Collection<Reference> |
getReferences()
Lookup all References defined on the directory.
|
String |
getSchema()
Gets the schema name used by this directory.
|
Session |
getSession()
Creates a session for accessing entries in this directory.
|
void |
invalidateDirectoryCache()
Invalidates the cache instance of the directory
|
void |
shutdown()
Shuts down the directory.
|
String getName() throws DirectoryException
DirectoryExceptionString getSchema() throws DirectoryException
DirectoryExceptionString getParentDirectory() throws DirectoryException
DirectoryExceptionString getIdField() throws DirectoryException
DirectoryExceptionString getPasswordField() throws DirectoryException
DirectoryExceptionvoid shutdown()
throws DirectoryException
DirectoryExceptionSession getSession() throws DirectoryException
DirectoryException - if a session cannot be createdReference getReference(String referenceFieldName) throws DirectoryException
DirectoryExceptionCollection<Reference> getReferences() throws DirectoryException
DirectoryExceptionDirectoryCache getCache() throws DirectoryException
DirectoryExceptionvoid invalidateDirectoryCache()
throws DirectoryException
DirectoryExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.