1
14
15 package com.liferay.portal.kernel.workflow;
16
17 import com.liferay.portal.kernel.exception.PortalException;
18 import com.liferay.portal.kernel.exception.SystemException;
19 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
20 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
21
22 import javax.portlet.PortletURL;
23
24
30 public interface WorkflowHandler {
31
32 public static final String TYPE_CONTENT = "content";
33
34 public static final String TYPE_DOCUMENT = "document";
35
36 public static final String TYPE_UNKNOWN = "unknown";
37
38 public String getClassName();
39
40 public String getTitle(long classPK);
41
42 public String getType();
43
44 public PortletURL getURLEdit(
45 long classPK, LiferayPortletRequest liferayPortletRequest,
46 LiferayPortletResponse liferayPortletResponse);
47
48 public void startWorkflowInstance(
49 long companyId, long groupId, long userId, long classPK,
50 Object model)
51 throws PortalException, SystemException;
52
53 public Object updateStatus(
54 long companyId, long groupId, long userId, long classPK, int status)
55 throws PortalException, SystemException;
56
57 }