public interface WorkflowHandler<T>
| Modifier and Type | Method and Description |
|---|---|
AssetRenderer<T> |
getAssetRenderer(long classPK) |
AssetRendererFactory<T> |
getAssetRendererFactory() |
String |
getClassName() |
default long |
getDiscussionClassPK(Map<String,Serializable> workflowContext) |
String |
getIconCssClass() |
default String |
getNotificationLink(long workflowTaskId,
ServiceContext serviceContext) |
String |
getSummary(long classPK,
PortletRequest portletRequest,
PortletResponse portletResponse) |
String |
getTitle(long classPK,
Locale locale) |
String |
getType(Locale locale) |
PortletURL |
getURLEdit(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLEditWorkflowTask(long workflowTaskId,
ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
getNotificationLink(long, ServiceContext)} |
PortletURL |
getURLViewDiffs(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
String |
getURLViewInContext(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect) |
WorkflowDefinitionLink |
getWorkflowDefinitionLink(long companyId,
long groupId,
long classPK) |
boolean |
include(long classPK,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String template) |
boolean |
isAssetTypeSearchable() |
default boolean |
isCommentable() |
boolean |
isScopeable() |
boolean |
isVisible() |
default boolean |
isVisible(Group group) |
void |
startWorkflowInstance(long companyId,
long groupId,
long userId,
long classPK,
T model,
Map<String,Serializable> workflowContext) |
T |
updateStatus(int status,
Map<String,Serializable> workflowContext) |
default T |
updateStatus(T model,
int status,
Map<String,Serializable> workflowContext) |
AssetRenderer<T> getAssetRenderer(long classPK) throws PortalException
PortalExceptionAssetRendererFactory<T> getAssetRendererFactory()
String getClassName()
default long getDiscussionClassPK(Map<String,Serializable> workflowContext)
String getIconCssClass()
default String getNotificationLink(long workflowTaskId,
ServiceContext serviceContext)
throws PortalException
PortalExceptionString getSummary(long classPK,
PortletRequest portletRequest,
PortletResponse portletResponse)
String getTitle(long classPK,
Locale locale)
String getType(Locale locale)
PortletURL getURLEdit(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
@Deprecated
String getURLEditWorkflowTask(long workflowTaskId,
ServiceContext serviceContext)
throws PortalException
getNotificationLink(long, ServiceContext)}PortalExceptionPortletURL getURLViewDiffs(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
String getURLViewInContext(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect)
WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId, long groupId, long classPK) throws PortalException
PortalExceptionboolean include(long classPK,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String template)
boolean isAssetTypeSearchable()
default boolean isCommentable()
boolean isScopeable()
boolean isVisible()
default boolean isVisible(Group group)
void startWorkflowInstance(long companyId,
long groupId,
long userId,
long classPK,
T model,
Map<String,Serializable> workflowContext)
throws PortalException
PortalExceptionT updateStatus(int status, Map<String,Serializable> workflowContext) throws PortalException
PortalExceptiondefault T updateStatus(T model, int status, Map<String,Serializable> workflowContext) throws PortalException
PortalException