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.imagegallery.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.GroupLocalService;
024    import com.liferay.portal.service.GroupService;
025    import com.liferay.portal.service.ImageLocalService;
026    import com.liferay.portal.service.ImageService;
027    import com.liferay.portal.service.LayoutLocalService;
028    import com.liferay.portal.service.LayoutService;
029    import com.liferay.portal.service.ResourceLocalService;
030    import com.liferay.portal.service.ResourceService;
031    import com.liferay.portal.service.UserLocalService;
032    import com.liferay.portal.service.UserService;
033    import com.liferay.portal.service.base.PrincipalBean;
034    import com.liferay.portal.service.persistence.GroupFinder;
035    import com.liferay.portal.service.persistence.GroupPersistence;
036    import com.liferay.portal.service.persistence.ImagePersistence;
037    import com.liferay.portal.service.persistence.LayoutFinder;
038    import com.liferay.portal.service.persistence.LayoutPersistence;
039    import com.liferay.portal.service.persistence.ResourceFinder;
040    import com.liferay.portal.service.persistence.ResourcePersistence;
041    import com.liferay.portal.service.persistence.UserFinder;
042    import com.liferay.portal.service.persistence.UserPersistence;
043    
044    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
045    import com.liferay.portlet.expando.service.ExpandoValueService;
046    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
047    import com.liferay.portlet.imagegallery.service.IGFolderLocalService;
048    import com.liferay.portlet.imagegallery.service.IGFolderService;
049    import com.liferay.portlet.imagegallery.service.IGImageLocalService;
050    import com.liferay.portlet.imagegallery.service.IGImageService;
051    import com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence;
052    import com.liferay.portlet.imagegallery.service.persistence.IGImageFinder;
053    import com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * The base implementation of the i g folder remote service.
059     *
060     * <p>
061     * 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.imagegallery.service.impl.IGFolderServiceImpl}.
062     * </p>
063     *
064     * <p>
065     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.imagegallery.service.IGFolderServiceUtil} to access the i g folder remote service.
066     * </p>
067     *
068     * @author Brian Wing Shun Chan
069     * @see com.liferay.portlet.imagegallery.service.impl.IGFolderServiceImpl
070     * @see com.liferay.portlet.imagegallery.service.IGFolderServiceUtil
071     * @generated
072     */
073    public abstract class IGFolderServiceBaseImpl extends PrincipalBean
074            implements IGFolderService {
075            /**
076             * Gets the i g folder local service.
077             *
078             * @return the i g folder local service
079             */
080            public IGFolderLocalService getIGFolderLocalService() {
081                    return igFolderLocalService;
082            }
083    
084            /**
085             * Sets the i g folder local service.
086             *
087             * @param igFolderLocalService the i g folder local service
088             */
089            public void setIGFolderLocalService(
090                    IGFolderLocalService igFolderLocalService) {
091                    this.igFolderLocalService = igFolderLocalService;
092            }
093    
094            /**
095             * Gets the i g folder remote service.
096             *
097             * @return the i g folder remote service
098             */
099            public IGFolderService getIGFolderService() {
100                    return igFolderService;
101            }
102    
103            /**
104             * Sets the i g folder remote service.
105             *
106             * @param igFolderService the i g folder remote service
107             */
108            public void setIGFolderService(IGFolderService igFolderService) {
109                    this.igFolderService = igFolderService;
110            }
111    
112            /**
113             * Gets the i g folder persistence.
114             *
115             * @return the i g folder persistence
116             */
117            public IGFolderPersistence getIGFolderPersistence() {
118                    return igFolderPersistence;
119            }
120    
121            /**
122             * Sets the i g folder persistence.
123             *
124             * @param igFolderPersistence the i g folder persistence
125             */
126            public void setIGFolderPersistence(IGFolderPersistence igFolderPersistence) {
127                    this.igFolderPersistence = igFolderPersistence;
128            }
129    
130            /**
131             * Gets the i g image local service.
132             *
133             * @return the i g image local service
134             */
135            public IGImageLocalService getIGImageLocalService() {
136                    return igImageLocalService;
137            }
138    
139            /**
140             * Sets the i g image local service.
141             *
142             * @param igImageLocalService the i g image local service
143             */
144            public void setIGImageLocalService(IGImageLocalService igImageLocalService) {
145                    this.igImageLocalService = igImageLocalService;
146            }
147    
148            /**
149             * Gets the i g image remote service.
150             *
151             * @return the i g image remote service
152             */
153            public IGImageService getIGImageService() {
154                    return igImageService;
155            }
156    
157            /**
158             * Sets the i g image remote service.
159             *
160             * @param igImageService the i g image remote service
161             */
162            public void setIGImageService(IGImageService igImageService) {
163                    this.igImageService = igImageService;
164            }
165    
166            /**
167             * Gets the i g image persistence.
168             *
169             * @return the i g image persistence
170             */
171            public IGImagePersistence getIGImagePersistence() {
172                    return igImagePersistence;
173            }
174    
175            /**
176             * Sets the i g image persistence.
177             *
178             * @param igImagePersistence the i g image persistence
179             */
180            public void setIGImagePersistence(IGImagePersistence igImagePersistence) {
181                    this.igImagePersistence = igImagePersistence;
182            }
183    
184            /**
185             * Gets the i g image finder.
186             *
187             * @return the i g image finder
188             */
189            public IGImageFinder getIGImageFinder() {
190                    return igImageFinder;
191            }
192    
193            /**
194             * Sets the i g image finder.
195             *
196             * @param igImageFinder the i g image finder
197             */
198            public void setIGImageFinder(IGImageFinder igImageFinder) {
199                    this.igImageFinder = igImageFinder;
200            }
201    
202            /**
203             * Gets the counter local service.
204             *
205             * @return the counter local service
206             */
207            public CounterLocalService getCounterLocalService() {
208                    return counterLocalService;
209            }
210    
211            /**
212             * Sets the counter local service.
213             *
214             * @param counterLocalService the counter local service
215             */
216            public void setCounterLocalService(CounterLocalService counterLocalService) {
217                    this.counterLocalService = counterLocalService;
218            }
219    
220            /**
221             * Gets the group local service.
222             *
223             * @return the group local service
224             */
225            public GroupLocalService getGroupLocalService() {
226                    return groupLocalService;
227            }
228    
229            /**
230             * Sets the group local service.
231             *
232             * @param groupLocalService the group local service
233             */
234            public void setGroupLocalService(GroupLocalService groupLocalService) {
235                    this.groupLocalService = groupLocalService;
236            }
237    
238            /**
239             * Gets the group remote service.
240             *
241             * @return the group remote service
242             */
243            public GroupService getGroupService() {
244                    return groupService;
245            }
246    
247            /**
248             * Sets the group remote service.
249             *
250             * @param groupService the group remote service
251             */
252            public void setGroupService(GroupService groupService) {
253                    this.groupService = groupService;
254            }
255    
256            /**
257             * Gets the group persistence.
258             *
259             * @return the group persistence
260             */
261            public GroupPersistence getGroupPersistence() {
262                    return groupPersistence;
263            }
264    
265            /**
266             * Sets the group persistence.
267             *
268             * @param groupPersistence the group persistence
269             */
270            public void setGroupPersistence(GroupPersistence groupPersistence) {
271                    this.groupPersistence = groupPersistence;
272            }
273    
274            /**
275             * Gets the group finder.
276             *
277             * @return the group finder
278             */
279            public GroupFinder getGroupFinder() {
280                    return groupFinder;
281            }
282    
283            /**
284             * Sets the group finder.
285             *
286             * @param groupFinder the group finder
287             */
288            public void setGroupFinder(GroupFinder groupFinder) {
289                    this.groupFinder = groupFinder;
290            }
291    
292            /**
293             * Gets the image local service.
294             *
295             * @return the image local service
296             */
297            public ImageLocalService getImageLocalService() {
298                    return imageLocalService;
299            }
300    
301            /**
302             * Sets the image local service.
303             *
304             * @param imageLocalService the image local service
305             */
306            public void setImageLocalService(ImageLocalService imageLocalService) {
307                    this.imageLocalService = imageLocalService;
308            }
309    
310            /**
311             * Gets the image remote service.
312             *
313             * @return the image remote service
314             */
315            public ImageService getImageService() {
316                    return imageService;
317            }
318    
319            /**
320             * Sets the image remote service.
321             *
322             * @param imageService the image remote service
323             */
324            public void setImageService(ImageService imageService) {
325                    this.imageService = imageService;
326            }
327    
328            /**
329             * Gets the image persistence.
330             *
331             * @return the image persistence
332             */
333            public ImagePersistence getImagePersistence() {
334                    return imagePersistence;
335            }
336    
337            /**
338             * Sets the image persistence.
339             *
340             * @param imagePersistence the image persistence
341             */
342            public void setImagePersistence(ImagePersistence imagePersistence) {
343                    this.imagePersistence = imagePersistence;
344            }
345    
346            /**
347             * Gets the layout local service.
348             *
349             * @return the layout local service
350             */
351            public LayoutLocalService getLayoutLocalService() {
352                    return layoutLocalService;
353            }
354    
355            /**
356             * Sets the layout local service.
357             *
358             * @param layoutLocalService the layout local service
359             */
360            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
361                    this.layoutLocalService = layoutLocalService;
362            }
363    
364            /**
365             * Gets the layout remote service.
366             *
367             * @return the layout remote service
368             */
369            public LayoutService getLayoutService() {
370                    return layoutService;
371            }
372    
373            /**
374             * Sets the layout remote service.
375             *
376             * @param layoutService the layout remote service
377             */
378            public void setLayoutService(LayoutService layoutService) {
379                    this.layoutService = layoutService;
380            }
381    
382            /**
383             * Gets the layout persistence.
384             *
385             * @return the layout persistence
386             */
387            public LayoutPersistence getLayoutPersistence() {
388                    return layoutPersistence;
389            }
390    
391            /**
392             * Sets the layout persistence.
393             *
394             * @param layoutPersistence the layout persistence
395             */
396            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
397                    this.layoutPersistence = layoutPersistence;
398            }
399    
400            /**
401             * Gets the layout finder.
402             *
403             * @return the layout finder
404             */
405            public LayoutFinder getLayoutFinder() {
406                    return layoutFinder;
407            }
408    
409            /**
410             * Sets the layout finder.
411             *
412             * @param layoutFinder the layout finder
413             */
414            public void setLayoutFinder(LayoutFinder layoutFinder) {
415                    this.layoutFinder = layoutFinder;
416            }
417    
418            /**
419             * Gets the resource local service.
420             *
421             * @return the resource local service
422             */
423            public ResourceLocalService getResourceLocalService() {
424                    return resourceLocalService;
425            }
426    
427            /**
428             * Sets the resource local service.
429             *
430             * @param resourceLocalService the resource local service
431             */
432            public void setResourceLocalService(
433                    ResourceLocalService resourceLocalService) {
434                    this.resourceLocalService = resourceLocalService;
435            }
436    
437            /**
438             * Gets the resource remote service.
439             *
440             * @return the resource remote service
441             */
442            public ResourceService getResourceService() {
443                    return resourceService;
444            }
445    
446            /**
447             * Sets the resource remote service.
448             *
449             * @param resourceService the resource remote service
450             */
451            public void setResourceService(ResourceService resourceService) {
452                    this.resourceService = resourceService;
453            }
454    
455            /**
456             * Gets the resource persistence.
457             *
458             * @return the resource persistence
459             */
460            public ResourcePersistence getResourcePersistence() {
461                    return resourcePersistence;
462            }
463    
464            /**
465             * Sets the resource persistence.
466             *
467             * @param resourcePersistence the resource persistence
468             */
469            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
470                    this.resourcePersistence = resourcePersistence;
471            }
472    
473            /**
474             * Gets the resource finder.
475             *
476             * @return the resource finder
477             */
478            public ResourceFinder getResourceFinder() {
479                    return resourceFinder;
480            }
481    
482            /**
483             * Sets the resource finder.
484             *
485             * @param resourceFinder the resource finder
486             */
487            public void setResourceFinder(ResourceFinder resourceFinder) {
488                    this.resourceFinder = resourceFinder;
489            }
490    
491            /**
492             * Gets the user local service.
493             *
494             * @return the user local service
495             */
496            public UserLocalService getUserLocalService() {
497                    return userLocalService;
498            }
499    
500            /**
501             * Sets the user local service.
502             *
503             * @param userLocalService the user local service
504             */
505            public void setUserLocalService(UserLocalService userLocalService) {
506                    this.userLocalService = userLocalService;
507            }
508    
509            /**
510             * Gets the user remote service.
511             *
512             * @return the user remote service
513             */
514            public UserService getUserService() {
515                    return userService;
516            }
517    
518            /**
519             * Sets the user remote service.
520             *
521             * @param userService the user remote service
522             */
523            public void setUserService(UserService userService) {
524                    this.userService = userService;
525            }
526    
527            /**
528             * Gets the user persistence.
529             *
530             * @return the user persistence
531             */
532            public UserPersistence getUserPersistence() {
533                    return userPersistence;
534            }
535    
536            /**
537             * Sets the user persistence.
538             *
539             * @param userPersistence the user persistence
540             */
541            public void setUserPersistence(UserPersistence userPersistence) {
542                    this.userPersistence = userPersistence;
543            }
544    
545            /**
546             * Gets the user finder.
547             *
548             * @return the user finder
549             */
550            public UserFinder getUserFinder() {
551                    return userFinder;
552            }
553    
554            /**
555             * Sets the user finder.
556             *
557             * @param userFinder the user finder
558             */
559            public void setUserFinder(UserFinder userFinder) {
560                    this.userFinder = userFinder;
561            }
562    
563            /**
564             * Gets the expando value local service.
565             *
566             * @return the expando value local service
567             */
568            public ExpandoValueLocalService getExpandoValueLocalService() {
569                    return expandoValueLocalService;
570            }
571    
572            /**
573             * Sets the expando value local service.
574             *
575             * @param expandoValueLocalService the expando value local service
576             */
577            public void setExpandoValueLocalService(
578                    ExpandoValueLocalService expandoValueLocalService) {
579                    this.expandoValueLocalService = expandoValueLocalService;
580            }
581    
582            /**
583             * Gets the expando value remote service.
584             *
585             * @return the expando value remote service
586             */
587            public ExpandoValueService getExpandoValueService() {
588                    return expandoValueService;
589            }
590    
591            /**
592             * Sets the expando value remote service.
593             *
594             * @param expandoValueService the expando value remote service
595             */
596            public void setExpandoValueService(ExpandoValueService expandoValueService) {
597                    this.expandoValueService = expandoValueService;
598            }
599    
600            /**
601             * Gets the expando value persistence.
602             *
603             * @return the expando value persistence
604             */
605            public ExpandoValuePersistence getExpandoValuePersistence() {
606                    return expandoValuePersistence;
607            }
608    
609            /**
610             * Sets the expando value persistence.
611             *
612             * @param expandoValuePersistence the expando value persistence
613             */
614            public void setExpandoValuePersistence(
615                    ExpandoValuePersistence expandoValuePersistence) {
616                    this.expandoValuePersistence = expandoValuePersistence;
617            }
618    
619            /**
620             * Performs an SQL query.
621             *
622             * @param sql the sql query to perform
623             */
624            protected void runSQL(String sql) throws SystemException {
625                    try {
626                            DataSource dataSource = igFolderPersistence.getDataSource();
627    
628                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
629                                            sql, new int[0]);
630    
631                            sqlUpdate.update();
632                    }
633                    catch (Exception e) {
634                            throw new SystemException(e);
635                    }
636            }
637    
638            @BeanReference(type = IGFolderLocalService.class)
639            protected IGFolderLocalService igFolderLocalService;
640            @BeanReference(type = IGFolderService.class)
641            protected IGFolderService igFolderService;
642            @BeanReference(type = IGFolderPersistence.class)
643            protected IGFolderPersistence igFolderPersistence;
644            @BeanReference(type = IGImageLocalService.class)
645            protected IGImageLocalService igImageLocalService;
646            @BeanReference(type = IGImageService.class)
647            protected IGImageService igImageService;
648            @BeanReference(type = IGImagePersistence.class)
649            protected IGImagePersistence igImagePersistence;
650            @BeanReference(type = IGImageFinder.class)
651            protected IGImageFinder igImageFinder;
652            @BeanReference(type = CounterLocalService.class)
653            protected CounterLocalService counterLocalService;
654            @BeanReference(type = GroupLocalService.class)
655            protected GroupLocalService groupLocalService;
656            @BeanReference(type = GroupService.class)
657            protected GroupService groupService;
658            @BeanReference(type = GroupPersistence.class)
659            protected GroupPersistence groupPersistence;
660            @BeanReference(type = GroupFinder.class)
661            protected GroupFinder groupFinder;
662            @BeanReference(type = ImageLocalService.class)
663            protected ImageLocalService imageLocalService;
664            @BeanReference(type = ImageService.class)
665            protected ImageService imageService;
666            @BeanReference(type = ImagePersistence.class)
667            protected ImagePersistence imagePersistence;
668            @BeanReference(type = LayoutLocalService.class)
669            protected LayoutLocalService layoutLocalService;
670            @BeanReference(type = LayoutService.class)
671            protected LayoutService layoutService;
672            @BeanReference(type = LayoutPersistence.class)
673            protected LayoutPersistence layoutPersistence;
674            @BeanReference(type = LayoutFinder.class)
675            protected LayoutFinder layoutFinder;
676            @BeanReference(type = ResourceLocalService.class)
677            protected ResourceLocalService resourceLocalService;
678            @BeanReference(type = ResourceService.class)
679            protected ResourceService resourceService;
680            @BeanReference(type = ResourcePersistence.class)
681            protected ResourcePersistence resourcePersistence;
682            @BeanReference(type = ResourceFinder.class)
683            protected ResourceFinder resourceFinder;
684            @BeanReference(type = UserLocalService.class)
685            protected UserLocalService userLocalService;
686            @BeanReference(type = UserService.class)
687            protected UserService userService;
688            @BeanReference(type = UserPersistence.class)
689            protected UserPersistence userPersistence;
690            @BeanReference(type = UserFinder.class)
691            protected UserFinder userFinder;
692            @BeanReference(type = ExpandoValueLocalService.class)
693            protected ExpandoValueLocalService expandoValueLocalService;
694            @BeanReference(type = ExpandoValueService.class)
695            protected ExpandoValueService expandoValueService;
696            @BeanReference(type = ExpandoValuePersistence.class)
697            protected ExpandoValuePersistence expandoValuePersistence;
698    }