public abstract class AbstractCmsContributor extends java.lang.Object implements ICmsContributor
ICmsContributor whose strategy consists in doing nothing.
ICmsContributor.getId() and ICmsContributor.getLabel() must be implemented by the sub classes.
You are encouraged to subclass this class instead of directly implementing the ICmsContributor interface.
| Constructor and Description |
|---|
AbstractCmsContributor() |
| Modifier and Type | Method and Description |
|---|---|
void |
configAdd(org.modelio.vbasic.progress.IModelioProgress monitor,
IAddConfig configuration)
Called before a "add to version" operation is executed.
|
void |
configCommit(org.modelio.vbasic.progress.IModelioProgress monitor,
ICommitConfig configuration)
Called before a commit operation is executed.
|
void |
configGetLock(org.modelio.vbasic.progress.IModelioProgress monitor,
IGetLockConfig configuration)
Ask for the parameters and the confirmation of the locking of the given elements.
|
void |
configMerge(org.modelio.vbasic.progress.IModelioProgress monitor,
IMergeConfig configuration)
Ask for the parameters and the confirmation of the update of the given elements.
|
void |
configRemove(org.modelio.vbasic.progress.IModelioProgress monitor,
IRemoveConfig configuration)
Called before a "remove from version" operation is executed.
|
void |
configRevert(org.modelio.vbasic.progress.IModelioProgress monitor,
IRevertConfig revertConfig)
Called before a revert operation is executed.
|
void |
configUpdate(org.modelio.vbasic.progress.IModelioProgress monitor,
IUpdateConfig configuration)
Ask for the parameters and the confirmation of the update of the given elements.
|
void |
onAddFailed(IAddConfig config,
java.lang.Throwable cause)
Called after a "Add" has failed.
|
void |
onAddSuccess(IAddResult details)
Called after a successful add to version is finished.
|
void |
onCommitFailed(ICommitConfig config,
java.lang.Throwable cause)
Called after a commit has failed.
|
void |
onCommitSuccess(ICommitResult commitResult)
Called after a commit is definitively finished and validated.
|
void |
onGetLockFailed(IGetLockConfig config,
java.lang.Throwable cause)
Called after a "Get lock" has failed.
|
void |
onGetLockSuccess(IGetLockResult lockResult)
Called after a locking operation is finished.
|
void |
onMergeFailed(IMergeConfig config,
java.lang.Throwable cause)
Called after a "Update" has failed.
|
void |
onMergeSuccess(IMergeConfig config,
IUpdateDetails mergeResult)
Called after a successful update is finished
|
void |
onRemoveFailed(IRemoveConfig config,
java.lang.Throwable cause)
Called after a "Remove" has failed.
|
void |
onRemoveSuccess(IRemoveConfig details)
Called after a successful remove from version is finished.
|
void |
onRevertFailed(IRevertConfig config,
java.lang.Throwable cause)
Called after a "Revert" has failed.
|
void |
onRevertSuccess(IRevertResult result)
Called after a revert operation.
|
void |
onUpdateFailed(IUpdateConfig config,
java.lang.Throwable cause)
Called after a "Update" has failed.
|
void |
onUpdateSuccess(IUpdateDetails updateResult)
Called after a successful update is finished
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getLabelpublic void configAdd(org.modelio.vbasic.progress.IModelioProgress monitor,
IAddConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configAdd in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - The add operation configuration.
It may be modified by calling the appropriate methods on the ICommitConfigCmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configCommit(org.modelio.vbasic.progress.IModelioProgress monitor,
ICommitConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configCommit in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - The commit configuration. It may be modified by calling the appropriate methods on the ICommitConfigCmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configGetLock(org.modelio.vbasic.progress.IModelioProgress monitor,
IGetLockConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configGetLock in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - the elements to checkout.CmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configMerge(org.modelio.vbasic.progress.IModelioProgress monitor,
IMergeConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configMerge in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - the command containing the elements on which the update will be run.CmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configRemove(org.modelio.vbasic.progress.IModelioProgress monitor,
IRemoveConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configRemove in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - The add operation configuration.
It may be modified by calling the appropriate methods on the ICommitConfigCmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configRevert(org.modelio.vbasic.progress.IModelioProgress monitor,
IRevertConfig revertConfig)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configRevert in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. revertConfig - The revert configuration. It may be modified by calling the appropriate methods on the
IRevertCommandCmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void configUpdate(org.modelio.vbasic.progress.IModelioProgress monitor,
IUpdateConfig configuration)
throws CmsContributorVetoException
The implementation may confirm or cancel the operation, and partly modify the command parameters.
configUpdate in interface ICmsContributormonitor - the progress monitor to use for reporting progress to the user. configuration - the command containing the elements on which the update will be run.CmsContributorVetoException - if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.public void onAddFailed(IAddConfig config, java.lang.Throwable cause)
onAddFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onAddSuccess(IAddResult details)
onAddSuccess in interface ICmsContributordetails - the result of the add to version.public void onCommitFailed(ICommitConfig config, java.lang.Throwable cause)
onCommitFailed in interface ICmsContributorconfig - the operation that failedcause - the failure cause. Usually a CmsException or a RuntimeException.public void onCommitSuccess(ICommitResult commitResult)
onCommitSuccess in interface ICmsContributorcommitResult - the detail of committed elements.public void onGetLockFailed(IGetLockConfig config, java.lang.Throwable cause)
onGetLockFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onGetLockSuccess(IGetLockResult lockResult)
onGetLockSuccess in interface ICmsContributorlockResult - result of the locking.public void onMergeFailed(IMergeConfig config, java.lang.Throwable cause)
onMergeFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onMergeSuccess(IMergeConfig config, IUpdateDetails mergeResult)
onMergeSuccess in interface ICmsContributorconfig - the finished merge operation.mergeResult - result of the merge.public void onRemoveFailed(IRemoveConfig config, java.lang.Throwable cause)
onRemoveFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onRemoveSuccess(IRemoveConfig details)
onRemoveSuccess in interface ICmsContributordetails - the result of the add to version.public void onRevertFailed(IRevertConfig config, java.lang.Throwable cause)
onRevertFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onRevertSuccess(IRevertResult result)
onRevertSuccess in interface ICmsContributorresult - the result of the revert operation.public void onUpdateFailed(IUpdateConfig config, java.lang.Throwable cause)
onUpdateFailed in interface ICmsContributorconfig - the operation that failed.cause - the failure cause. Usually a CmsException or a RuntimeException.public void onUpdateSuccess(IUpdateDetails updateResult)
onUpdateSuccess in interface ICmsContributorupdateResult - result of the update.