001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class WorkflowDefinitionLinkLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
049 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
052 }
053
054
060 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
061 long workflowDefinitionLinkId) {
062 return getService()
063 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
064 }
065
066
073 public static void deleteWorkflowDefinitionLink(
074 long workflowDefinitionLinkId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 getService().deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
078 }
079
080
086 public static void deleteWorkflowDefinitionLink(
087 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
090 }
091
092
099 @SuppressWarnings("rawtypes")
100 public static java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().dynamicQuery(dynamicQuery);
104 }
105
106
119 @SuppressWarnings("rawtypes")
120 public static java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException {
123 return getService().dynamicQuery(dynamicQuery, start, end);
124 }
125
126
140 @SuppressWarnings("rawtypes")
141 public static java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
148 }
149
150
157 public static long dynamicQueryCount(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().dynamicQueryCount(dynamicQuery);
161 }
162
163 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
164 long workflowDefinitionLinkId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
167 }
168
169
177 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
178 long workflowDefinitionLinkId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
182 }
183
184 public static com.liferay.portal.model.PersistedModel getPersistedModel(
185 java.io.Serializable primaryKeyObj)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPersistedModel(primaryKeyObj);
189 }
190
191
203 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getWorkflowDefinitionLinks(start, end);
207 }
208
209
215 public static int getWorkflowDefinitionLinksCount()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getWorkflowDefinitionLinksCount();
218 }
219
220
227 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
228 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
231 }
232
233
241 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
242 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
243 boolean merge)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getService()
246 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
247 }
248
249
254 public static java.lang.String getBeanIdentifier() {
255 return getService().getBeanIdentifier();
256 }
257
258
263 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
264 getService().setBeanIdentifier(beanIdentifier);
265 }
266
267 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
268 long userId, long companyId, long groupId, java.lang.String className,
269 long classPK, long typePK, java.lang.String workflowDefinitionName,
270 int workflowDefinitionVersion)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 return getService()
274 .addWorkflowDefinitionLink(userId, companyId, groupId,
275 className, classPK, typePK, workflowDefinitionName,
276 workflowDefinitionVersion);
277 }
278
279 public static void deleteWorkflowDefinitionLink(long companyId,
280 long groupId, java.lang.String className, long classPK, long typePK)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 getService()
284 .deleteWorkflowDefinitionLink(companyId, groupId, className,
285 classPK, typePK);
286 }
287
288 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
289 long companyId, java.lang.String className, long classPK, long typePK)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 return getService()
293 .getDefaultWorkflowDefinitionLink(companyId, className,
294 classPK, typePK);
295 }
296
297 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
298 long companyId, long groupId, java.lang.String className, long classPK,
299 long typePK)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 return getService()
303 .getWorkflowDefinitionLink(companyId, groupId, className,
304 classPK, typePK);
305 }
306
307 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
308 long companyId, long groupId, java.lang.String className, long classPK,
309 long typePK, boolean strict)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService()
313 .getWorkflowDefinitionLink(companyId, groupId, className,
314 classPK, typePK, strict);
315 }
316
317 public static int getWorkflowDefinitionLinksCount(long companyId,
318 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getService()
321 .getWorkflowDefinitionLinksCount(companyId,
322 workflowDefinitionName, workflowDefinitionVersion);
323 }
324
325 public static boolean hasWorkflowDefinitionLink(long companyId,
326 long groupId, java.lang.String className)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException {
329 return getService()
330 .hasWorkflowDefinitionLink(companyId, groupId, className);
331 }
332
333 public static boolean hasWorkflowDefinitionLink(long companyId,
334 long groupId, java.lang.String className, long classPK)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService()
338 .hasWorkflowDefinitionLink(companyId, groupId, className,
339 classPK);
340 }
341
342 public static boolean hasWorkflowDefinitionLink(long companyId,
343 long groupId, java.lang.String className, long classPK, long typePK)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 return getService()
347 .hasWorkflowDefinitionLink(companyId, groupId, className,
348 classPK, typePK);
349 }
350
351 public static void updateWorkflowDefinitionLink(long userId,
352 long companyId, long groupId, java.lang.String className, long classPK,
353 long typePK, java.lang.String workflowDefinition)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException {
356 getService()
357 .updateWorkflowDefinitionLink(userId, companyId, groupId,
358 className, classPK, typePK, workflowDefinition);
359 }
360
361 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
362 long userId, long companyId, long groupId, java.lang.String className,
363 long classPK, long typePK, java.lang.String workflowDefinitionName,
364 int workflowDefinitionVersion)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException {
367 return getService()
368 .updateWorkflowDefinitionLink(userId, companyId, groupId,
369 className, classPK, typePK, workflowDefinitionName,
370 workflowDefinitionVersion);
371 }
372
373 public static void updateWorkflowDefinitionLinks(long userId,
374 long companyId, long groupId, java.lang.String className, long classPK,
375 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitions)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 getService()
379 .updateWorkflowDefinitionLinks(userId, companyId, groupId,
380 className, classPK, workflowDefinitions);
381 }
382
383 public static WorkflowDefinitionLinkLocalService getService() {
384 if (_service == null) {
385 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
386
387 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
388 "_service");
389 MethodCache.remove(WorkflowDefinitionLinkLocalService.class);
390 }
391
392 return _service;
393 }
394
395 public void setService(WorkflowDefinitionLinkLocalService service) {
396 MethodCache.remove(WorkflowDefinitionLinkLocalService.class);
397
398 _service = service;
399
400 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
401 "_service");
402 MethodCache.remove(WorkflowDefinitionLinkLocalService.class);
403 }
404
405 private static WorkflowDefinitionLinkLocalService _service;
406 }