public interface ECPProjectManager
ECPUtil It publishes
observable events on the ECPObserverBus.
Related Observer types: ECPProjectsChangedObserver, ECPProjectContentChangedObserver, ECPProjectOpenClosedObserver, ECPProjectPreDeleteObserver. Use ECPUtil#getECPObserverBus() to
retrieve the ObserverBus and
ECPObserverBus#register(ECPObserver) to register an Observer.| Modifier and Type | Method and Description |
|---|---|
ECPProject |
createProject(ECPProject project,
String name)
Method to construct a new Project based on an existing project as template.
|
ECPProject |
createProject(ECPProvider provider,
String name)
Method to construct an offline Project, this method calls
createProject(ECPProvider, String, ECPProperties) with empty properties. |
ECPProject |
createProject(ECPProvider provider,
String name,
ECPProperties properties)
Method to construct an offline Project and notify listeners about this add.
|
ECPProject |
createProject(ECPRepository repository,
String name,
ECPProperties properties)
Method to construct an shared Project, e.g.
|
ECPProject |
getProject(Object adaptable)
Retrieves the project the adaptable belongs to if possible.
|
ECPProject |
getProject(String name)
Searches for a project based on the provided
String. |
Collection<ECPProject> |
getProjects()
Returns all known projects.
|
ECPProject createProject(ECPProvider provider, String name) throws ECPProjectWithNameExistsException
createProject(ECPProvider, String, ECPProperties) with empty properties. If
ECPProvider.hasCreateProjectWithoutRepositorySupport() returns
false an UnsupportedOperationException is thrown.provider - the ECPProvider of this projectname - the name of the projectECPProjectECPProjectWithNameExistsException - when a project with the same name already existsECPProject createProject(ECPProvider provider, String name, ECPProperties properties) throws ECPProjectWithNameExistsException
ECPProvider.hasCreateProjectWithoutRepositorySupport() returns
false an UnsupportedOperationException is thrown.provider - the ECPProvider of this projectname - the name of the projectproperties - the project propertiesECPProjectECPProjectWithNameExistsException - when a project with the same name already existsECPProject createProject(ECPRepository repository, String name, ECPProperties properties) throws ECPProjectWithNameExistsException
repository - the ECPRepository of this projectname - the name of the projectproperties - the project propertiesECPProjectECPProjectWithNameExistsException - when a project with the same name already existsECPProject createProject(ECPProject project, String name)
project - the template ECPProjectname - the name of the created projectECPProjectECPProject getProject(Object adaptable)
ECPProjectAware
and else uses the AdapterUtil to adapt to a
project.adaptable - the Object to adaptECPProjectECPProject getProject(String name)
String.name - of the project to search forECPProjectCollection<ECPProject> getProjects()
Copyright © 2020. All rights reserved.