1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class WorkflowDefinitionLinkLocalServiceUtil {
40 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
41 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
44 }
45
46 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
47 long workflowDefinitionLinkId) {
48 return getService()
49 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
50 }
51
52 public static void deleteWorkflowDefinitionLink(
53 long workflowDefinitionLinkId)
54 throws com.liferay.portal.kernel.exception.PortalException,
55 com.liferay.portal.kernel.exception.SystemException {
56 getService().deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
57 }
58
59 public static void deleteWorkflowDefinitionLink(
60 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
61 throws com.liferay.portal.kernel.exception.SystemException {
62 getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
63 }
64
65 public static java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException {
68 return getService().dynamicQuery(dynamicQuery);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
78 long workflowDefinitionLinkId)
79 throws com.liferay.portal.kernel.exception.PortalException,
80 com.liferay.portal.kernel.exception.SystemException {
81 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
82 }
83
84 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
85 int start, int end)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().getWorkflowDefinitionLinks(start, end);
88 }
89
90 public static int getWorkflowDefinitionLinksCount()
91 throws com.liferay.portal.kernel.exception.SystemException {
92 return getService().getWorkflowDefinitionLinksCount();
93 }
94
95 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
96 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
97 throws com.liferay.portal.kernel.exception.SystemException {
98 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
99 }
100
101 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
102 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
103 boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService()
106 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
107 }
108
109 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
110 long userId, long companyId, long groupId, java.lang.String className,
111 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return getService()
115 .addWorkflowDefinitionLink(userId, companyId, groupId,
116 className, workflowDefinitionName, workflowDefinitionVersion);
117 }
118
119 public static void deleteWorkflowDefinitionLink(long userId,
120 long companyId, long groupId, java.lang.String className)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 getService()
124 .deleteWorkflowDefinitionLink(userId, companyId, groupId, className);
125 }
126
127 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
128 long companyId, long groupId, java.lang.String className)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 return getService()
132 .getWorkflowDefinitionLink(companyId, groupId, className);
133 }
134
135 public static boolean hasWorkflowDefinitionLink(long companyId,
136 long groupId, java.lang.String className)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService()
140 .hasWorkflowDefinitionLink(companyId, groupId, className);
141 }
142
143 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
144 long userId, long companyId, long groupId, java.lang.String className,
145 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getService()
149 .updateWorkflowDefinitionLink(userId, companyId, groupId,
150 className, workflowDefinitionName, workflowDefinitionVersion);
151 }
152
153 public static WorkflowDefinitionLinkLocalService getService() {
154 if (_service == null) {
155 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
156 }
157
158 return _service;
159 }
160
161 public void setService(WorkflowDefinitionLinkLocalService service) {
162 _service = service;
163 }
164
165 private static WorkflowDefinitionLinkLocalService _service;
166 }