Liferay 7.0-ce-b4

com.liferay.portal.kernel.workflow
Class BaseWorkflowHandler<T>

java.lang.Object
  extended by com.liferay.portal.kernel.workflow.BaseWorkflowHandler<T>
All Implemented Interfaces:
WorkflowHandler<T>

public abstract class BaseWorkflowHandler<T>
extends Object
implements WorkflowHandler<T>


Constructor Summary
BaseWorkflowHandler()
           
 
Method Summary
 AssetRenderer<T> getAssetRenderer(long classPK)
           
 AssetRendererFactory<T> getAssetRendererFactory()
           
 String getIconCssClass()
           
 String getIconPath(LiferayPortletRequest liferayPortletRequest)
          Deprecated. As of 7.0.0, with no direct replacement
 String getSummary(long classPK, Locale locale)
          Deprecated. As of 7.0.0, replaced by getSummary(long, PortletRequest, PortletResponse)
 String getSummary(long classPK, PortletRequest portletRequest, PortletResponse portletResponse)
           
 String getTitle(long classPK, Locale locale)
           
 PortletURL getURLEdit(long classPK, LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 String getURLEditWorkflowTask(long workflowTaskId, ServiceContext 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 request, javax.servlet.http.HttpServletResponse response, String template)
           
 boolean isAssetTypeSearchable()
           
 boolean isScopeable()
           
 boolean isVisible()
           
 void startWorkflowInstance(long companyId, long groupId, long userId, long classPK, T model, Map<String,Serializable> workflowContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.workflow.WorkflowHandler
getClassName, getType, updateStatus
 

Constructor Detail

BaseWorkflowHandler

public BaseWorkflowHandler()
Method Detail

getAssetRenderer

public AssetRenderer<T> getAssetRenderer(long classPK)
                                  throws PortalException
Specified by:
getAssetRenderer in interface WorkflowHandler<T>
Throws:
PortalException

getAssetRendererFactory

public AssetRendererFactory<T> getAssetRendererFactory()
Specified by:
getAssetRendererFactory in interface WorkflowHandler<T>

getIconCssClass

public String getIconCssClass()
Specified by:
getIconCssClass in interface WorkflowHandler<T>

getIconPath

@Deprecated
public String getIconPath(LiferayPortletRequest liferayPortletRequest)
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
getIconPath in interface WorkflowHandler<T>

getSummary

@Deprecated
public String getSummary(long classPK,
                                    Locale locale)
Deprecated. As of 7.0.0, replaced by getSummary(long, PortletRequest, PortletResponse)

Specified by:
getSummary in interface WorkflowHandler<T>

getSummary

public String getSummary(long classPK,
                         PortletRequest portletRequest,
                         PortletResponse portletResponse)
Specified by:
getSummary in interface WorkflowHandler<T>

getTitle

public String getTitle(long classPK,
                       Locale locale)
Specified by:
getTitle in interface WorkflowHandler<T>

getURLEdit

public PortletURL getURLEdit(long classPK,
                             LiferayPortletRequest liferayPortletRequest,
                             LiferayPortletResponse liferayPortletResponse)
Specified by:
getURLEdit in interface WorkflowHandler<T>

getURLEditWorkflowTask

public String getURLEditWorkflowTask(long workflowTaskId,
                                     ServiceContext serviceContext)
                              throws PortalException
Specified by:
getURLEditWorkflowTask in interface WorkflowHandler<T>
Throws:
PortalException

getURLViewDiffs

public PortletURL getURLViewDiffs(long classPK,
                                  LiferayPortletRequest liferayPortletRequest,
                                  LiferayPortletResponse liferayPortletResponse)
Specified by:
getURLViewDiffs in interface WorkflowHandler<T>

getURLViewInContext

public String getURLViewInContext(long classPK,
                                  LiferayPortletRequest liferayPortletRequest,
                                  LiferayPortletResponse liferayPortletResponse,
                                  String noSuchEntryRedirect)
Specified by:
getURLViewInContext in interface WorkflowHandler<T>

getWorkflowDefinitionLink

public WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId,
                                                        long groupId,
                                                        long classPK)
                                                 throws PortalException
Specified by:
getWorkflowDefinitionLink in interface WorkflowHandler<T>
Throws:
PortalException

include

public boolean include(long classPK,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       String template)
Specified by:
include in interface WorkflowHandler<T>

isAssetTypeSearchable

public boolean isAssetTypeSearchable()
Specified by:
isAssetTypeSearchable in interface WorkflowHandler<T>

isScopeable

public boolean isScopeable()
Specified by:
isScopeable in interface WorkflowHandler<T>

isVisible

public boolean isVisible()
Specified by:
isVisible in interface WorkflowHandler<T>

startWorkflowInstance

public void startWorkflowInstance(long companyId,
                                  long groupId,
                                  long userId,
                                  long classPK,
                                  T model,
                                  Map<String,Serializable> workflowContext)
                           throws PortalException
Specified by:
startWorkflowInstance in interface WorkflowHandler<T>
Throws:
PortalException

Liferay 7.0-ce-b4