|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ECPProjectManager
The ECPProjectManager provides access to ECPProjects and manages their lifecycle.
It is available as an OSGi service or using 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 project
ECPProject
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 properties
ECPProject
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 properties
ECPProject
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 project
ECPProject
ECPProject getProject(Object adaptable)
ECPProjectAware
and else uses the AdapterUtil to adapt to a
project.
adaptable
- the Object to adapt
ECPProject
ECPProject getProject(String name)
String
.
name
- of the project to search for
ECPProject
Collection<ECPProject> getProjects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |