public interface IRevertCommand
| Modifier and Type | Method and Description |
|---|---|
void |
addElements(java.util.Collection<MObject> elementsToAdd,
org.modelio.vbasic.progress.IModelioProgress monitor)
Add elements to be reverted.
|
boolean |
doReleaseLocks()
Tells whether locks must be kept or released.
|
IRevertResult |
execute(org.modelio.vbasic.progress.IModelioProgress monitor)
Execute the revert.
|
IRevertConfig |
getConfiguration() |
IRevertDetail |
getDetails()
Get the list of elements to commit revert dependency analysis.
|
java.util.Collection<MObject> |
getSelection()
Get the elements on which the revert was run.
|
boolean |
isBatchMode() |
boolean |
isRecursive()
Get whether the revert must be recursive.
|
void |
setBatch(boolean batchMode)
Set whether the command must be run in batch mode
|
void |
setRecursive(boolean isRecursive,
org.modelio.vbasic.progress.IModelioProgress monitor)
Set whether the revert must be recursive.
|
void |
setReleaseLocks(boolean releaseLocks)
Set whether locks must be kept or released.
|
void |
setUseProcessExtension(boolean val)
Set whether the the
process model extensions will be called. |
boolean |
useProcessExtension()
Tells whether the the
process model extensions will be called. |
IRevertDetail getDetails()
java.util.Collection<MObject> getSelection()
boolean isRecursive()
void setRecursive(boolean isRecursive,
org.modelio.vbasic.progress.IModelioProgress monitor)
Changing this value reruns dependency analysis and invalidates the
value returned by getDetails() . getDetails() must then be called again to get the new revert
details.
isRecursive - whether the revert must be recursive.monitor - the progress monitor to use for reporting progress to the user. void addElements(java.util.Collection<MObject> elementsToAdd, org.modelio.vbasic.progress.IModelioProgress monitor)
Calling this method reruns dependency analysis and invalidates the value returned by
getDetails() . getDetails() must then be called again to get the new revert details.
elementsToAdd - The elements to be added to the revert operation.monitor - the progress monitor to use for reporting progress to the user. done() on the given monitor. null, indicating that no progress should be reported and that the operation cannot be
cancelled.boolean doReleaseLocks()
true if locks must be released, false to keep them.void setReleaseLocks(boolean releaseLocks)
releaseLocks - true to release locks, false to keep them.IRevertResult execute(org.modelio.vbasic.progress.IModelioProgress monitor) throws CmsException, TransactionStillOpenException
monitor - the progress monitor to use for reporting progress to the user. done() on the given monitor. null, indicating that no progress should be reported and that the operation cannot be
cancelled.CmsException - in case of failure.TransactionStillOpenException - if a transaction is currently open.void setBatch(boolean batchMode)
batchMode - true for batch mode. false to allow GUI.boolean isBatchMode()
void setUseProcessExtension(boolean val)
process model extensions will be called.val - true to use the process model extensions will be called.boolean useProcessExtension()
process model extensions will be called.process model extensions will be called.IRevertConfig getConfiguration()