org.nuxeo.core.resources.model.impl
Class CompositeSiteOperation

java.lang.Object
  extended by org.nuxeo.core.resources.model.impl.AbstractSiteOperation
      extended by org.nuxeo.core.resources.model.impl.CompositeSiteOperation
All Implemented Interfaces:
ISiteOperation

public abstract class CompositeSiteOperation
extends AbstractSiteOperation

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.core.resources.model.ISiteOperation
ANY, ASYNCHRONOUS, COPY, CREATE, DELETE, EDIT, HISTORY_ENABLED, MOVE, NONE, PUBLISH, RESTRICTED, SUBMIT, UNDOABLE
 
Constructor Summary
CompositeSiteOperation(ISiteOperation[] operations)
           
 
Method Summary
 void execute()
          Execute the operation.
 ISiteController getController()
          Get the site controller that should execute the operation
 ISiteOperation[] getOperations()
           
 void setOperations(ISiteOperation[] operations)
           
 
Methods inherited from class org.nuxeo.core.resources.model.impl.AbstractSiteOperation
clearFlag, getFlags, getInverseOperation, getProgressMonitor, getStatus, getType, isAsynchronous, isFlagSet, isHistoryEnabled, isRestricted, isUndoable, setAsynchronous, setFlag, setFlags, setHistoryEnabled, setProgressMonitor, setRestricted, setStatus, setUndoable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSiteOperation

public CompositeSiteOperation(ISiteOperation[] operations)
Method Detail

setOperations

public void setOperations(ISiteOperation[] operations)

getOperations

public ISiteOperation[] getOperations()

getController

public ISiteController getController()
Description copied from class: AbstractSiteOperation
Get the site controller that should execute the operation

Specified by:
getController in class AbstractSiteOperation
Returns:
the controller

execute

public void execute()
             throws org.eclipse.core.runtime.CoreException
Description copied from interface: ISiteOperation
Execute the operation. The operation is determining the target site controller based on the resources it manipulates and the type of operation, then it is delegating the operation execution to the controller

Specified by:
execute in interface ISiteOperation
Overrides:
execute in class AbstractSiteOperation
Throws:
org.eclipse.core.runtime.CoreException - if an error occurs