Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.workflow
Class WorkflowTaskManagerUtil

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

public class WorkflowTaskManagerUtil
extends Object


Constructor Summary
WorkflowTaskManagerUtil()
           
 
Method Summary
static WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskId, long roleId, String comment, Date dueDate, Map<String,Serializable> workflowContext)
           
static WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String,Serializable> workflowContext)
           
static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext)
           
static List<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, Boolean completed)
           
static int getWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed)
           
static int getWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed)
           
static int getWorkflowTaskCountByUser(long companyId, long userId, Boolean completed)
           
static int getWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed)
           
static int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed)
           
static WorkflowTaskManager getWorkflowTaskManager()
           
static List<WorkflowTask> getWorkflowTasks(long companyId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> search(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> search(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowTask> search(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, int start, int end, OrderByComparator orderByComparator)
           
static int searchCount(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles)
           
static int searchCount(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles)
           
static int searchCount(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator)
           
 void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)
           
static WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskId, String comment, Date dueDate)
           
 
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,
                                                    String comment,
                                                    Date dueDate,
                                                    Map<String,Serializable> workflowContext)
                                             throws WorkflowException
Throws:
WorkflowException

assignWorkflowTaskToUser

public static WorkflowTask assignWorkflowTaskToUser(long companyId,
                                                    long userId,
                                                    long workflowTaskId,
                                                    long assigneeUserId,
                                                    String comment,
                                                    Date dueDate,
                                                    Map<String,Serializable> workflowContext)
                                             throws WorkflowException
Throws:
WorkflowException

completeWorkflowTask

public static WorkflowTask completeWorkflowTask(long companyId,
                                                long userId,
                                                long workflowTaskId,
                                                String transitionName,
                                                String comment,
                                                Map<String,Serializable> workflowContext)
                                         throws WorkflowException
Throws:
WorkflowException

getNextTransitionNames

public static List<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,
                                       Boolean completed)
                                throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByRole

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

getWorkflowTaskCountBySubmittingUser

public static int getWorkflowTaskCountBySubmittingUser(long companyId,
                                                       long userId,
                                                       Boolean completed)
                                                throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskCountByUser

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

getWorkflowTaskCountByUserRoles

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

getWorkflowTaskCountByWorkflowInstance

public static int getWorkflowTaskCountByWorkflowInstance(long companyId,
                                                         Long userId,
                                                         long workflowInstanceId,
                                                         Boolean completed)
                                                  throws WorkflowException
Throws:
WorkflowException

getWorkflowTaskManager

public static WorkflowTaskManager getWorkflowTaskManager()

getWorkflowTasks

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

getWorkflowTasksByRole

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

getWorkflowTasksBySubmittingUser

public static List<WorkflowTask> getWorkflowTasksBySubmittingUser(long companyId,
                                                                  long userId,
                                                                  Boolean completed,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                                                           throws WorkflowException
Throws:
WorkflowException

getWorkflowTasksByUser

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

getWorkflowTasksByUserRoles

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

getWorkflowTasksByWorkflowInstance

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

search

public static List<WorkflowTask> search(long companyId,
                                        long userId,
                                        String keywords,
                                        Boolean completed,
                                        Boolean searchByUserRoles,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws WorkflowException
Throws:
WorkflowException

search

public static List<WorkflowTask> search(long companyId,
                                        long userId,
                                        String taskName,
                                        String assetType,
                                        Long[] assetPrimaryKey,
                                        Date dueDateGT,
                                        Date dueDateLT,
                                        Boolean completed,
                                        Boolean searchByUserRoles,
                                        boolean andOperator,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws WorkflowException
Throws:
WorkflowException

search

public static List<WorkflowTask> search(long companyId,
                                        long userId,
                                        String keywords,
                                        String[] assetTypes,
                                        Boolean completed,
                                        Boolean searchByUserRoles,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws WorkflowException
Throws:
WorkflowException

searchCount

public static int searchCount(long companyId,
                              long userId,
                              String keywords,
                              Boolean completed,
                              Boolean searchByUserRoles)
                       throws WorkflowException
Throws:
WorkflowException

searchCount

public static int searchCount(long companyId,
                              long userId,
                              String taskName,
                              String assetType,
                              Long[] assetPrimaryKey,
                              Date dueDateGT,
                              Date dueDateLT,
                              Boolean completed,
                              Boolean searchByUserRoles,
                              boolean andOperator)
                       throws WorkflowException
Throws:
WorkflowException

searchCount

public static int searchCount(long companyId,
                              long userId,
                              String keywords,
                              String[] assetTypes,
                              Boolean completed,
                              Boolean searchByUserRoles)
                       throws WorkflowException
Throws:
WorkflowException

updateDueDate

public static WorkflowTask updateDueDate(long companyId,
                                         long userId,
                                         long workflowTaskId,
                                         String comment,
                                         Date dueDate)
                                  throws WorkflowException
Throws:
WorkflowException

setWorkflowTaskManager

public void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)

Liferay 6.1.2-ce-ga3