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