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.portlet.tasks.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="TasksProposalLocalServiceUtil.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 TasksProposalLocalService} 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       TasksProposalLocalService
37   * @generated
38   */
39  public class TasksProposalLocalServiceUtil {
40      public static com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
41          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
42          throws com.liferay.portal.SystemException {
43          return getService().addTasksProposal(tasksProposal);
44      }
45  
46      public static com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
47          long proposalId) {
48          return getService().createTasksProposal(proposalId);
49      }
50  
51      public static void deleteTasksProposal(long proposalId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteTasksProposal(proposalId);
55      }
56  
57      public static void deleteTasksProposal(
58          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
59          throws com.liferay.portal.SystemException {
60          getService().deleteTasksProposal(tasksProposal);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
76          long proposalId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getTasksProposal(proposalId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getTasksProposals(start, end);
85      }
86  
87      public static int getTasksProposalsCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getTasksProposalsCount();
90      }
91  
92      public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
93          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
94          throws com.liferay.portal.SystemException {
95          return getService().updateTasksProposal(tasksProposal);
96      }
97  
98      public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
99          com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateTasksProposal(tasksProposal, merge);
102     }
103 
104     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
105         long userId, long groupId, java.lang.String className,
106         java.lang.String classPK, java.lang.String name,
107         java.lang.String description, long reviewUserId,
108         boolean addCommunityPermissions, boolean addGuestPermissions)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         return getService()
112                    .addProposal(userId, groupId, className, classPK, name,
113             description, reviewUserId, addCommunityPermissions,
114             addGuestPermissions);
115     }
116 
117     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
118         long userId, long groupId, java.lang.String className,
119         java.lang.String classPK, java.lang.String name,
120         java.lang.String description, long reviewUserId,
121         java.lang.Boolean addCommunityPermissions,
122         java.lang.Boolean addGuestPermissions,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return getService()
128                    .addProposal(userId, groupId, className, classPK, name,
129             description, reviewUserId, addCommunityPermissions,
130             addGuestPermissions, communityPermissions, guestPermissions);
131     }
132 
133     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
134         long userId, long groupId, java.lang.String className,
135         java.lang.String classPK, java.lang.String name,
136         java.lang.String description, long reviewUserId,
137         java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         return getService()
142                    .addProposal(userId, groupId, className, classPK, name,
143             description, reviewUserId, communityPermissions, guestPermissions);
144     }
145 
146     public static void addProposalResources(long proposalId,
147         boolean addCommunityPermissions, boolean addGuestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         getService()
151             .addProposalResources(proposalId, addCommunityPermissions,
152             addGuestPermissions);
153     }
154 
155     public static void addProposalResources(long proposalId,
156         java.lang.String[] communityPermissions,
157         java.lang.String[] guestPermissions)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         getService()
161             .addProposalResources(proposalId, communityPermissions,
162             guestPermissions);
163     }
164 
165     public static void addProposalResources(
166         com.liferay.portlet.tasks.model.TasksProposal proposal,
167         boolean addCommunityPermissions, boolean addGuestPermissions)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         getService()
171             .addProposalResources(proposal, addCommunityPermissions,
172             addGuestPermissions);
173     }
174 
175     public static void addProposalResources(
176         com.liferay.portlet.tasks.model.TasksProposal proposal,
177         java.lang.String[] communityPermissions,
178         java.lang.String[] guestPermissions)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         getService()
182             .addProposalResources(proposal, communityPermissions,
183             guestPermissions);
184     }
185 
186     public static void deleteProposal(long proposalId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         getService().deleteProposal(proposalId);
190     }
191 
192     public static void deleteProposal(long classNameId, java.lang.String classPK)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         getService().deleteProposal(classNameId, classPK);
196     }
197 
198     public static void deleteProposal(java.lang.String className,
199         java.lang.String classPK)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         getService().deleteProposal(className, classPK);
203     }
204 
205     public static void deleteProposal(
206         com.liferay.portlet.tasks.model.TasksProposal proposal)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException {
209         getService().deleteProposal(proposal);
210     }
211 
212     public static void deleteProposals(long groupId)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException {
215         getService().deleteProposals(groupId);
216     }
217 
218     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
219         long proposalId)
220         throws com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException {
222         return getService().getProposal(proposalId);
223     }
224 
225     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
226         long classNameId, java.lang.String classPK)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return getService().getProposal(classNameId, classPK);
230     }
231 
232     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
233         java.lang.String className, java.lang.String classPK)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         return getService().getProposal(className, classPK);
237     }
238 
239     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
240         long groupId, int start, int end)
241         throws com.liferay.portal.SystemException {
242         return getService().getProposals(groupId, start, end);
243     }
244 
245     public static int getProposalsCount(long groupId)
246         throws com.liferay.portal.SystemException {
247         return getService().getProposalsCount(groupId);
248     }
249 
250     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
251         long groupId, long userId, int start, int end)
252         throws com.liferay.portal.SystemException {
253         return getService().getReviewProposals(groupId, userId, start, end);
254     }
255 
256     public static int getReviewProposalsCount(long groupId, long userId)
257         throws com.liferay.portal.SystemException {
258         return getService().getReviewProposalsCount(groupId, userId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
262         long groupId, long userId, int start, int end)
263         throws com.liferay.portal.SystemException {
264         return getService().getUserProposals(groupId, userId, start, end);
265     }
266 
267     public static int getUserProposalsCount(long groupId, long userId)
268         throws com.liferay.portal.SystemException {
269         return getService().getUserProposalsCount(groupId, userId);
270     }
271 
272     public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
273         long userId, long proposalId, java.lang.String description,
274         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
275         int dueDateMinute)
276         throws com.liferay.portal.PortalException,
277             com.liferay.portal.SystemException {
278         return getService()
279                    .updateProposal(userId, proposalId, description,
280             dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
281     }
282 
283     public static TasksProposalLocalService getService() {
284         if (_service == null) {
285             _service = (TasksProposalLocalService)PortalBeanLocatorUtil.locate(TasksProposalLocalService.class.getName());
286         }
287 
288         return _service;
289     }
290 
291     public void setService(TasksProposalLocalService service) {
292         _service = service;
293     }
294 
295     private static TasksProposalLocalService _service;
296 }