public interface RepositoryManager
Modifier and Type | Method and Description |
---|---|
void |
addRepository(Repository repository)
Registers a new repository.
|
void |
clear()
Unregisters all repositories.
|
Repository |
getDefaultRepository()
Gets the default repository.
|
Collection<Repository> |
getRepositories()
Gets all registered repositories.
|
Repository |
getRepository(String name)
Gets a repository by its name.
|
void |
removeRepository(String name)
Removes a registered repository.
|
Collection<Repository> getRepositories()
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 unregistervoid clear()
Repository 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.
Copyright © 2011 Nuxeo SA. All Rights Reserved.