001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class WorkflowDefinitionLinkLocalServiceUtil {
037
044 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
045 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
048 }
049
050
056 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
057 long workflowDefinitionLinkId) {
058 return getService()
059 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
060 }
061
062
069 public static void deleteWorkflowDefinitionLink(
070 long workflowDefinitionLinkId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 getService().deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
074 }
075
076
082 public static void deleteWorkflowDefinitionLink(
083 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
086 }
087
088
095 @SuppressWarnings("rawtypes")
096 public static java.util.List dynamicQuery(
097 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
098 throws com.liferay.portal.kernel.exception.SystemException {
099 return getService().dynamicQuery(dynamicQuery);
100 }
101
102
115 @SuppressWarnings("rawtypes")
116 public static java.util.List dynamicQuery(
117 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
118 int end) throws com.liferay.portal.kernel.exception.SystemException {
119 return getService().dynamicQuery(dynamicQuery, start, end);
120 }
121
122
136 @SuppressWarnings("rawtypes")
137 public static java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService()
143 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
144 }
145
146
153 public static long dynamicQueryCount(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService().dynamicQueryCount(dynamicQuery);
157 }
158
159
167 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
168 long workflowDefinitionLinkId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException {
171 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
172 }
173
174
186 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
187 int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().getWorkflowDefinitionLinks(start, end);
190 }
191
192
198 public static int getWorkflowDefinitionLinksCount()
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().getWorkflowDefinitionLinksCount();
201 }
202
203
210 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
211 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
214 }
215
216
224 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
225 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
226 boolean merge)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService()
229 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
230 }
231
232 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
233 long userId, long companyId, long groupId, java.lang.String className,
234 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService()
238 .addWorkflowDefinitionLink(userId, companyId, groupId,
239 className, workflowDefinitionName, workflowDefinitionVersion);
240 }
241
242 public static void deleteWorkflowDefinitionLink(long companyId,
243 long groupId, java.lang.String className)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException {
246 getService().deleteWorkflowDefinitionLink(companyId, groupId, className);
247 }
248
249 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
250 long companyId, java.lang.String className)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 return getService()
254 .getDefaultWorkflowDefinitionLink(companyId, className);
255 }
256
257 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
258 long companyId, long groupId, java.lang.String className)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException {
261 return getService()
262 .getWorkflowDefinitionLink(companyId, groupId, className);
263 }
264
265 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
266 long companyId, long groupId, java.lang.String className, boolean strict)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService()
270 .getWorkflowDefinitionLink(companyId, groupId, className,
271 strict);
272 }
273
274 public static int getWorkflowDefinitionLinksCount(long companyId,
275 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getService()
278 .getWorkflowDefinitionLinksCount(companyId,
279 workflowDefinitionName, workflowDefinitionVersion);
280 }
281
282 public static boolean hasWorkflowDefinitionLink(long companyId,
283 long groupId, java.lang.String className)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 return getService()
287 .hasWorkflowDefinitionLink(companyId, groupId, className);
288 }
289
290 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
291 long userId, long companyId, long groupId, java.lang.String className,
292 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 return getService()
296 .updateWorkflowDefinitionLink(userId, companyId, groupId,
297 className, workflowDefinitionName, workflowDefinitionVersion);
298 }
299
300 public static WorkflowDefinitionLinkLocalService getService() {
301 if (_service == null) {
302 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
303 }
304
305 return _service;
306 }
307
308 public void setService(WorkflowDefinitionLinkLocalService service) {
309 _service = service;
310 }
311
312 private static WorkflowDefinitionLinkLocalService _service;
313 }