1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="WorkflowDefinitionLinkLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link WorkflowDefinitionLinkLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       WorkflowDefinitionLinkLocalService
37   * @generated
38   */
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 }