|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ECPRepositoryManager
The ECPRepositoryManager contains all ECPRepositories and manages their lifecycle.
It is available as an OSGi service or using 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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
ECPRepository getRepository(Object adaptable)
ECPRepository from an adaptable.
adaptable - the adaptable to adapt
ECPRepository or null if the adaptable could not be adaptedECPRepository getRepository(String name)
name - the name of the repository
ECPRepository or null if no repository with such name exists.Collection<ECPRepository> getRepositories()
ECPRepositories
ECPRepository 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 repository
ECPRepository
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||