public interface IAddCommand
Take the SVN lock on the necessary parent elements before marking the elements. If some parents cannot be locked, only the elements whose parent is writable will be added to version.
Modifier and Type | Method and Description |
---|---|
void |
addElement(MObject toAdd)
Add the given element to the collection of elements to add.
|
void |
addElements(java.util.Collection<MObject> toAdd)
Add the given elements to the collection of elements to add.
|
void |
addFiles(java.util.Collection<java.io.File> f,
java.util.Map<java.lang.String,java.lang.String> cmsProps)
Add files to be added to version with SVN properties.
|
IAddResult |
execute(org.modelio.vbasic.progress.IModelioProgress iMonitor)
Mark the elements to be added to version control.
|
IAddConfig |
getConfiguration() |
java.util.Collection<MObject> |
getElements()
Get the elements to add.
|
boolean |
isBatchMode() |
void |
setBatch(boolean batchMode)
Set whether the command must be run in batch mode
|
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. |
IAddResult execute(org.modelio.vbasic.progress.IModelioProgress iMonitor) throws CmsException, java.lang.IllegalStateException
Take the SVN lock on the necessary parent elements before marking the elements. If some parents cannot be locked, only the elements whose parent is writable will be added to version.
iMonitor
- the progress monitor to use for reporting progress to the user.null
, indicating that no progress should be reported and that the operation cannot be cancelled.null
if no get lock operation was necessary.CmsException
- if the operation fails.java.lang.IllegalStateException
- if there is no repository connection.void addElements(java.util.Collection<MObject> toAdd)
toAdd
- the elements to add.void addElement(MObject toAdd)
toAdd
- the element to add.java.util.Collection<MObject> getElements()
The returned collection reflects the command configuration and may be freely modified .
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.IAddConfig getConfiguration()
void setBatch(boolean batchMode)
batchMode
- true for batch mode. false to allow GUI.boolean isBatchMode()
void addFiles(java.util.Collection<java.io.File> f, java.util.Map<java.lang.String,java.lang.String> cmsProps)
f
- the files to addcmsProps
- SVN properties to put on the files. null
to apply default properties.