public interface IUpdateCommand
This command updates a fragment against repository changes.
The fragment is designated by adding CMS node model elements to the getElements()
list.
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<MObject> cmsNodes)
Deprecated.
use
add(Collection) instead. |
void |
addElement(MObject element)
Add CMS node element to be updated.
|
void |
addElements(java.util.Collection<MObject> elements)
Add CMS node elements to be updated.
|
IUpdateDetails |
execute(org.modelio.vbasic.progress.IModelioProgress iMonitor)
Update the project against repository changes and passed parameters.
|
IUpdateConfig |
getConfiguration() |
java.util.Collection<MObject> |
getElements()
Get the elements where the update command is run.
|
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. |
IUpdateDetails |
switchRepository(org.modelio.vbasic.progress.IModelioProgress iMonitor,
IProjectFragment fragment,
java.lang.String newPath)
Switch the working copy to another repository URL.
|
boolean |
useProcessExtension()
Tells whether the the
process model extensions will be called. |
IUpdateDetails switchRepository(org.modelio.vbasic.progress.IModelioProgress iMonitor, IProjectFragment fragment, java.lang.String newPath) throws CmsException
Imports in the model the differences between the old and new repository.
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.fragment
- the fragment to switchnewPath
- the new branch URLCmsException
- in case of failure. The connection is not usable.void setBatch(boolean batchMode)
batchMode
- true for batch mode. false to allow GUI.IUpdateDetails execute(org.modelio.vbasic.progress.IModelioProgress iMonitor) throws java.io.IOException, CmsException, TransactionStillOpenException
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.java.io.IOException
- dependency analysis failedCmsException
- updating working copy failedTransactionStillOpenException
- if a Modelio transaction is currently open@Deprecated void add(java.util.Collection<MObject> cmsNodes)
add(Collection)
instead.As the update command updates whole model fragments, adding an element will make the whole element fragment update.
cmsNodes
- the CMS node elements to update.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.java.util.Collection<MObject> getElements()
As the update command updates whole model fragments, adding an element will make the whole element fragment update.
IUpdateConfig getConfiguration()
void addElement(MObject element)
As the update command updates whole model fragments, adding an element will make the whole element fragment update.
element
- the elements to update.void addElements(java.util.Collection<MObject> elements)
As the update command updates whole model fragments, adding an element will make the whole element fragment update.
elements
- the elements to update.