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.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.service.ResourceLocalService;
024    import com.liferay.portal.service.ResourceService;
025    import com.liferay.portal.service.UserLocalService;
026    import com.liferay.portal.service.UserService;
027    import com.liferay.portal.service.base.PrincipalBean;
028    import com.liferay.portal.service.persistence.ResourceFinder;
029    import com.liferay.portal.service.persistence.ResourcePersistence;
030    import com.liferay.portal.service.persistence.UserFinder;
031    import com.liferay.portal.service.persistence.UserPersistence;
032    
033    import com.liferay.portlet.social.service.SocialActivityLocalService;
034    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
035    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
036    import com.liferay.portlet.tasks.service.TasksProposalLocalService;
037    import com.liferay.portlet.tasks.service.TasksProposalService;
038    import com.liferay.portlet.tasks.service.TasksReviewLocalService;
039    import com.liferay.portlet.tasks.service.TasksReviewService;
040    import com.liferay.portlet.tasks.service.persistence.TasksProposalFinder;
041    import com.liferay.portlet.tasks.service.persistence.TasksProposalPersistence;
042    import com.liferay.portlet.tasks.service.persistence.TasksReviewPersistence;
043    
044    import javax.sql.DataSource;
045    
046    /**
047     * The base implementation of the tasks review remote service.
048     *
049     * <p>
050     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.tasks.service.impl.TasksReviewServiceImpl}.
051     * </p>
052     *
053     * <p>
054     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.tasks.service.TasksReviewServiceUtil} to access the tasks review remote service.
055     * </p>
056     *
057     * @author Brian Wing Shun Chan
058     * @see com.liferay.portlet.tasks.service.impl.TasksReviewServiceImpl
059     * @see com.liferay.portlet.tasks.service.TasksReviewServiceUtil
060     * @generated
061     */
062    public abstract class TasksReviewServiceBaseImpl extends PrincipalBean
063            implements TasksReviewService {
064            /**
065             * Gets the tasks proposal local service.
066             *
067             * @return the tasks proposal local service
068             */
069            public TasksProposalLocalService getTasksProposalLocalService() {
070                    return tasksProposalLocalService;
071            }
072    
073            /**
074             * Sets the tasks proposal local service.
075             *
076             * @param tasksProposalLocalService the tasks proposal local service
077             */
078            public void setTasksProposalLocalService(
079                    TasksProposalLocalService tasksProposalLocalService) {
080                    this.tasksProposalLocalService = tasksProposalLocalService;
081            }
082    
083            /**
084             * Gets the tasks proposal remote service.
085             *
086             * @return the tasks proposal remote service
087             */
088            public TasksProposalService getTasksProposalService() {
089                    return tasksProposalService;
090            }
091    
092            /**
093             * Sets the tasks proposal remote service.
094             *
095             * @param tasksProposalService the tasks proposal remote service
096             */
097            public void setTasksProposalService(
098                    TasksProposalService tasksProposalService) {
099                    this.tasksProposalService = tasksProposalService;
100            }
101    
102            /**
103             * Gets the tasks proposal persistence.
104             *
105             * @return the tasks proposal persistence
106             */
107            public TasksProposalPersistence getTasksProposalPersistence() {
108                    return tasksProposalPersistence;
109            }
110    
111            /**
112             * Sets the tasks proposal persistence.
113             *
114             * @param tasksProposalPersistence the tasks proposal persistence
115             */
116            public void setTasksProposalPersistence(
117                    TasksProposalPersistence tasksProposalPersistence) {
118                    this.tasksProposalPersistence = tasksProposalPersistence;
119            }
120    
121            /**
122             * Gets the tasks proposal finder.
123             *
124             * @return the tasks proposal finder
125             */
126            public TasksProposalFinder getTasksProposalFinder() {
127                    return tasksProposalFinder;
128            }
129    
130            /**
131             * Sets the tasks proposal finder.
132             *
133             * @param tasksProposalFinder the tasks proposal finder
134             */
135            public void setTasksProposalFinder(TasksProposalFinder tasksProposalFinder) {
136                    this.tasksProposalFinder = tasksProposalFinder;
137            }
138    
139            /**
140             * Gets the tasks review local service.
141             *
142             * @return the tasks review local service
143             */
144            public TasksReviewLocalService getTasksReviewLocalService() {
145                    return tasksReviewLocalService;
146            }
147    
148            /**
149             * Sets the tasks review local service.
150             *
151             * @param tasksReviewLocalService the tasks review local service
152             */
153            public void setTasksReviewLocalService(
154                    TasksReviewLocalService tasksReviewLocalService) {
155                    this.tasksReviewLocalService = tasksReviewLocalService;
156            }
157    
158            /**
159             * Gets the tasks review remote service.
160             *
161             * @return the tasks review remote service
162             */
163            public TasksReviewService getTasksReviewService() {
164                    return tasksReviewService;
165            }
166    
167            /**
168             * Sets the tasks review remote service.
169             *
170             * @param tasksReviewService the tasks review remote service
171             */
172            public void setTasksReviewService(TasksReviewService tasksReviewService) {
173                    this.tasksReviewService = tasksReviewService;
174            }
175    
176            /**
177             * Gets the tasks review persistence.
178             *
179             * @return the tasks review persistence
180             */
181            public TasksReviewPersistence getTasksReviewPersistence() {
182                    return tasksReviewPersistence;
183            }
184    
185            /**
186             * Sets the tasks review persistence.
187             *
188             * @param tasksReviewPersistence the tasks review persistence
189             */
190            public void setTasksReviewPersistence(
191                    TasksReviewPersistence tasksReviewPersistence) {
192                    this.tasksReviewPersistence = tasksReviewPersistence;
193            }
194    
195            /**
196             * Gets the counter local service.
197             *
198             * @return the counter local service
199             */
200            public CounterLocalService getCounterLocalService() {
201                    return counterLocalService;
202            }
203    
204            /**
205             * Sets the counter local service.
206             *
207             * @param counterLocalService the counter local service
208             */
209            public void setCounterLocalService(CounterLocalService counterLocalService) {
210                    this.counterLocalService = counterLocalService;
211            }
212    
213            /**
214             * Gets the resource local service.
215             *
216             * @return the resource local service
217             */
218            public ResourceLocalService getResourceLocalService() {
219                    return resourceLocalService;
220            }
221    
222            /**
223             * Sets the resource local service.
224             *
225             * @param resourceLocalService the resource local service
226             */
227            public void setResourceLocalService(
228                    ResourceLocalService resourceLocalService) {
229                    this.resourceLocalService = resourceLocalService;
230            }
231    
232            /**
233             * Gets the resource remote service.
234             *
235             * @return the resource remote service
236             */
237            public ResourceService getResourceService() {
238                    return resourceService;
239            }
240    
241            /**
242             * Sets the resource remote service.
243             *
244             * @param resourceService the resource remote service
245             */
246            public void setResourceService(ResourceService resourceService) {
247                    this.resourceService = resourceService;
248            }
249    
250            /**
251             * Gets the resource persistence.
252             *
253             * @return the resource persistence
254             */
255            public ResourcePersistence getResourcePersistence() {
256                    return resourcePersistence;
257            }
258    
259            /**
260             * Sets the resource persistence.
261             *
262             * @param resourcePersistence the resource persistence
263             */
264            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
265                    this.resourcePersistence = resourcePersistence;
266            }
267    
268            /**
269             * Gets the resource finder.
270             *
271             * @return the resource finder
272             */
273            public ResourceFinder getResourceFinder() {
274                    return resourceFinder;
275            }
276    
277            /**
278             * Sets the resource finder.
279             *
280             * @param resourceFinder the resource finder
281             */
282            public void setResourceFinder(ResourceFinder resourceFinder) {
283                    this.resourceFinder = resourceFinder;
284            }
285    
286            /**
287             * Gets the user local service.
288             *
289             * @return the user local service
290             */
291            public UserLocalService getUserLocalService() {
292                    return userLocalService;
293            }
294    
295            /**
296             * Sets the user local service.
297             *
298             * @param userLocalService the user local service
299             */
300            public void setUserLocalService(UserLocalService userLocalService) {
301                    this.userLocalService = userLocalService;
302            }
303    
304            /**
305             * Gets the user remote service.
306             *
307             * @return the user remote service
308             */
309            public UserService getUserService() {
310                    return userService;
311            }
312    
313            /**
314             * Sets the user remote service.
315             *
316             * @param userService the user remote service
317             */
318            public void setUserService(UserService userService) {
319                    this.userService = userService;
320            }
321    
322            /**
323             * Gets the user persistence.
324             *
325             * @return the user persistence
326             */
327            public UserPersistence getUserPersistence() {
328                    return userPersistence;
329            }
330    
331            /**
332             * Sets the user persistence.
333             *
334             * @param userPersistence the user persistence
335             */
336            public void setUserPersistence(UserPersistence userPersistence) {
337                    this.userPersistence = userPersistence;
338            }
339    
340            /**
341             * Gets the user finder.
342             *
343             * @return the user finder
344             */
345            public UserFinder getUserFinder() {
346                    return userFinder;
347            }
348    
349            /**
350             * Sets the user finder.
351             *
352             * @param userFinder the user finder
353             */
354            public void setUserFinder(UserFinder userFinder) {
355                    this.userFinder = userFinder;
356            }
357    
358            /**
359             * Gets the social activity local service.
360             *
361             * @return the social activity local service
362             */
363            public SocialActivityLocalService getSocialActivityLocalService() {
364                    return socialActivityLocalService;
365            }
366    
367            /**
368             * Sets the social activity local service.
369             *
370             * @param socialActivityLocalService the social activity local service
371             */
372            public void setSocialActivityLocalService(
373                    SocialActivityLocalService socialActivityLocalService) {
374                    this.socialActivityLocalService = socialActivityLocalService;
375            }
376    
377            /**
378             * Gets the social activity persistence.
379             *
380             * @return the social activity persistence
381             */
382            public SocialActivityPersistence getSocialActivityPersistence() {
383                    return socialActivityPersistence;
384            }
385    
386            /**
387             * Sets the social activity persistence.
388             *
389             * @param socialActivityPersistence the social activity persistence
390             */
391            public void setSocialActivityPersistence(
392                    SocialActivityPersistence socialActivityPersistence) {
393                    this.socialActivityPersistence = socialActivityPersistence;
394            }
395    
396            /**
397             * Gets the social activity finder.
398             *
399             * @return the social activity finder
400             */
401            public SocialActivityFinder getSocialActivityFinder() {
402                    return socialActivityFinder;
403            }
404    
405            /**
406             * Sets the social activity finder.
407             *
408             * @param socialActivityFinder the social activity finder
409             */
410            public void setSocialActivityFinder(
411                    SocialActivityFinder socialActivityFinder) {
412                    this.socialActivityFinder = socialActivityFinder;
413            }
414    
415            /**
416             * Performs an SQL query.
417             *
418             * @param sql the sql query to perform
419             */
420            protected void runSQL(String sql) throws SystemException {
421                    try {
422                            DataSource dataSource = tasksReviewPersistence.getDataSource();
423    
424                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
425                                            sql, new int[0]);
426    
427                            sqlUpdate.update();
428                    }
429                    catch (Exception e) {
430                            throw new SystemException(e);
431                    }
432            }
433    
434            @BeanReference(type = TasksProposalLocalService.class)
435            protected TasksProposalLocalService tasksProposalLocalService;
436            @BeanReference(type = TasksProposalService.class)
437            protected TasksProposalService tasksProposalService;
438            @BeanReference(type = TasksProposalPersistence.class)
439            protected TasksProposalPersistence tasksProposalPersistence;
440            @BeanReference(type = TasksProposalFinder.class)
441            protected TasksProposalFinder tasksProposalFinder;
442            @BeanReference(type = TasksReviewLocalService.class)
443            protected TasksReviewLocalService tasksReviewLocalService;
444            @BeanReference(type = TasksReviewService.class)
445            protected TasksReviewService tasksReviewService;
446            @BeanReference(type = TasksReviewPersistence.class)
447            protected TasksReviewPersistence tasksReviewPersistence;
448            @BeanReference(type = CounterLocalService.class)
449            protected CounterLocalService counterLocalService;
450            @BeanReference(type = ResourceLocalService.class)
451            protected ResourceLocalService resourceLocalService;
452            @BeanReference(type = ResourceService.class)
453            protected ResourceService resourceService;
454            @BeanReference(type = ResourcePersistence.class)
455            protected ResourcePersistence resourcePersistence;
456            @BeanReference(type = ResourceFinder.class)
457            protected ResourceFinder resourceFinder;
458            @BeanReference(type = UserLocalService.class)
459            protected UserLocalService userLocalService;
460            @BeanReference(type = UserService.class)
461            protected UserService userService;
462            @BeanReference(type = UserPersistence.class)
463            protected UserPersistence userPersistence;
464            @BeanReference(type = UserFinder.class)
465            protected UserFinder userFinder;
466            @BeanReference(type = SocialActivityLocalService.class)
467            protected SocialActivityLocalService socialActivityLocalService;
468            @BeanReference(type = SocialActivityPersistence.class)
469            protected SocialActivityPersistence socialActivityPersistence;
470            @BeanReference(type = SocialActivityFinder.class)
471            protected SocialActivityFinder socialActivityFinder;
472    }