public interface ICmsContributor
All registered PEM contributors are called before and after handled SVN operations.
A contributor may modify the SVN command before its execution.
You are strongly encouraged to subclass AbstractCmsContributor
instead of directly implementing this interface.
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.
|
java.lang.String |
getId()
An identifier that uniquely identifies the implementation class.
|
java.lang.String |
getLabel()
Get the contributor GUI label.
|
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
|
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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. revertConfig
- The revert configuration. It may be modified by calling the appropriate methods on the
IRevertCommand
CmsContributorVetoException
- if the contributor oppose a veto to the operation. The exception message
should be a translated user friendly message explaining the veto reason.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.java.lang.String getId()
This may return the implementation class qualified name, the module name.
java.lang.String getLabel()
void onAddFailed(IAddConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onAddSuccess(IAddResult details)
details
- the result of the add to version.void onCommitFailed(ICommitConfig config, java.lang.Throwable cause)
config
- the operation that failedcause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onCommitSuccess(ICommitResult commitResult)
commitResult
- the detail of committed elements.void onGetLockFailed(IGetLockConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onGetLockSuccess(IGetLockResult lockResult)
lockResult
- result of the locking.void onRemoveFailed(IRemoveConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onRemoveSuccess(IRemoveConfig details)
details
- the result of the add to version.void onRevertFailed(IRevertConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onRevertSuccess(IRevertResult result)
result
- the result of the revert operation.void onUpdateFailed(IUpdateConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.void onUpdateSuccess(IUpdateDetails updateResult)
updateResult
- result of the update.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.
monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. 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.void onMergeSuccess(IMergeConfig config, IUpdateDetails mergeResult)
config
- the finished merge operation.mergeResult
- result of the merge.void onMergeFailed(IMergeConfig config, java.lang.Throwable cause)
config
- the operation that failed.cause
- the failure cause. Usually a CmsException
or a RuntimeException
.