public interface ECPRepositoryManager
ECPUtil It publishes observable
events on the ECPObserverBus.
Related Observer types: ECPRepositoriesChangedObserver, ECPRepositoryContentChangedObserver.
Use ECPUtil#getECPObserverBus() to retrieve the
ObserverBus and
ECPObserverBus#register(ECPObserver) to register an Observer.| Modifier and Type | Method and Description |
|---|---|
ECPRepository |
addRepository(ECPProvider provider,
String name,
String label,
String description,
ECPProperties properties)
This method allows the user to create a repository.
|
Collection<ECPRepository> |
getRepositories()
Returns all known repositories.
|
ECPRepository |
getRepository(Object adaptable)
This method returns a
ECPRepository from an adaptable. |
ECPRepository |
getRepository(String name)
This method returns a repository by its name.
|
ECPRepository getRepository(Object adaptable)
ECPRepository from an adaptable.adaptable - the adaptable to adaptECPRepository or null if the adaptable could not be adaptedECPRepository getRepository(String name)
name - the name of the repositoryECPRepository or null if no repository with such name exists.Collection<ECPRepository> getRepositories()
ECPRepositoriesECPRepository addRepository(ECPProvider provider, String name, String label, String description, ECPProperties properties)
ECPProvider.hasCreateRepositorySupport() returns
false an UnsupportedOperationException is thrown.provider - the ECPProvider of this repositoryname - the name of the new repositorylabel - the label of the new repositorydescription - the description of the new repositoryproperties - the ECPProperties of this repositoryECPRepositoryCopyright © 2016. All rights reserved.