|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.core.resources.model.impl.AbstractSiteOperation
public abstract class AbstractSiteOperation
| 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 | |
|---|---|
AbstractSiteOperation()
|
|
| Method Summary | |
|---|---|
void |
clearFlag(int flag)
Clear the given flag (set the corresponding bit to 0) |
void |
execute()
Execute the operation. |
abstract ISiteController |
getController()
Get the site controller that should execute the operation |
int |
getFlags()
Get the supported actions on the operation as a bit mask. |
ISiteOperation |
getInverseOperation()
Get the inverse operation. |
org.eclipse.core.runtime.IProgressMonitor |
getProgressMonitor()
Get the progress monitor used by this operation or null if none |
ISiteOperationStatus |
getStatus()
Get the operation status If the operation was not executed the status is null |
abstract java.lang.String |
getType()
Get the operation type |
boolean |
isAsynchronous()
Tests whther the operation should be exectued asynchronously |
boolean |
isFlagSet(int flag)
Tests if the given flag is set (the corresponding bit is 1) |
boolean |
isHistoryEnabled()
Test whether ot nmot the operation should be logged |
boolean |
isRestricted()
Test whether security checks should be done before executing the operation |
boolean |
isUndoable()
Test whether the operation may be undoed. |
void |
setAsynchronous(boolean val)
Set the asynchornous flag. |
void |
setFlag(int flag)
Set the given flag (set the corresponding bit to 1) |
void |
setFlags(int flags)
Set the supported actioons on the operation |
void |
setHistoryEnabled(boolean val)
Set the history enabled flag |
void |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Set the progress monitor to be used by the operation |
void |
setRestricted(boolean val)
Set the security check flag. |
void |
setStatus(ISiteOperationStatus status)
Set the operation status |
void |
setUndoable(boolean val)
Set the undoable flag. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSiteOperation()
| Method Detail |
|---|
public abstract java.lang.String getType()
ISiteOperation
getType in interface ISiteOperationpublic abstract ISiteController getController()
public void execute()
throws org.eclipse.core.runtime.CoreException
ISiteOperation
execute in interface ISiteOperationorg.eclipse.core.runtime.CoreException - if an error occurspublic ISiteOperationStatus getStatus()
ISiteOperation
getStatus in interface ISiteOperationpublic void setStatus(ISiteOperationStatus status)
ISiteOperation
setStatus in interface ISiteOperationstatus - the status to setpublic org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
ISiteOperation
getProgressMonitor in interface ISiteOperationpublic void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
ISiteOperation
setProgressMonitor in interface ISiteOperationpublic ISiteOperation getInverseOperation()
ISiteOperation
getInverseOperation in interface ISiteOperationpublic int getFlags()
ISiteOperationISiteOperation.NONE this means operation
getFlags in interface ISiteOperationpublic void setFlags(int flags)
ISiteOperation
setFlags in interface ISiteOperationflags - the bit mask of supported actionspublic void setFlag(int flag)
ISiteOperation
setFlag in interface ISiteOperationflag - the flag to setpublic void clearFlag(int flag)
ISiteOperation
clearFlag in interface ISiteOperationflag - the flag to clearpublic boolean isFlagSet(int flag)
ISiteOperation
isFlagSet in interface ISiteOperationflag - the flag to test
public boolean isAsynchronous()
ISiteOperation
isAsynchronous in interface ISiteOperationpublic void setAsynchronous(boolean val)
ISiteOperation
setAsynchronous in interface ISiteOperationval - true if operation should be executed asynchronously, false otherwisepublic boolean isRestricted()
ISiteOperation
isRestricted in interface ISiteOperationpublic void setRestricted(boolean val)
ISiteOperation
setRestricted in interface ISiteOperationval - true if the operation should be checked for right permissions before
being executed or false otherwisepublic boolean isUndoable()
ISiteOperation
isUndoable in interface ISiteOperationpublic void setUndoable(boolean val)
ISiteOperationISiteOperation.getInverseOperation()
setUndoable in interface ISiteOperationval - true if operation can be undoed, false otherwisepublic boolean isHistoryEnabled()
ISiteOperation
isHistoryEnabled in interface ISiteOperationpublic void setHistoryEnabled(boolean val)
ISiteOperation
setHistoryEnabled in interface ISiteOperationval - true to enable history logs, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||