1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tasks.service;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="TasksProposalLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link TasksProposalLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       TasksProposalLocalService
45   * @generated
46   */
47  public class TasksProposalLocalServiceUtil {
48      public static com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
49          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
50          throws com.liferay.portal.SystemException {
51          return getService().addTasksProposal(tasksProposal);
52      }
53  
54      public static com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
55          long proposalId) {
56          return getService().createTasksProposal(proposalId);
57      }
58  
59      public static void deleteTasksProposal(long proposalId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteTasksProposal(proposalId);
63      }
64  
65      public static void deleteTasksProposal(
66          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
67          throws com.liferay.portal.SystemException {
68          getService().deleteTasksProposal(tasksProposal);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
84          long proposalId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getTasksProposal(proposalId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getTasksProposals(start, end);
93      }
94  
95      public static int getTasksProposalsCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getTasksProposalsCount();
98      }
99  
100     public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
101         com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
102         throws com.liferay.portal.SystemException {
103         return getService().updateTasksProposal(tasksProposal);
104     }
105 
106     public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
107         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService().updateTasksProposal(tasksProposal, merge);
110     }
111 
112     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
113         long userId, long groupId, java.lang.String className,
114         java.lang.String classPK, java.lang.String name,
115         java.lang.String description, long reviewUserId,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException {
119         return getService()
120                    .addProposal(userId, groupId, className, classPK, name,
121             description, reviewUserId, addCommunityPermissions,
122             addGuestPermissions);
123     }
124 
125     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
126         long userId, long groupId, java.lang.String className,
127         java.lang.String classPK, java.lang.String name,
128         java.lang.String description, long reviewUserId,
129         java.lang.Boolean addCommunityPermissions,
130         java.lang.Boolean addGuestPermissions,
131         java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return getService()
136                    .addProposal(userId, groupId, className, classPK, name,
137             description, reviewUserId, addCommunityPermissions,
138             addGuestPermissions, communityPermissions, guestPermissions);
139     }
140 
141     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
142         long userId, long groupId, java.lang.String className,
143         java.lang.String classPK, java.lang.String name,
144         java.lang.String description, long reviewUserId,
145         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return getService()
150                    .addProposal(userId, groupId, className, classPK, name,
151             description, reviewUserId, communityPermissions, guestPermissions);
152     }
153 
154     public static void addProposalResources(long proposalId,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         getService()
159             .addProposalResources(proposalId, addCommunityPermissions,
160             addGuestPermissions);
161     }
162 
163     public static void addProposalResources(long proposalId,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         getService()
169             .addProposalResources(proposalId, communityPermissions,
170             guestPermissions);
171     }
172 
173     public static void addProposalResources(
174         com.liferay.portlet.tasks.model.TasksProposal proposal,
175         boolean addCommunityPermissions, boolean addGuestPermissions)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException {
178         getService()
179             .addProposalResources(proposal, addCommunityPermissions,
180             addGuestPermissions);
181     }
182 
183     public static void addProposalResources(
184         com.liferay.portlet.tasks.model.TasksProposal proposal,
185         java.lang.String[] communityPermissions,
186         java.lang.String[] guestPermissions)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         getService()
190             .addProposalResources(proposal, communityPermissions,
191             guestPermissions);
192     }
193 
194     public static void deleteProposal(long proposalId)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         getService().deleteProposal(proposalId);
198     }
199 
200     public static void deleteProposal(long classNameId, java.lang.String classPK)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         getService().deleteProposal(classNameId, classPK);
204     }
205 
206     public static void deleteProposal(java.lang.String className,
207         java.lang.String classPK)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException {
210         getService().deleteProposal(className, classPK);
211     }
212 
213     public static void deleteProposal(
214         com.liferay.portlet.tasks.model.TasksProposal proposal)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         getService().deleteProposal(proposal);
218     }
219 
220     public static void deleteProposals(long groupId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         getService().deleteProposals(groupId);
224     }
225 
226     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
227         long proposalId)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         return getService().getProposal(proposalId);
231     }
232 
233     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
234         long classNameId, java.lang.String classPK)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         return getService().getProposal(classNameId, classPK);
238     }
239 
240     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
241         java.lang.String className, java.lang.String classPK)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException {
244         return getService().getProposal(className, classPK);
245     }
246 
247     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
248         long groupId, int start, int end)
249         throws com.liferay.portal.SystemException {
250         return getService().getProposals(groupId, start, end);
251     }
252 
253     public static int getProposalsCount(long groupId)
254         throws com.liferay.portal.SystemException {
255         return getService().getProposalsCount(groupId);
256     }
257 
258     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
259         long groupId, long userId, int start, int end)
260         throws com.liferay.portal.SystemException {
261         return getService().getReviewProposals(groupId, userId, start, end);
262     }
263 
264     public static int getReviewProposalsCount(long groupId, long userId)
265         throws com.liferay.portal.SystemException {
266         return getService().getReviewProposalsCount(groupId, userId);
267     }
268 
269     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
270         long groupId, long userId, int start, int end)
271         throws com.liferay.portal.SystemException {
272         return getService().getUserProposals(groupId, userId, start, end);
273     }
274 
275     public static int getUserProposalsCount(long groupId, long userId)
276         throws com.liferay.portal.SystemException {
277         return getService().getUserProposalsCount(groupId, userId);
278     }
279 
280     public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
281         long userId, long proposalId, java.lang.String description,
282         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
283         int dueDateMinute)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException {
286         return getService()
287                    .updateProposal(userId, proposalId, description,
288             dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
289     }
290 
291     public static TasksProposalLocalService getService() {
292         if (_service == null) {
293             _service = (TasksProposalLocalService)PortalBeanLocatorUtil.locate(TasksProposalLocalService.class.getName());
294         }
295 
296         return _service;
297     }
298 
299     public void setService(TasksProposalLocalService service) {
300         _service = service;
301     }
302 
303     private static TasksProposalLocalService _service;
304 }