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