public class KaleoDesignerUtil
extends java.lang.Object
Constructor and Description |
---|
KaleoDesignerUtil() |
Modifier and Type | Method and Description |
---|---|
static KaleoDraftDefinition |
addMissingKaleoDraftDefinition(java.lang.String name,
int version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoDraftDefinition |
addMissingKaleoDraftDefinition(java.lang.String name,
int version,
java.lang.String title,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.lang.String content)
Deploys the workflow definition.
|
static KaleoDraftDefinition |
getKaleoDraftDefinition(javax.servlet.http.HttpServletRequest request)
Returns the Kaleo draft definition, or creates one if it does not exist.
|
static KaleoDraftDefinition |
getKaleoDraftDefinition(javax.portlet.PortletRequest portletRequest)
Returns the Kaleo draft definition, or creates one if it does not exist.
|
static boolean |
isPublished(KaleoDraftDefinition kaleoDraftDefinition)
Returns
true if the Kaleo draft definition is published. |
public static KaleoDraftDefinition addMissingKaleoDraftDefinition(java.lang.String name, int version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KaleoDraftDefinition addMissingKaleoDraftDefinition(java.lang.String name, int version, java.lang.String title, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.workflow.WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.lang.String content) throws com.liferay.portal.kernel.workflow.WorkflowException
companyId
- the primary key of the workflow definition's companyuserId
- the primary key of the workflow definition's creator/ownertitleMap
- the Kaleo workflow definition's locales and localized
titlescontent
- the content wrapped in XMLcom.liferay.portal.kernel.workflow.WorkflowException
- if a workflow exception occurredpublic static KaleoDraftDefinition getKaleoDraftDefinition(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- the servlet request from which to read the parametersjava.lang.Exception
- if an exception occurredpublic static KaleoDraftDefinition getKaleoDraftDefinition(javax.portlet.PortletRequest portletRequest) throws java.lang.Exception
portletRequest
- the portlet request from which to read the
parametersjava.lang.Exception
- if an exception occurredpublic static boolean isPublished(KaleoDraftDefinition kaleoDraftDefinition)
true
if the Kaleo draft definition is published.kaleoDraftDefinition
- the Kaleo draft definitiontrue
if the Kaleo draft definition is published;
false
otherwise