public interface ContributionPersistenceManager
Modifier and Type | Method and Description |
---|---|
Contribution |
addContribution(Contribution contrib)
Persists a new contribution.
|
Contribution |
getContribution(String name)
Gets a contribution given its name.
|
List<Contribution> |
getContributions()
Gets a list with all persisted contributions.
|
boolean |
installContribution(Contribution contrib)
Installs the contribution given its name.
|
boolean |
isInstalled(Contribution contrib)
Checks whether a contribution is currently installed.
|
boolean |
isPersisted(Contribution contrib)
Checks whether a contribution is currently persisted.
|
boolean |
removeContribution(Contribution contrib)
Removes a persisted contribution given its name.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
boolean |
uninstallContribution(Contribution contrib)
Uninstalls a contribution given is name.
|
Contribution |
updateContribution(Contribution contribution)
Updates in the storage the given contribution modifications.
|
List<Contribution> getContributions() throws Exception
Exception
Contribution getContribution(String name) throws Exception
Exception
Contribution addContribution(Contribution contrib) throws Exception
installContribution(Contribution)
to
install the contribution.Exception
boolean removeContribution(Contribution contrib) throws Exception
uninstallContribution(Contribution)
to uninstall it.Exception
boolean installContribution(Contribution contrib) throws Exception
To be able to install a contribution you need to persist it first.
Exception
boolean uninstallContribution(Contribution contrib) throws Exception
Exception
Contribution updateContribution(Contribution contribution) throws Exception
A contribution cannot be renamed. The only permitted modifications are changing the description and the auto start status.
Return back the contribution object.
Exception
boolean isInstalled(Contribution contrib) throws Exception
Exception
boolean isPersisted(Contribution contrib) throws Exception
Exception
void start() throws Exception
Contribution.isDisabled()
Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.