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