001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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
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
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
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
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
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (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
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
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            * Returns the tasks proposal with the primary key.
155            *
156            * @param proposalId the primary key of the tasks proposal
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _tasksProposalLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the tasks proposals.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of tasks proposals
183            * @param end the upper bound of the range of tasks proposals (not inclusive)
184            * @return the range of tasks proposals
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _tasksProposalLocalService.getTasksProposals(start, end);
191            }
192    
193            /**
194            * Returns the number of tasks proposals.
195            *
196            * @return the number of tasks proposals
197            * @throws SystemException if a system exception occurred
198            */
199            public int getTasksProposalsCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _tasksProposalLocalService.getTasksProposalsCount();
202            }
203    
204            /**
205            * Updates the tasks proposal in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param tasksProposal the tasks proposal
208            * @return the tasks proposal that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
212                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _tasksProposalLocalService.updateTasksProposal(tasksProposal);
215            }
216    
217            /**
218            * Updates the tasks proposal in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param tasksProposal the tasks proposal
221            * @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.
222            * @return the tasks proposal that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
226                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _tasksProposalLocalService.updateTasksProposal(tasksProposal,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _tasksProposalLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _tasksProposalLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
252                    long userId, long groupId, java.lang.String className,
253                    java.lang.String classPK, java.lang.String name,
254                    java.lang.String description, long reviewUserId,
255                    boolean addCommunityPermissions, boolean addGuestPermissions)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    return _tasksProposalLocalService.addProposal(userId, groupId,
259                            className, classPK, name, description, reviewUserId,
260                            addCommunityPermissions, addGuestPermissions);
261            }
262    
263            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
264                    long userId, long groupId, java.lang.String className,
265                    java.lang.String classPK, java.lang.String name,
266                    java.lang.String description, long reviewUserId,
267                    java.lang.Boolean addCommunityPermissions,
268                    java.lang.Boolean addGuestPermissions,
269                    java.lang.String[] communityPermissions,
270                    java.lang.String[] guestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _tasksProposalLocalService.addProposal(userId, groupId,
274                            className, classPK, name, description, reviewUserId,
275                            addCommunityPermissions, addGuestPermissions, communityPermissions,
276                            guestPermissions);
277            }
278    
279            public com.liferay.portlet.tasks.model.TasksProposal addProposal(
280                    long userId, long groupId, java.lang.String className,
281                    java.lang.String classPK, java.lang.String name,
282                    java.lang.String description, long reviewUserId,
283                    java.lang.String[] communityPermissions,
284                    java.lang.String[] guestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _tasksProposalLocalService.addProposal(userId, groupId,
288                            className, classPK, name, description, reviewUserId,
289                            communityPermissions, guestPermissions);
290            }
291    
292            public void addProposalResources(long proposalId,
293                    boolean addCommunityPermissions, boolean addGuestPermissions)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _tasksProposalLocalService.addProposalResources(proposalId,
297                            addCommunityPermissions, addGuestPermissions);
298            }
299    
300            public void addProposalResources(long proposalId,
301                    java.lang.String[] communityPermissions,
302                    java.lang.String[] guestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _tasksProposalLocalService.addProposalResources(proposalId,
306                            communityPermissions, guestPermissions);
307            }
308    
309            public void addProposalResources(
310                    com.liferay.portlet.tasks.model.TasksProposal proposal,
311                    boolean addCommunityPermissions, boolean addGuestPermissions)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _tasksProposalLocalService.addProposalResources(proposal,
315                            addCommunityPermissions, addGuestPermissions);
316            }
317    
318            public void addProposalResources(
319                    com.liferay.portlet.tasks.model.TasksProposal proposal,
320                    java.lang.String[] communityPermissions,
321                    java.lang.String[] guestPermissions)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    _tasksProposalLocalService.addProposalResources(proposal,
325                            communityPermissions, guestPermissions);
326            }
327    
328            public void deleteProposal(long proposalId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    _tasksProposalLocalService.deleteProposal(proposalId);
332            }
333    
334            public void deleteProposal(long classNameId, java.lang.String classPK)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _tasksProposalLocalService.deleteProposal(classNameId, classPK);
338            }
339    
340            public void deleteProposal(java.lang.String className,
341                    java.lang.String classPK)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _tasksProposalLocalService.deleteProposal(className, classPK);
345            }
346    
347            public void deleteProposal(
348                    com.liferay.portlet.tasks.model.TasksProposal proposal)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    _tasksProposalLocalService.deleteProposal(proposal);
352            }
353    
354            public void deleteProposals(long groupId)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    _tasksProposalLocalService.deleteProposals(groupId);
358            }
359    
360            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
361                    long proposalId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _tasksProposalLocalService.getProposal(proposalId);
365            }
366    
367            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
368                    long classNameId, java.lang.String classPK)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _tasksProposalLocalService.getProposal(classNameId, classPK);
372            }
373    
374            public com.liferay.portlet.tasks.model.TasksProposal getProposal(
375                    java.lang.String className, java.lang.String classPK)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _tasksProposalLocalService.getProposal(className, classPK);
379            }
380    
381            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
382                    long groupId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _tasksProposalLocalService.getProposals(groupId, start, end);
385            }
386    
387            public int getProposalsCount(long groupId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _tasksProposalLocalService.getProposalsCount(groupId);
390            }
391    
392            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
393                    long groupId, long userId, int start, int end)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _tasksProposalLocalService.getReviewProposals(groupId, userId,
396                            start, end);
397            }
398    
399            public int getReviewProposalsCount(long groupId, long userId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _tasksProposalLocalService.getReviewProposalsCount(groupId,
402                            userId);
403            }
404    
405            public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
406                    long groupId, long userId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _tasksProposalLocalService.getUserProposals(groupId, userId,
409                            start, end);
410            }
411    
412            public int getUserProposalsCount(long groupId, long userId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _tasksProposalLocalService.getUserProposalsCount(groupId, userId);
415            }
416    
417            public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
418                    long userId, long proposalId, java.lang.String description,
419                    int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
420                    int dueDateMinute)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return _tasksProposalLocalService.updateProposal(userId, proposalId,
424                            description, dueDateMonth, dueDateDay, dueDateYear, dueDateHour,
425                            dueDateMinute);
426            }
427    
428            public TasksProposalLocalService getWrappedTasksProposalLocalService() {
429                    return _tasksProposalLocalService;
430            }
431    
432            public void setWrappedTasksProposalLocalService(
433                    TasksProposalLocalService tasksProposalLocalService) {
434                    _tasksProposalLocalService = tasksProposalLocalService;
435            }
436    
437            private TasksProposalLocalService _tasksProposalLocalService;
438    }