public interface IGetLockCommand
Modifier and Type | Method and Description |
---|---|
void |
addElement(MObject el)
Add elements to be locked.
|
void |
addElements(java.util.Collection<MObject> el)
Add elements to be locked.
|
IGetLockResult |
execute(org.modelio.vbasic.progress.IModelioProgress iMonitor)
Get the lock on elements specified by the given parameters.
|
java.lang.String |
getComment()
Get the comment that will annotate the get lock operation.
|
IGetLockConfig |
getConfiguration() |
java.util.Set<MObject> |
getElements()
Get the elements on which the command will be run.
|
boolean |
isBatchMode() |
boolean |
isRecursive()
Get whether the get lock is recursive.
|
void |
setBatch(boolean batchMode)
Set whether the command must be run in batch mode
|
void |
setComment(java.lang.String comment)
Define the comment that will annotate the get lock operation.
|
boolean |
setRecursive(boolean isRecursive)
Set whether the get lock is recursive .
|
void |
setStealLocks(boolean stealLocks)
Set whether the lock should be stolen if already owned by someone else.
|
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. |
IGetLockResult execute(org.modelio.vbasic.progress.IModelioProgress iMonitor) throws CmsException
iMonitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to
call done() on the given monitor. Accepts null, indicating that no progress should be reported and
that the operation cannot be canceled.CmsException
- in case of other failurevoid setStealLocks(boolean stealLocks)
stealLocks
- true
to steal locksvoid setComment(java.lang.String comment)
comment
- a comment string.boolean setRecursive(boolean isRecursive)
isRecursive
- whether the get lock should be recursiveboolean isRecursive()
true
if recursive, else false
.java.util.Set<MObject> getElements()
isRecursive()
is set.void addElements(java.util.Collection<MObject> el)
el
- The elements to be locked.void addElement(MObject el)
el
- An element to be locked.java.lang.String getComment()
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.IGetLockConfig getConfiguration()