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 projectECPProject
ECPProjectWithNameExistsException
- 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 propertiesECPProject
ECPProjectWithNameExistsException
- 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 propertiesECPProject
ECPProjectWithNameExistsException
- when a project with the same name already existsECPProject createProject(ECPProject project, String name)
project
- the template ECPProject
name
- the name of the created projectECPProject
ECPProject getProject(Object adaptable)
ECPProjectAware
and else uses the AdapterUtil to adapt to a
project.adaptable
- the Object to adaptECPProject
ECPProject getProject(String name)
String
.name
- of the project to search forECPProject
Collection<ECPProject> getProjects()
Copyright © 2016. All rights reserved.