|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.repository.ejb.RepositoryManagerBean
public class RepositoryManagerBean
Exposes a local repository manager as an stateless session bean.
Constructor Summary | |
---|---|
RepositoryManagerBean()
|
Method Summary | |
---|---|
void |
addRepository(Repository repository)
Registers a new repository. |
void |
clear()
Unregisters all repositories. |
Repository |
getDefaultRepository()
Gets the default repository. |
java.util.Collection<Repository> |
getRepositories()
Gets all registered repositories. |
Repository |
getRepository(java.lang.String name)
Gets a repository by its name. |
void |
removeRepository(java.lang.String name)
Removes a registered repository. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryManagerBean()
Method Detail |
---|
public void addRepository(Repository repository)
RepositoryManager
addRepository
in interface RepositoryManager
repository
- the repository to registerpublic java.util.Collection<Repository> getRepositories()
RepositoryManager
getRepositories
in interface RepositoryManager
public Repository getRepository(java.lang.String name)
RepositoryManager
getRepository
in interface RepositoryManager
name
- the repository name
public void removeRepository(java.lang.String name)
RepositoryManager
Do nothing if the repository is not registered.
removeRepository
in interface RepositoryManager
name
- the repository name to unregisterpublic void clear()
RepositoryManager
clear
in interface RepositoryManager
public Repository getDefaultRepository()
RepositoryManager
If there is not a default repository returns the first registered. repository
This is a convenient method to get the repository for application having a single repository.
getDefaultRepository
in interface RepositoryManager
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |