public abstract class Operation<T> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ASYNC |
static int |
BLOCK_CHILD_NOTIFICATIONS |
static int |
BLOCK_JMS |
static int |
INTERNAL |
static int |
KEYED_DATA |
static int |
NONE
Operation flags.
|
static String |
OPERATION_END |
static String |
OPERATION_START |
static int |
RESERVED |
static int |
RUNNING |
static String |
START_EVENT |
static String |
TERMINATE_EVENT |
static int |
TERMINATED |
static int |
URGENT |
static int |
USER_FLAGS
User flags may be used by clients to set custom flags on the operation.
|
public static final String START_EVENT
public static final String TERMINATE_EVENT
public static final String OPERATION_START
public static final String OPERATION_END
public static final int NONE
public static final int RUNNING
public static final int TERMINATED
public static final int INTERNAL
public static final int URGENT
public static final int ASYNC
public static final int BLOCK_JMS
public static final int KEYED_DATA
public static final int BLOCK_CHILD_NOTIFICATIONS
public static final int RESERVED
public static final int USER_FLAGS
public static int USER_FLAG(int n)
n
- public static Operation<?> getCurrent()
public static Operation<?>[] getStack()
public static Operation<?>[] printStack(PrintStream out)
public final Status getStatus()
public final int getFlags()
public final void setFlags(int flags)
public final void clearFlags(int flags)
public final boolean isRunning()
public final boolean isTerminated()
public final boolean isFlagSet(int flag)
public final T getResult()
public final String getName()
public final Operation<?> getParent()
public final CoreSession getSession()
public T run(CoreSession session, OperationHandler handler, ProgressMonitor monitor)
public Date getStartedDate()
public Date getEndedDate()
public long getDuration()
public boolean isStartedBefore(long time)
public void printCommandStack(PrintStream out)
public void addModification(Modification modif)
public void addModification(DocumentRef ref, int modifType)
public ModificationSet getModifications()
public abstract T doRun(ProgressMonitor montior) throws Exception
Exception
public Object getData()
public void setData(Object value)
Copyright © 2011 Nuxeo SA. All Rights Reserved.