public class NuxeoRepositories extends DefaultComponent
Information is cached, and an initial connection to the repository is needed to get the root folder id.
Modifier and Type | Field and Description |
---|---|
protected Map<String,NuxeoRepository> |
repositories |
lastModified
Constructor and Description |
---|
NuxeoRepositories() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
List<NuxeoRepository> |
getRepositories() |
NuxeoRepository |
getRepository(String repositoryId) |
protected void |
initRepositories() |
getAdapter, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected Map<String,NuxeoRepository> repositories
public NuxeoRepositories()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic NuxeoRepository getRepository(String repositoryId)
public List<NuxeoRepository> getRepositories()
protected void initRepositories()
Copyright © 2017 Nuxeo. All rights reserved.