Interface WorkflowHandler<T>
- All Known Implementing Classes:
BaseWorkflowHandler
,WorkflowHandlerWrapper
public interface WorkflowHandler<T>
- Author:
- Bruno Farache, Macerllus Tavares, Juan Fernández, Julio Camarero
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
contributeWorkflowContext
(Map<String, Serializable> workflowContext) getAssetRenderer
(long classPK) default long
getDiscussionClassPK
(Map<String, Serializable> workflowContext) default String
getNotificationLink
(long workflowTaskId, ServiceContext serviceContext) getSummary
(long classPK, PortletRequest portletRequest, PortletResponse portletResponse) getURLEdit
(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getURLViewDiffs
(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) getURLViewInContext
(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) getWorkflowDefinitionLink
(long companyId, long groupId, long classPK) boolean
include
(long classPK, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String template) boolean
default boolean
boolean
boolean
default boolean
void
startWorkflowInstance
(long companyId, long groupId, long userId, long classPK, T model, Map<String, Serializable> workflowContext) updateStatus
(int status, Map<String, Serializable> workflowContext) default T
updateStatus
(T model, int status, Map<String, Serializable> workflowContext)
-
Method Details
-
contributeWorkflowContext
default void contributeWorkflowContext(Map<String, Serializable> workflowContext) throws PortalException- Throws:
PortalException
-
getAssetRenderer
- Throws:
PortalException
-
getAssetRendererFactory
AssetRendererFactory<T> getAssetRendererFactory() -
getClassName
String getClassName() -
getDiscussionClassPK
-
getIconCssClass
String getIconCssClass() -
getNotificationLink
default String getNotificationLink(long workflowTaskId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
getSummary
-
getTitle
-
getType
-
getURLEdit
PortletURL getURLEdit(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) -
getURLViewDiffs
PortletURL getURLViewDiffs(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) -
getURLViewInContext
String getURLViewInContext(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) -
getWorkflowDefinitionLink
WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId, long groupId, long classPK) throws PortalException - Throws:
PortalException
-
include
boolean include(long classPK, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String template) -
isAssetTypeSearchable
boolean isAssetTypeSearchable() -
isCommentable
default boolean isCommentable() -
isScopeable
boolean isScopeable() -
isVisible
boolean isVisible() -
isVisible
-
startWorkflowInstance
void startWorkflowInstance(long companyId, long groupId, long userId, long classPK, T model, Map<String, Serializable> workflowContext) throws PortalException- Throws:
PortalException
-
updateStatus
- Throws:
PortalException
-
updateStatus
default T updateStatus(T model, int status, Map<String, Serializable> workflowContext) throws PortalException- Throws:
PortalException
-