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
244 public static java.lang.String getBeanIdentifier() {
245 return getService().getBeanIdentifier();
246 }
247
248
253 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
254 getService().setBeanIdentifier(beanIdentifier);
255 }
256
257 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
258 long userId, long companyId, long groupId, java.lang.String className,
259 long classPK, long typePK, java.lang.String workflowDefinitionName,
260 int workflowDefinitionVersion)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 return getService()
264 .addWorkflowDefinitionLink(userId, companyId, groupId,
265 className, classPK, typePK, workflowDefinitionName,
266 workflowDefinitionVersion);
267 }
268
269 public static void deleteWorkflowDefinitionLink(long companyId,
270 long groupId, java.lang.String className, long classPK, long typePK)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService()
274 .deleteWorkflowDefinitionLink(companyId, groupId, className,
275 classPK, typePK);
276 }
277
278 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
279 long companyId, java.lang.String className, long classPK, long typePK)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException {
282 return getService()
283 .getDefaultWorkflowDefinitionLink(companyId, className,
284 classPK, typePK);
285 }
286
287 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
288 long companyId, long groupId, java.lang.String className, long classPK,
289 long typePK)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 return getService()
293 .getWorkflowDefinitionLink(companyId, groupId, 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, boolean strict)
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, strict);
305 }
306
307 public static int getWorkflowDefinitionLinksCount(long companyId,
308 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService()
311 .getWorkflowDefinitionLinksCount(companyId,
312 workflowDefinitionName, workflowDefinitionVersion);
313 }
314
315 public static boolean hasWorkflowDefinitionLink(long companyId,
316 long groupId, java.lang.String className)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 return getService()
320 .hasWorkflowDefinitionLink(companyId, groupId, className);
321 }
322
323 public static boolean hasWorkflowDefinitionLink(long companyId,
324 long groupId, java.lang.String className, long classPK)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 return getService()
328 .hasWorkflowDefinitionLink(companyId, groupId, className,
329 classPK);
330 }
331
332 public static boolean hasWorkflowDefinitionLink(long companyId,
333 long groupId, java.lang.String className, long classPK, long typePK)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 return getService()
337 .hasWorkflowDefinitionLink(companyId, groupId, className,
338 classPK, typePK);
339 }
340
341 public static void updateWorkflowDefinitionLink(long userId,
342 long companyId, long groupId, java.lang.String className, long classPK,
343 long typePK, java.lang.String workflowDefinition)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 getService()
347 .updateWorkflowDefinitionLink(userId, companyId, groupId,
348 className, classPK, typePK, workflowDefinition);
349 }
350
351 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
352 long userId, long companyId, long groupId, java.lang.String className,
353 long classPK, long typePK, java.lang.String workflowDefinitionName,
354 int workflowDefinitionVersion)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException {
357 return getService()
358 .updateWorkflowDefinitionLink(userId, companyId, groupId,
359 className, classPK, typePK, workflowDefinitionName,
360 workflowDefinitionVersion);
361 }
362
363 public static void updateWorkflowDefinitionLinks(long userId,
364 long companyId, long groupId, java.lang.String className, long classPK,
365 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitionOVPs)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException {
368 getService()
369 .updateWorkflowDefinitionLinks(userId, companyId, groupId,
370 className, classPK, workflowDefinitionOVPs);
371 }
372
373 public static WorkflowDefinitionLinkLocalService getService() {
374 if (_service == null) {
375 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
376
377 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
378 "_service");
379 }
380
381 return _service;
382 }
383
384
387 public void setService(WorkflowDefinitionLinkLocalService service) {
388 }
389
390 private static WorkflowDefinitionLinkLocalService _service;
391 }