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 repositoryName,
java.lang.String workspace,
java.lang.String path,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
|
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
CURRENT_LOCATION
public static final java.lang.String CURRENT_LOCATION
REQUEST_FOR_VALIDATION
public static final java.lang.String REQUEST_FOR_VALIDATION
VALIDATED
public static final java.lang.String VALIDATED
PENDING
public static final java.lang.String PENDING
REFUSED
public static final java.lang.String REFUSED
DISAPPROVED
public static final java.lang.String DISAPPROVED
DELEGATED
public static final java.lang.String DELEGATED
ABORTED
public static final java.lang.String ABORTED
EXPIRED
public static final java.lang.String EXPIRED
LIVE
public static final java.lang.String LIVE
BACKUP
public static final java.lang.String BACKUP
IN_TRASH
public static final java.lang.String IN_TRASH
EXO_PUBLISH_LOCATION
public static final java.lang.String EXO_PUBLISH_LOCATION
EXO_PENDING_LOCATION
public static final java.lang.String EXO_PENDING_LOCATION
EXO_BACKUP_LOCATION
public static final java.lang.String EXO_BACKUP_LOCATION
EXO_TRASH_LOCATION
public static final java.lang.String EXO_TRASH_LOCATION
ACTION_REASON
public static final java.lang.String ACTION_REASON
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
EXO_CONENT_STATE
public static final java.lang.String EXO_CONENT_STATE
CURRENT_STATE_PROP
public static final java.lang.String CURRENT_STATE_PROP
CURRENT_WORKSPACE_PROP
public static final java.lang.String CURRENT_WORKSPACE_PROP
CURRENT_REPOSITORY_PROP
public static final java.lang.String CURRENT_REPOSITORY_PROP
CURRENT_PATH_PROP
public static final java.lang.String CURRENT_PATH_PROP
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
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
- 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.