public class WorkflowHandlerWrapper<T> extends Object implements WorkflowHandler<T>
| Constructor and Description |
|---|
WorkflowHandlerWrapper(WorkflowHandler<T> workflowHandler) |
| Modifier and Type | Method and Description |
|---|---|
AssetRenderer<T> |
getAssetRenderer(long classPK) |
AssetRendererFactory<T> |
getAssetRendererFactory() |
String |
getClassName() |
long |
getDiscussionClassPK(Map<String,Serializable> workflowContext) |
String |
getIconCssClass() |
String |
getNotificationLink(long workflowTaskId,
ServiceContext serviceContext) |
String |
getSummary(long classPK,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
String |
getTitle(long classPK,
Locale locale) |
String |
getType(Locale locale) |
javax.portlet.PortletURL |
getURLEdit(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) |
javax.portlet.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() |
boolean |
isCommentable() |
boolean |
isScopeable() |
boolean |
isVisible() |
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) |
T |
updateStatus(T model,
int status,
Map<String,Serializable> workflowContext) |
public WorkflowHandlerWrapper(WorkflowHandler<T> workflowHandler)
public AssetRenderer<T> getAssetRenderer(long classPK) throws PortalException
getAssetRenderer in interface WorkflowHandler<T>PortalExceptionpublic AssetRendererFactory<T> getAssetRendererFactory()
getAssetRendererFactory in interface WorkflowHandler<T>public String getClassName()
getClassName in interface WorkflowHandler<T>public long getDiscussionClassPK(Map<String,Serializable> workflowContext)
getDiscussionClassPK in interface WorkflowHandler<T>public String getIconCssClass()
getIconCssClass in interface WorkflowHandler<T>public String getNotificationLink(long workflowTaskId,
ServiceContext serviceContext)
throws PortalException
getNotificationLink in interface WorkflowHandler<T>PortalExceptionpublic String getSummary(long classPK,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
getSummary in interface WorkflowHandler<T>public String getTitle(long classPK,
Locale locale)
getTitle in interface WorkflowHandler<T>public String getType(Locale locale)
getType in interface WorkflowHandler<T>public javax.portlet.PortletURL getURLEdit(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
getURLEdit in interface WorkflowHandler<T>public javax.portlet.PortletURL getURLViewDiffs(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse)
getURLViewDiffs in interface WorkflowHandler<T>public String getURLViewInContext(long classPK,
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String noSuchEntryRedirect)
getURLViewInContext in interface WorkflowHandler<T>public WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId, long groupId, long classPK) throws PortalException
getWorkflowDefinitionLink in interface WorkflowHandler<T>PortalExceptionpublic boolean include(long classPK,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String template)
include in interface WorkflowHandler<T>public boolean isAssetTypeSearchable()
isAssetTypeSearchable in interface WorkflowHandler<T>public boolean isCommentable()
isCommentable in interface WorkflowHandler<T>public boolean isScopeable()
isScopeable in interface WorkflowHandler<T>public boolean isVisible()
isVisible in interface WorkflowHandler<T>public boolean isVisible(Group group)
isVisible in interface WorkflowHandler<T>public void startWorkflowInstance(long companyId,
long groupId,
long userId,
long classPK,
T model,
Map<String,Serializable> workflowContext)
throws PortalException
startWorkflowInstance in interface WorkflowHandler<T>PortalExceptionpublic T updateStatus(int status, Map<String,Serializable> workflowContext) throws PortalException
updateStatus in interface WorkflowHandler<T>PortalExceptionpublic T updateStatus(T model, int status, Map<String,Serializable> workflowContext) throws PortalException
updateStatus in interface WorkflowHandler<T>PortalException