org.nuxeo.core.resources.model.operations
Class EditOperation

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

public class EditOperation
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
EditOperation(ISiteResource resource, IResourceMetadata metadata)
           
EditOperation(ISiteResource resource, IResourceMetadata metadata, IContentSource content, org.eclipse.core.runtime.IProgressMonitor monitor)
           
EditOperation(ISiteResource resource, IResourceMetadata metadata, IContentSource content, org.eclipse.core.runtime.IProgressMonitor monitor, int flags)
           
EditOperation(ISiteResource resource, IResourceMetadata metadata, int flags)
           
EditOperation(ISiteResource resource, IResourceMetadata metadata, org.eclipse.core.runtime.IProgressMonitor monitor)
           
EditOperation(ISiteResource resource, IResourceMetadata metadata, org.eclipse.core.runtime.IProgressMonitor monitor, int flags)
           
 
Method Summary
 IContentSource getContentSource()
           
 ISiteController getController()
          Get the site controller that should execute the operation
 IResourceMetadata getMetadata()
           
 java.lang.String getType()
          Get the operation type
 void setContent(java.io.File file)
           
 void setContent(IContentSource src)
           
 void setContent(java.io.InputStream in)
          Set the data content of the resource as an input stream
 void setContent(java.net.URL url)
           
 
Methods inherited from class org.nuxeo.core.resources.model.impl.AbstractSiteOperation
clearFlag, execute, getFlags, getInverseOperation, getProgressMonitor, getStatus, 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

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata)

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata,
                     int flags)

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata,
                     org.eclipse.core.runtime.IProgressMonitor monitor)

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata,
                     org.eclipse.core.runtime.IProgressMonitor monitor,
                     int flags)

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata,
                     IContentSource content,
                     org.eclipse.core.runtime.IProgressMonitor monitor)

EditOperation

public EditOperation(ISiteResource resource,
                     IResourceMetadata metadata,
                     IContentSource content,
                     org.eclipse.core.runtime.IProgressMonitor monitor,
                     int flags)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: ISiteOperation
Get the operation type

Specified by:
getType in interface ISiteOperation
Specified by:
getType in class AbstractSiteOperation
Returns:
the operation type

getMetadata

public IResourceMetadata getMetadata()

setContent

public void setContent(IContentSource src)

setContent

public void setContent(java.io.InputStream in)
Set the data content of the resource as an input stream

Parameters:
in - the input stream from where to read the content

setContent

public void setContent(java.net.URL url)

setContent

public void setContent(java.io.File file)

getContentSource

public IContentSource getContentSource()

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