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