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()
Contribution getContribution(String name)
Contribution addContribution(Contribution contrib)
installContribution(Contribution)
to install the contribution.boolean removeContribution(Contribution contrib)
uninstallContribution(Contribution)
to uninstall it.boolean installContribution(Contribution contrib)
To be able to install a contribution you need to persist it first.
boolean uninstallContribution(Contribution contrib)
Contribution updateContribution(Contribution contribution)
A contribution cannot be renamed. The only permitted modifications are changing the description and the auto start status.
Return back the contribution object.
boolean isInstalled(Contribution contrib)
boolean isPersisted(Contribution contrib)
void start()
Contribution.isDisabled()
void stop()
Copyright © 2015 Nuxeo SA. All rights reserved.