com.liferay.portal.kernel.workflow
Class WorkflowTaskManagerUtil

java.lang.Object
  extended by com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil

public class WorkflowTaskManagerUtil
extends java.lang.Object

View Source

Author:
Micha Kiener, Shuyang Zhou, Brian Wing Shun Chan

Constructor Summary
WorkflowTaskManagerUtil()
           
 
Method Summary
static WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskId, long roleId, java.lang.String comment, java.util.Map<java.lang.String,java.lang.Object> context)
           
static WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, java.lang.String comment, java.util.Map<java.lang.String,java.lang.Object> context)
           
static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, java.lang.String transitionName, java.lang.String comment, java.util.Map<java.lang.String,java.lang.Object> context)
           
static java.util.List<java.lang.String> getNextTransitionNames(long companyId, long userId, long workflowTaskId)
           
static long[] getPooledActorsIds(long companyId, long workflowTaskId)
           
static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId)
           
static int getWorkflowTaskCount(long companyId, java.lang.Boolean completed)
           
static int getWorkflowTaskCountByRole(long companyId, long roleId, java.lang.Boolean completed)
           
static int getWorkflowTaskCountByUser(long companyId, long userId, java.lang.Boolean completed)
           
static int getWorkflowTaskCountByUserRoles(long companyId, long userId, java.lang.Boolean completed)
           
static int getWorkflowTaskCountByWorkflowInstance(long companyId, long workflowInstanceId, java.lang.Boolean completed)
           
static WorkflowTaskManager getWorkflowTaskManager()
           
static java.util.List<WorkflowTask> getWorkflowTasks(long companyId, java.lang.Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static java.util.List<WorkflowTask> getWorkflowTasksByRole(long companyId, long roleId, java.lang.Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static java.util.List<WorkflowTask> getWorkflowTasksByUser(long companyId, long userId, java.lang.Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static java.util.List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId, long userId, java.lang.Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static java.util.List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId, long workflowInstanceId, java.lang.Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
 void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowTaskManagerUtil

public WorkflowTaskManagerUtil()
Method Detail

assignWorkflowTaskToRole

public static WorkflowTask assignWorkflowTaskToRole(long companyId,
                                                    long userId,
                                                    long workflowTaskId,
                                                    long roleId,
                                                    java.lang.String comment,
                                                    java.util.Map<java.lang.String,java.lang.Object> context)
                                             throws WorkflowException
Throws:
WorkflowException

assignWorkflowTaskToUser

public static WorkflowTask assignWorkflowTaskToUser(long companyId,
                                                    long userId,
                                                    long workflowTaskId,
                                                    long assigneeUserId,
                                                    java.lang.String comment,
                                                    java.util.Map<java.lang.String,java.lang.Object> context)
                                             throws WorkflowException
Throws:
WorkflowException

completeWorkflowTask

public static WorkflowTask completeWorkflowTask(long companyId,
                                                long userId,
                                                long workflowTaskId,
                                                java.lang.String transitionName,
                                                java.lang.String comment,
                                                java.util.Map<java.lang.String,java.lang.Object> context)
                                         throws WorkflowException
Throws:
WorkflowException

getNextTransitionNames

public static java.util.List<java.lang.String> getNextTransitionNames(long companyId,
                                                                      long userId,
                                                                      long workflowTaskId)
                                                               throws WorkflowException
Throws:
WorkflowException

getPooledActorsIds

public static long[] getPooledActorsIds(long companyId,
                                        long workflowTaskId)
                                 throws WorkflowException
Throws:
WorkflowException

getWorkflowTask

public static WorkflowTask getWorkflowTask(long companyId,
                                           long workflowTaskId)
                                    throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCount

public static int getWorkflowTaskCount(long companyId,
                                       java.lang.Boolean completed)
                                throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByRole

public static int getWorkflowTaskCountByRole(long companyId,
                                             long roleId,
                                             java.lang.Boolean completed)
                                      throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByUser

public static int getWorkflowTaskCountByUser(long companyId,
                                             long userId,
                                             java.lang.Boolean completed)
                                      throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByUserRoles

public static int getWorkflowTaskCountByUserRoles(long companyId,
                                                  long userId,
                                                  java.lang.Boolean completed)
                                           throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByWorkflowInstance

public static int getWorkflowTaskCountByWorkflowInstance(long companyId,
                                                         long workflowInstanceId,
                                                         java.lang.Boolean completed)
                                                  throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskManager

public static WorkflowTaskManager getWorkflowTaskManager()

getWorkflowTasks

public static java.util.List<WorkflowTask> getWorkflowTasks(long companyId,
                                                            java.lang.Boolean completed,
                                                            int start,
                                                            int end,
                                                            OrderByComparator orderByComparator)
                                                     throws WorkflowException
Throws:
WorkflowException

getWorkflowTasksByRole

public static java.util.List<WorkflowTask> getWorkflowTasksByRole(long companyId,
                                                                  long roleId,
                                                                  java.lang.Boolean completed,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                                                           throws WorkflowException
Throws:
WorkflowException

getWorkflowTasksByUser

public static java.util.List<WorkflowTask> getWorkflowTasksByUser(long companyId,
                                                                  long userId,
                                                                  java.lang.Boolean completed,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                                                           throws WorkflowException
Throws:
WorkflowException

getWorkflowTasksByUserRoles

public static java.util.List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId,
                                                                       long userId,
                                                                       java.lang.Boolean completed,
                                                                       int start,
                                                                       int end,
                                                                       OrderByComparator orderByComparator)
                                                                throws WorkflowException
Throws:
WorkflowException

getWorkflowTasksByWorkflowInstance

public static java.util.List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId,
                                                                              long workflowInstanceId,
                                                                              java.lang.Boolean completed,
                                                                              int start,
                                                                              int end,
                                                                              OrderByComparator orderByComparator)
                                                                       throws WorkflowException
Throws:
WorkflowException

setWorkflowTaskManager

public void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)