org.exoplatform.processes.publishing
Class ProcessUtil
java.lang.Object
org.exoplatform.processes.publishing.ProcessUtil
public class ProcessUtil
- extends java.lang.Object
Created by The eXo Platform SARL
Author : Pham Xuan Hoa
hoa.pham@exoplatform.com
Dec 18, 2007
|
Method Summary |
static void |
approve(org.jbpm.graph.exe.ExecutionContext context)
|
static void |
backup(org.jbpm.graph.exe.ExecutionContext context)
|
static java.lang.String |
computeDestinationPath(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String srcPath,
java.lang.String destPath)
|
static void |
createTimer(org.jbpm.graph.exe.ExecutionContext context,
org.jbpm.job.Timer timer)
|
static void |
delegate(org.jbpm.graph.exe.ExecutionContext context)
|
static void |
deleteTimer(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String timer,
org.jbpm.graph.exe.Token token)
|
static void |
disapprove(org.jbpm.graph.exe.ExecutionContext context)
|
static java.lang.String |
getActorId(org.jbpm.graph.exe.ExecutionContext context)
|
static java.lang.String |
getAuthor(org.jbpm.graph.exe.ExecutionContext context)
|
static java.lang.String[] |
getCurrentLocation(org.jbpm.graph.exe.ExecutionContext context)
|
static java.lang.String |
getDateLocation(org.jbpm.graph.exe.ExecutionContext context)
|
static javax.jcr.Node |
getNode(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String workspace,
java.lang.String path,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
|
static javax.jcr.Node |
getNode(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String repositoryName,
java.lang.String workspace,
java.lang.String path,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
Deprecated. |
static
|
getService(org.jbpm.graph.exe.ExecutionContext context,
java.lang.Class<T> type)
|
static void |
moveTrash(org.jbpm.graph.exe.ExecutionContext context)
|
static void |
publish(org.jbpm.graph.exe.ExecutionContext context)
|
static void |
requestForValidation(org.jbpm.graph.exe.ExecutionContext context)
|
static void |
setCurrentLocation(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String currentWorkspace,
java.lang.String currentPath)
|
static void |
waitForPublish(org.jbpm.graph.exe.ExecutionContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT_STATE
public static final java.lang.String CURRENT_STATE
- See Also:
- Constant Field Values
CURRENT_LOCATION
public static final java.lang.String CURRENT_LOCATION
- See Also:
- Constant Field Values
REQUEST_FOR_VALIDATION
public static final java.lang.String REQUEST_FOR_VALIDATION
- See Also:
- Constant Field Values
VALIDATED
public static final java.lang.String VALIDATED
- See Also:
- Constant Field Values
PENDING
public static final java.lang.String PENDING
- See Also:
- Constant Field Values
REFUSED
public static final java.lang.String REFUSED
- See Also:
- Constant Field Values
DISAPPROVED
public static final java.lang.String DISAPPROVED
- See Also:
- Constant Field Values
DELEGATED
public static final java.lang.String DELEGATED
- See Also:
- Constant Field Values
ABORTED
public static final java.lang.String ABORTED
- See Also:
- Constant Field Values
EXPIRED
public static final java.lang.String EXPIRED
- See Also:
- Constant Field Values
LIVE
public static final java.lang.String LIVE
- See Also:
- Constant Field Values
BACKUP
public static final java.lang.String BACKUP
- See Also:
- Constant Field Values
IN_TRASH
public static final java.lang.String IN_TRASH
- See Also:
- Constant Field Values
EXO_PUBLISH_LOCATION
public static final java.lang.String EXO_PUBLISH_LOCATION
- See Also:
- Constant Field Values
EXO_PENDING_LOCATION
public static final java.lang.String EXO_PENDING_LOCATION
- See Also:
- Constant Field Values
EXO_BACKUP_LOCATION
public static final java.lang.String EXO_BACKUP_LOCATION
- See Also:
- Constant Field Values
EXO_TRASH_LOCATION
public static final java.lang.String EXO_TRASH_LOCATION
- See Also:
- Constant Field Values
ACTION_REASON
public static final java.lang.String ACTION_REASON
- See Also:
- Constant Field Values
REPOSITORY_INDEX
public static final int REPOSITORY_INDEX
- See Also:
- Constant Field Values
WORKSPACE_INDEX
public static final int WORKSPACE_INDEX
- See Also:
- Constant Field Values
PATH_INDEX
public static final int PATH_INDEX
- See Also:
- Constant Field Values
EXO_VALIDATIONREQUEST
public static final java.lang.String EXO_VALIDATIONREQUEST
- See Also:
- Constant Field Values
EXO_CONENT_STATE
public static final java.lang.String EXO_CONENT_STATE
- See Also:
- Constant Field Values
CURRENT_STATE_PROP
public static final java.lang.String CURRENT_STATE_PROP
- See Also:
- Constant Field Values
CURRENT_WORKSPACE_PROP
public static final java.lang.String CURRENT_WORKSPACE_PROP
- See Also:
- Constant Field Values
CURRENT_REPOSITORY_PROP
public static final java.lang.String CURRENT_REPOSITORY_PROP
- See Also:
- Constant Field Values
CURRENT_PATH_PROP
public static final java.lang.String CURRENT_PATH_PROP
- See Also:
- Constant Field Values
ProcessUtil
public ProcessUtil()
createTimer
public static void createTimer(org.jbpm.graph.exe.ExecutionContext context,
org.jbpm.job.Timer timer)
deleteTimer
public static void deleteTimer(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String timer,
org.jbpm.graph.exe.Token token)
requestForValidation
public static void requestForValidation(org.jbpm.graph.exe.ExecutionContext context)
approve
public static void approve(org.jbpm.graph.exe.ExecutionContext context)
disapprove
public static void disapprove(org.jbpm.graph.exe.ExecutionContext context)
publish
public static void publish(org.jbpm.graph.exe.ExecutionContext context)
waitForPublish
public static void waitForPublish(org.jbpm.graph.exe.ExecutionContext context)
delegate
public static void delegate(org.jbpm.graph.exe.ExecutionContext context)
backup
public static void backup(org.jbpm.graph.exe.ExecutionContext context)
moveTrash
public static void moveTrash(org.jbpm.graph.exe.ExecutionContext context)
getNode
@Deprecated
public static javax.jcr.Node getNode(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String repositoryName,
java.lang.String workspace,
java.lang.String path,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
throws java.lang.Exception
- Deprecated.
- Throws:
java.lang.Exception
getNode
public static javax.jcr.Node getNode(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String workspace,
java.lang.String path,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
throws java.lang.Exception
- Throws:
java.lang.Exception
getActorId
public static java.lang.String getActorId(org.jbpm.graph.exe.ExecutionContext context)
setCurrentLocation
public static void setCurrentLocation(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String currentWorkspace,
java.lang.String currentPath)
getCurrentLocation
public static java.lang.String[] getCurrentLocation(org.jbpm.graph.exe.ExecutionContext context)
getService
public static <T> T getService(org.jbpm.graph.exe.ExecutionContext context,
java.lang.Class<T> type)
getAuthor
public static java.lang.String getAuthor(org.jbpm.graph.exe.ExecutionContext context)
computeDestinationPath
public static java.lang.String computeDestinationPath(org.jbpm.graph.exe.ExecutionContext context,
java.lang.String srcPath,
java.lang.String destPath)
getDateLocation
public static java.lang.String getDateLocation(org.jbpm.graph.exe.ExecutionContext context)
Copyright © 2012 eXo Platform SAS. All Rights Reserved.