public class DirectoryServiceImpl extends DefaultComponent implements DirectoryService
NAME| Constructor and Description |
|---|
DirectoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo
bundles.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
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 name,
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 |
registerExtension(Extension extension)
Registers the given extension.
|
void |
unregisterDirectory(String directoryName,
DirectoryFactory factory) |
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, setLastModified, unregisterContributionpublic void applicationStarted(ComponentContext context) throws Exception
ComponentapplicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionpublic Directory getDirectory(String directoryName) throws DirectoryException
DirectoryServiceIf the directoryName is null, return null.
getDirectory in interface DirectoryServiceDirectoryExceptionpublic Directory getDirectory(String name, DocumentModel documentContext) throws DirectoryException
DirectoryServiceIf the directoryName is null, return null.
getDirectory in interface DirectoryServiceDirectoryExceptionpublic List<Directory> getDirectories() throws DirectoryException
DirectoryServicegetDirectories in interface DirectoryServiceDirectoryExceptionpublic void activate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic void registerExtension(Extension extension) throws Exception
ExtensibleregisterExtension in interface ExtensibleregisterExtension in class DefaultComponentextension - the extension to registerException - if any error occurspublic void unregisterExtension(Extension extension) throws Exception
ExtensibleunregisterExtension in interface ExtensibleunregisterExtension in class DefaultComponentextension - the extension to unregisterException - if any error occurspublic void registerDirectory(String directoryName, DirectoryFactory factory)
registerDirectory in interface DirectoryServicepublic void unregisterDirectory(String directoryName, DirectoryFactory factory)
unregisterDirectory in interface DirectoryServicepublic List<String> getDirectoryNames() throws DirectoryException
getDirectoryNames in interface DirectoryServiceDirectoryExceptionpublic String getDirectorySchema(String directoryName) throws DirectoryException
getDirectorySchema in interface DirectoryServiceDirectoryExceptionpublic String getDirectoryIdField(String directoryName) throws DirectoryException
getDirectoryIdField in interface DirectoryServiceDirectoryExceptionpublic String getDirectoryPasswordField(String directoryName) throws DirectoryException
getDirectoryPasswordField in interface DirectoryServiceDirectoryExceptionpublic Session open(String directoryName) throws DirectoryException
DirectoryServiceThis method prefers to throw rather than returning null.
open in interface DirectoryServiceDirectoryException - in case the session cannot be createdpublic Session open(String directoryName, DocumentModel documentContext) throws DirectoryException
DirectoryServiceThis method prefers to throw rather than returning null.
open in interface DirectoryServiceDirectoryException - in case the session cannot be createdpublic String getParentDirectoryName(String directoryName) throws DirectoryException
DirectoryServicegetParentDirectoryName in interface DirectoryServiceDirectoryExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.