001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.tasks.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link TasksProposalLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       TasksProposalLocalService
024     * @generated
025     */
026    public class TasksProposalLocalServiceWrapper
027            implements TasksProposalLocalService {
028            public TasksProposalLocalServiceWrapper(
029                    TasksProposalLocalService tasksProposalLocalService) {
030                    _tasksProposalLocalService = tasksProposalLocalService;
031            }
032    
033            /**
034            * Adds the tasks proposal to the database. Also notifies the appropriate model listeners.
035            *
036            * @param tasksProposal the tasks proposal to add
037            * @return the tasks proposal that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
041                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _tasksProposalLocalService.addTasksProposal(tasksProposal);
044            }
045    
046            /**
047            * Creates a new tasks proposal with the primary key. Does not add the tasks proposal to the database.
048            *
049            * @param proposalId the primary key for the new tasks proposal
050            * @return the new tasks proposal
051            */
052            public com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
053                    long proposalId) {
054                    return _tasksProposalLocalService.createTasksProposal(proposalId);
055            }
056    
057            /**
058            * Deletes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param proposalId the primary key of the tasks proposal to delete
061            * @throws PortalException if a tasks proposal with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteTasksProposal(long proposalId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _tasksProposalLocalService.deleteTasksProposal(proposalId);
068            }
069    
070            /**
071            * Deletes the tasks proposal from the database. Also notifies the appropriate model listeners.
072            *
073            * @param tasksProposal the tasks proposal to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteTasksProposal(
077                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _tasksProposalLocalService.deleteTasksProposal(tasksProposal);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _tasksProposalLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _tasksProposalLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _tasksProposalLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _tasksProposalLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the tasks proposal with the primary key.
155            *
156            * @param proposalId the primary key of the tasks proposal to get
157            * @return the tasks proposal
158            * @throws PortalException if a tasks proposal with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
162                    long proposalId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _tasksProposalLocalService.getTasksProposal(proposalId);
166            }
167    
168            /**
169            * Gets a range of all the tasks proposals.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
173            * </p>
174            *
175            * @param start the lower bound of the range of tasks proposals to return
176            * @param end the upper bound of the range of tasks proposals to return (not inclusive)
177            * @return the range of tasks proposals
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _tasksProposalLocalService.getTasksProposals(start, end);
184            }
185    
186            /**
187            * Gets the number of tasks proposals.
188            *
189            * @return the number of tasks proposals
190            * @throws SystemException if a system exception occurred
191            */
192            public int getTasksProposalsCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _tasksProposalLocalService.getTasksProposalsCount();
195            }
196    
197            /**
198            * Updates the tasks proposal in the database. Also notifies the appropriate model listeners.
199            *
200            * @param tasksProposal the tasks proposal to update
201            * @return the tasks proposal that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
205                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _tasksProposalLocalService.updateTasksProposal(tasksProposal);
208            }
209    
210            /**
211            * Updates the tasks proposal in the database. Also notifies the appropriate model listeners.
212            *
213            * @param tasksProposal the tasks proposal to update
214            * @param merge whether to merge the tasks proposal with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
215            * @return the tasks proposal that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
219                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
220                    boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _tasksProposalLocalService.updateTasksProposal(tasksProposal,
223                            merge);
224            }
225    
226            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
227                    long userId, long groupId, java.lang.String className,
228                    java.lang.String classPK, java.lang.String name,
229                    java.lang.String description, long reviewUserId,
230                    boolean addCommunityPermissions, boolean addGuestPermissions)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    return _tasksProposalLocalService.addProposal(userId, groupId,
234                            className, classPK, name, description, reviewUserId,
235                            addCommunityPermissions, addGuestPermissions);
236            }
237    
238            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
239                    long userId, long groupId, java.lang.String className,
240                    java.lang.String classPK, java.lang.String name,
241                    java.lang.String description, long reviewUserId,
242                    java.lang.Boolean addCommunityPermissions,
243                    java.lang.Boolean addGuestPermissions,
244                    java.lang.String[] communityPermissions,
245                    java.lang.String[] guestPermissions)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    return _tasksProposalLocalService.addProposal(userId, groupId,
249                            className, classPK, name, description, reviewUserId,
250                            addCommunityPermissions, addGuestPermissions, communityPermissions,
251                            guestPermissions);
252            }
253    
254            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
255                    long userId, long groupId, java.lang.String className,
256                    java.lang.String classPK, java.lang.String name,
257                    java.lang.String description, long reviewUserId,
258                    java.lang.String[] communityPermissions,
259                    java.lang.String[] guestPermissions)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return _tasksProposalLocalService.addProposal(userId, groupId,
263                            className, classPK, name, description, reviewUserId,
264                            communityPermissions, guestPermissions);
265            }
266    
267            public void addProposalResources(long proposalId,
268                    boolean addCommunityPermissions, boolean addGuestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _tasksProposalLocalService.addProposalResources(proposalId,
272                            addCommunityPermissions, addGuestPermissions);
273            }
274    
275            public void addProposalResources(long proposalId,
276                    java.lang.String[] communityPermissions,
277                    java.lang.String[] guestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _tasksProposalLocalService.addProposalResources(proposalId,
281                            communityPermissions, guestPermissions);
282            }
283    
284            public void addProposalResources(
285                    com.liferay.portlet.tasks.model.TasksProposal proposal,
286                    boolean addCommunityPermissions, boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _tasksProposalLocalService.addProposalResources(proposal,
290                            addCommunityPermissions, addGuestPermissions);
291            }
292    
293            public void addProposalResources(
294                    com.liferay.portlet.tasks.model.TasksProposal proposal,
295                    java.lang.String[] communityPermissions,
296                    java.lang.String[] guestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _tasksProposalLocalService.addProposalResources(proposal,
300                            communityPermissions, guestPermissions);
301            }
302    
303            public void deleteProposal(long proposalId)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _tasksProposalLocalService.deleteProposal(proposalId);
307            }
308    
309            public void deleteProposal(long classNameId, java.lang.String classPK)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _tasksProposalLocalService.deleteProposal(classNameId, classPK);
313            }
314    
315            public void deleteProposal(java.lang.String className,
316                    java.lang.String classPK)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _tasksProposalLocalService.deleteProposal(className, classPK);
320            }
321    
322            public void deleteProposal(
323                    com.liferay.portlet.tasks.model.TasksProposal proposal)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _tasksProposalLocalService.deleteProposal(proposal);
327            }
328    
329            public void deleteProposals(long groupId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _tasksProposalLocalService.deleteProposals(groupId);
333            }
334    
335            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
336                    long proposalId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _tasksProposalLocalService.getProposal(proposalId);
340            }
341    
342            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
343                    long classNameId, java.lang.String classPK)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    return _tasksProposalLocalService.getProposal(classNameId, classPK);
347            }
348    
349            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
350                    java.lang.String className, java.lang.String classPK)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _tasksProposalLocalService.getProposal(className, classPK);
354            }
355    
356            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
357                    long groupId, int start, int end)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _tasksProposalLocalService.getProposals(groupId, start, end);
360            }
361    
362            public int getProposalsCount(long groupId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _tasksProposalLocalService.getProposalsCount(groupId);
365            }
366    
367            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
368                    long groupId, long userId, int start, int end)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _tasksProposalLocalService.getReviewProposals(groupId, userId,
371                            start, end);
372            }
373    
374            public int getReviewProposalsCount(long groupId, long userId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _tasksProposalLocalService.getReviewProposalsCount(groupId,
377                            userId);
378            }
379    
380            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
381                    long groupId, long userId, int start, int end)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _tasksProposalLocalService.getUserProposals(groupId, userId,
384                            start, end);
385            }
386    
387            public int getUserProposalsCount(long groupId, long userId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _tasksProposalLocalService.getUserProposalsCount(groupId, userId);
390            }
391    
392            public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
393                    long userId, long proposalId, java.lang.String description,
394                    int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
395                    int dueDateMinute)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _tasksProposalLocalService.updateProposal(userId, proposalId,
399                            description, dueDateMonth, dueDateDay, dueDateYear, dueDateHour,
400                            dueDateMinute);
401            }
402    
403            public TasksProposalLocalService getWrappedTasksProposalLocalService() {
404                    return _tasksProposalLocalService;
405            }
406    
407            private TasksProposalLocalService _tasksProposalLocalService;
408    }