public interface RepositoryManager
Repository
and from there to
CoreSession
objects.Modifier and Type | Method and Description |
---|---|
void |
addRepository(Repository repository)
Registers a new repository.
|
Repository |
getDefaultRepository()
Gets the default repository.
|
String |
getDefaultRepositoryName()
Gets the name of the default repository.
|
Collection<Repository> |
getRepositories()
Gets all registered repositories.
|
Repository |
getRepository(String name)
Gets a repository by its name.
|
List<String> |
getRepositoryNames()
Gets the names of registered repositories.
|
void |
removeRepository(String name)
Removes a registered repository.
|
Collection<Repository> getRepositories()
List<String> getRepositoryNames()
Repository getRepository(String name)
name
- the repository namevoid addRepository(Repository repository)
repository
- the repository to registervoid removeRepository(String name)
Do nothing if the repository is not registered.
name
- the repository name to unregisterRepository getDefaultRepository()
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.
String getDefaultRepositoryName()
If there is not a default repository, returns the name of the first registered repository.
Copyright © 2018 Nuxeo. All rights reserved.