public interface DirectoryService
| Modifier and Type | Field and Description |
|---|---|
static ComponentName |
NAME |
| Modifier and Type | Method and Description |
|---|---|
List<Directory> |
getDirectories()
Return all the directories registered into the service.
|
Directory |
getDirectory(String directoryName)
Return the directory with the name directoryName.
|
Directory |
getDirectory(String directoryName,
DocumentModel documentContext)
Return the directory for the specified context.
|
String |
getDirectoryIdField(String directoryName) |
List<String> |
getDirectoryNames() |
String |
getDirectoryPasswordField(String directoryName) |
String |
getDirectorySchema(String directoryName) |
String |
getParentDirectoryName(String directoryName)
Returns the name of the parent directory of specified directory, if
applicable.
|
Session |
open(String directoryName)
Opens a session on specified directory.
|
Session |
open(String directoryName,
DocumentModel documentContext)
Opens a session on the directory for the specified context.
|
void |
registerDirectory(String directoryName,
DirectoryFactory factory) |
void |
unregisterDirectory(String directoryName,
DirectoryFactory factory) |
static final ComponentName NAME
List<String> getDirectoryNames() throws ClientException
ClientExceptionString getDirectorySchema(String directoryName) throws DirectoryException
DirectoryExceptionSession open(String directoryName) throws DirectoryException
This method prefers to throw rather than returning null.
directoryName - DirectoryException - in case the session cannot be createdSession open(String directoryName, DocumentModel documentContext) throws DirectoryException
This method prefers to throw rather than returning null.
directoryName - documentContext - DirectoryException - in case the session cannot be createdDirectory getDirectory(String directoryName, DocumentModel documentContext) throws DirectoryException
If the directoryName is null, return null.
directoryName - documentContext - DirectoryExceptionDirectory getDirectory(String directoryName) throws DirectoryException
If the directoryName is null, return null.
directoryName - DirectoryExceptionList<Directory> getDirectories() throws DirectoryException
DirectoryExceptionvoid registerDirectory(String directoryName, DirectoryFactory factory)
void unregisterDirectory(String directoryName, DirectoryFactory factory)
String getDirectoryIdField(String directoryName) throws DirectoryException
DirectoryExceptionString getDirectoryPasswordField(String directoryName) throws DirectoryException
DirectoryExceptionString getParentDirectoryName(String directoryName) throws DirectoryException
directoryName - DirectoryExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.