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      @SuppressWarnings("unchecked")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("unchecked")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.kernel.exception.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("unchecked")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static long dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.kernel.exception.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
96          long workflowDefinitionLinkId)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException {
99          return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
100     }
101 
102     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
103         int start, int end)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getWorkflowDefinitionLinks(start, end);
106     }
107 
108     public static int getWorkflowDefinitionLinksCount()
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getWorkflowDefinitionLinksCount();
111     }
112 
113     public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
114         com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
117     }
118 
119     public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
120         com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
121         boolean merge)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getService()
124                    .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
125     }
126 
127     public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
128         long userId, long companyId, long groupId, java.lang.String className,
129         java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         return getService()
133                    .addWorkflowDefinitionLink(userId, companyId, groupId,
134             className, workflowDefinitionName, workflowDefinitionVersion);
135     }
136 
137     public static void deleteWorkflowDefinitionLink(long companyId,
138         long groupId, java.lang.String className)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         getService().deleteWorkflowDefinitionLink(companyId, groupId, className);
142     }
143 
144     public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
145         long companyId, java.lang.String className)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return getService()
149                    .getDefaultWorkflowDefinitionLink(companyId, className);
150     }
151 
152     public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
153         long companyId, long groupId, java.lang.String className)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return getService()
157                    .getWorkflowDefinitionLink(companyId, groupId, className);
158     }
159 
160     public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
161         long companyId, long groupId, java.lang.String className, boolean strict)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return getService()
165                    .getWorkflowDefinitionLink(companyId, groupId, className,
166             strict);
167     }
168 
169     public static int getWorkflowDefinitionLinksCount(long companyId,
170         java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getService()
173                    .getWorkflowDefinitionLinksCount(companyId,
174             workflowDefinitionName, workflowDefinitionVersion);
175     }
176 
177     public static boolean hasWorkflowDefinitionLink(long companyId,
178         long groupId, java.lang.String className)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         return getService()
182                    .hasWorkflowDefinitionLink(companyId, groupId, className);
183     }
184 
185     public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
186         long userId, long companyId, long groupId, java.lang.String className,
187         java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException {
190         return getService()
191                    .updateWorkflowDefinitionLink(userId, companyId, groupId,
192             className, workflowDefinitionName, workflowDefinitionVersion);
193     }
194 
195     public static WorkflowDefinitionLinkLocalService getService() {
196         if (_service == null) {
197             _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
198         }
199 
200         return _service;
201     }
202 
203     public void setService(WorkflowDefinitionLinkLocalService service) {
204         _service = service;
205     }
206 
207     private static WorkflowDefinitionLinkLocalService _service;
208 }