Liferay 6.2-ce-ga5

com.liferay.portal.kernel.workflow
Class WorkflowDefinitionManagerUtil

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

public class WorkflowDefinitionManagerUtil
extends Object


Constructor Summary
WorkflowDefinitionManagerUtil()
           
 
Method Summary
static WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, byte[] bytes)
           
static int getActiveWorkflowDefinitionCount(long companyId)
           
static int getActiveWorkflowDefinitionCount(long companyId, String name)
           
static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator orderByComparator)
           
static WorkflowDefinition getLatestKaleoDefinition(long companyId, String name)
           
static WorkflowDefinition getWorkflowDefinition(long companyId, String name, int version)
           
static int getWorkflowDefinitionCount(long companyId)
           
static int getWorkflowDefinitionCount(long companyId, String name)
           
static WorkflowDefinitionManager getWorkflowDefinitionManager()
           
static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, int start, int end, OrderByComparator orderByComparator)
           
static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator orderByComparator)
           
 void setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager)
           
static void undeployWorkflowDefinition(long companyId, long userId, String name, int version)
           
static WorkflowDefinition updateActive(long companyId, long userId, String name, int version, boolean active)
           
static WorkflowDefinition updateTitle(long companyId, long userId, String name, int version, String title)
           
static void validateWorkflowDefinition(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDefinitionManagerUtil

public WorkflowDefinitionManagerUtil()
Method Detail

deployWorkflowDefinition

public static WorkflowDefinition deployWorkflowDefinition(long companyId,
                                                          long userId,
                                                          String title,
                                                          byte[] bytes)
                                                   throws WorkflowException
Throws:
WorkflowException

getActiveWorkflowDefinitionCount

public static int getActiveWorkflowDefinitionCount(long companyId)
                                            throws WorkflowException
Throws:
WorkflowException

getActiveWorkflowDefinitionCount

public static int getActiveWorkflowDefinitionCount(long companyId,
                                                   String name)
                                            throws WorkflowException
Throws:
WorkflowException

getActiveWorkflowDefinitions

public static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator orderByComparator)
                                                             throws WorkflowException
Throws:
WorkflowException

getActiveWorkflowDefinitions

public static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId,
                                                                    String name,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator orderByComparator)
                                                             throws WorkflowException
Throws:
WorkflowException

getLatestKaleoDefinition

public static WorkflowDefinition getLatestKaleoDefinition(long companyId,
                                                          String name)
                                                   throws WorkflowException
Throws:
WorkflowException

getWorkflowDefinition

public static WorkflowDefinition getWorkflowDefinition(long companyId,
                                                       String name,
                                                       int version)
                                                throws WorkflowException
Throws:
WorkflowException

getWorkflowDefinitionCount

public static int getWorkflowDefinitionCount(long companyId)
                                      throws WorkflowException
Throws:
WorkflowException

getWorkflowDefinitionCount

public static int getWorkflowDefinitionCount(long companyId,
                                             String name)
                                      throws WorkflowException
Throws:
WorkflowException

getWorkflowDefinitionManager

public static WorkflowDefinitionManager getWorkflowDefinitionManager()

getWorkflowDefinitions

public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator orderByComparator)
                                                       throws WorkflowException
Throws:
WorkflowException

getWorkflowDefinitions

public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId,
                                                              String name,
                                                              int start,
                                                              int end,
                                                              OrderByComparator orderByComparator)
                                                       throws WorkflowException
Throws:
WorkflowException

undeployWorkflowDefinition

public static void undeployWorkflowDefinition(long companyId,
                                              long userId,
                                              String name,
                                              int version)
                                       throws WorkflowException
Throws:
WorkflowException

updateActive

public static WorkflowDefinition updateActive(long companyId,
                                              long userId,
                                              String name,
                                              int version,
                                              boolean active)
                                       throws WorkflowException
Throws:
WorkflowException

updateTitle

public static WorkflowDefinition updateTitle(long companyId,
                                             long userId,
                                             String name,
                                             int version,
                                             String title)
                                      throws WorkflowException
Throws:
WorkflowException

validateWorkflowDefinition

public static void validateWorkflowDefinition(byte[] bytes)
                                       throws WorkflowException
Throws:
WorkflowException

setWorkflowDefinitionManager

public void setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager)

Liferay 6.2-ce-ga5