001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class WorkflowDefinitionLinkLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
048 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
051 }
052
053
059 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
060 long workflowDefinitionLinkId) {
061 return getService()
062 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
063 }
064
065
073 public static com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
074 long workflowDefinitionLinkId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService()
078 .deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
079 }
080
081
088 public static com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
089 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
092 }
093
094 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095 return getService().dynamicQuery();
096 }
097
098
105 @SuppressWarnings("rawtypes")
106 public static java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().dynamicQuery(dynamicQuery);
110 }
111
112
125 @SuppressWarnings("rawtypes")
126 public static java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException {
129 return getService().dynamicQuery(dynamicQuery, start, end);
130 }
131
132
146 @SuppressWarnings("rawtypes")
147 public static java.util.List dynamicQuery(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149 int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
154 }
155
156
163 public static long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().dynamicQueryCount(dynamicQuery);
167 }
168
169 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
170 long workflowDefinitionLinkId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
173 }
174
175
183 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
184 long workflowDefinitionLinkId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
188 }
189
190 public static com.liferay.portal.model.PersistedModel getPersistedModel(
191 java.io.Serializable primaryKeyObj)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getService().getPersistedModel(primaryKeyObj);
195 }
196
197
209 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().getWorkflowDefinitionLinks(start, end);
213 }
214
215
221 public static int getWorkflowDefinitionLinksCount()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getWorkflowDefinitionLinksCount();
224 }
225
226
233 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
234 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
237 }
238
239
247 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
248 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
249 boolean merge)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getService()
252 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
253 }
254
255
260 public static java.lang.String getBeanIdentifier() {
261 return getService().getBeanIdentifier();
262 }
263
264
269 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
270 getService().setBeanIdentifier(beanIdentifier);
271 }
272
273 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
274 long userId, long companyId, long groupId, java.lang.String className,
275 long classPK, long typePK, java.lang.String workflowDefinitionName,
276 int workflowDefinitionVersion)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getService()
280 .addWorkflowDefinitionLink(userId, companyId, groupId,
281 className, classPK, typePK, workflowDefinitionName,
282 workflowDefinitionVersion);
283 }
284
285 public static void deleteWorkflowDefinitionLink(long companyId,
286 long groupId, java.lang.String className, long classPK, long typePK)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 getService()
290 .deleteWorkflowDefinitionLink(companyId, groupId, className,
291 classPK, typePK);
292 }
293
294 public static com.liferay.portal.model.WorkflowDefinitionLink fetchDefaultWorkflowDefinitionLink(
295 long companyId, java.lang.String className, long classPK, long typePK)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService()
298 .fetchDefaultWorkflowDefinitionLink(companyId, className,
299 classPK, typePK);
300 }
301
302 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
303 long companyId, long groupId, java.lang.String className, long classPK,
304 long typePK)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService()
308 .fetchWorkflowDefinitionLink(companyId, groupId, className,
309 classPK, typePK);
310 }
311
312 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
313 long companyId, long groupId, java.lang.String className, long classPK,
314 long typePK, boolean strict)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 return getService()
318 .fetchWorkflowDefinitionLink(companyId, groupId, className,
319 classPK, typePK, strict);
320 }
321
322 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
323 long companyId, java.lang.String className, long classPK, long typePK)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException {
326 return getService()
327 .getDefaultWorkflowDefinitionLink(companyId, className,
328 classPK, typePK);
329 }
330
331 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
332 long companyId, long groupId, java.lang.String className, long classPK,
333 long typePK)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 return getService()
337 .getWorkflowDefinitionLink(companyId, groupId, className,
338 classPK, typePK);
339 }
340
341 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
342 long companyId, long groupId, java.lang.String className, long classPK,
343 long typePK, boolean strict)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 return getService()
347 .getWorkflowDefinitionLink(companyId, groupId, className,
348 classPK, typePK, strict);
349 }
350
351 public static int getWorkflowDefinitionLinksCount(long companyId,
352 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService()
355 .getWorkflowDefinitionLinksCount(companyId,
356 workflowDefinitionName, workflowDefinitionVersion);
357 }
358
359 public static boolean hasWorkflowDefinitionLink(long companyId,
360 long groupId, java.lang.String className)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .hasWorkflowDefinitionLink(companyId, groupId, className);
365 }
366
367 public static boolean hasWorkflowDefinitionLink(long companyId,
368 long groupId, java.lang.String className, long classPK)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 return getService()
372 .hasWorkflowDefinitionLink(companyId, groupId, className,
373 classPK);
374 }
375
376 public static boolean hasWorkflowDefinitionLink(long companyId,
377 long groupId, java.lang.String className, long classPK, long typePK)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return getService()
381 .hasWorkflowDefinitionLink(companyId, groupId, className,
382 classPK, typePK);
383 }
384
385 public static void updateWorkflowDefinitionLink(long userId,
386 long companyId, long groupId, java.lang.String className, long classPK,
387 long typePK, java.lang.String workflowDefinition)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException {
390 getService()
391 .updateWorkflowDefinitionLink(userId, companyId, groupId,
392 className, classPK, typePK, workflowDefinition);
393 }
394
395 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
396 long userId, long companyId, long groupId, java.lang.String className,
397 long classPK, long typePK, java.lang.String workflowDefinitionName,
398 int workflowDefinitionVersion)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException {
401 return getService()
402 .updateWorkflowDefinitionLink(userId, companyId, groupId,
403 className, classPK, typePK, workflowDefinitionName,
404 workflowDefinitionVersion);
405 }
406
407 public static void updateWorkflowDefinitionLinks(long userId,
408 long companyId, long groupId, java.lang.String className, long classPK,
409 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitions)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService()
413 .updateWorkflowDefinitionLinks(userId, companyId, groupId,
414 className, classPK, workflowDefinitions);
415 }
416
417 public static WorkflowDefinitionLinkLocalService getService() {
418 if (_service == null) {
419 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
420
421 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
422 "_service");
423 }
424
425 return _service;
426 }
427
428
431 public void setService(WorkflowDefinitionLinkLocalService service) {
432 }
433
434 private static WorkflowDefinitionLinkLocalService _service;
435 }