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  
26  /**
27   * <a href="TasksProposalLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.tasks.service.TasksProposalLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.tasks.service.TasksProposalLocalService
45   *
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 addProposal(
107         long userId, long groupId, java.lang.String className,
108         java.lang.String classPK, java.lang.String name,
109         java.lang.String description, long reviewUserId,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return getService()
114                    .addProposal(userId, groupId, className, classPK, name,
115             description, reviewUserId, addCommunityPermissions,
116             addGuestPermissions);
117     }
118 
119     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
120         long userId, long groupId, java.lang.String className,
121         java.lang.String classPK, java.lang.String name,
122         java.lang.String description, long reviewUserId,
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, communityPermissions, guestPermissions);
130     }
131 
132     public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
133         long userId, long groupId, java.lang.String className,
134         java.lang.String classPK, java.lang.String name,
135         java.lang.String description, long reviewUserId,
136         java.lang.Boolean addCommunityPermissions,
137         java.lang.Boolean addGuestPermissions,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         return getService()
143                    .addProposal(userId, groupId, className, classPK, name,
144             description, reviewUserId, addCommunityPermissions,
145             addGuestPermissions, communityPermissions, guestPermissions);
146     }
147 
148     public static void addProposalResources(long proposalId,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         getService()
153             .addProposalResources(proposalId, addCommunityPermissions,
154             addGuestPermissions);
155     }
156 
157     public static void addProposalResources(
158         com.liferay.portlet.tasks.model.TasksProposal proposal,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         getService()
163             .addProposalResources(proposal, addCommunityPermissions,
164             addGuestPermissions);
165     }
166 
167     public static void addProposalResources(long proposalId,
168         java.lang.String[] communityPermissions,
169         java.lang.String[] guestPermissions)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         getService()
173             .addProposalResources(proposalId, communityPermissions,
174             guestPermissions);
175     }
176 
177     public static void addProposalResources(
178         com.liferay.portlet.tasks.model.TasksProposal proposal,
179         java.lang.String[] communityPermissions,
180         java.lang.String[] guestPermissions)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService()
184             .addProposalResources(proposal, communityPermissions,
185             guestPermissions);
186     }
187 
188     public static void deleteProposal(java.lang.String className,
189         java.lang.String classPK)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         getService().deleteProposal(className, classPK);
193     }
194 
195     public static void deleteProposal(long classNameId, java.lang.String classPK)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         getService().deleteProposal(classNameId, classPK);
199     }
200 
201     public static void deleteProposal(long proposalId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         getService().deleteProposal(proposalId);
205     }
206 
207     public static void deleteProposal(
208         com.liferay.portlet.tasks.model.TasksProposal proposal)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         getService().deleteProposal(proposal);
212     }
213 
214     public static void deleteProposals(long groupId)
215         throws com.liferay.portal.SystemException {
216         getService().deleteProposals(groupId);
217     }
218 
219     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
220         long proposalId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         return getService().getProposal(proposalId);
224     }
225 
226     public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
227         java.lang.String className, java.lang.String classPK)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         return getService().getProposal(className, classPK);
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 java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
241         long groupId, int start, int end)
242         throws com.liferay.portal.SystemException {
243         return getService().getProposals(groupId, start, end);
244     }
245 
246     public static int getProposalsCount(long groupId)
247         throws com.liferay.portal.SystemException {
248         return getService().getProposalsCount(groupId);
249     }
250 
251     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
252         long groupId, long userId, int start, int end)
253         throws com.liferay.portal.SystemException {
254         return getService().getReviewProposals(groupId, userId, start, end);
255     }
256 
257     public static int getReviewProposalsCount(long groupId, long userId)
258         throws com.liferay.portal.SystemException {
259         return getService().getReviewProposalsCount(groupId, userId);
260     }
261 
262     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
263         long groupId, long userId, int start, int end)
264         throws com.liferay.portal.SystemException {
265         return getService().getUserProposals(groupId, userId, start, end);
266     }
267 
268     public static int getUserProposalsCount(long groupId, long userId)
269         throws com.liferay.portal.SystemException {
270         return getService().getUserProposalsCount(groupId, userId);
271     }
272 
273     public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
274         long userId, long proposalId, java.lang.String description,
275         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
276         int dueDateMinute)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException {
279         return getService()
280                    .updateProposal(userId, proposalId, description,
281             dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
282     }
283 
284     public static TasksProposalLocalService getService() {
285         if (_service == null) {
286             throw new RuntimeException("TasksProposalLocalService is not set");
287         }
288 
289         return _service;
290     }
291 
292     public void setService(TasksProposalLocalService service) {
293         _service = service;
294     }
295 
296     private static TasksProposalLocalService _service;
297 }