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.documentlibrary.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.asset.service.AssetEntryLocalService;
034    import com.liferay.portlet.asset.service.AssetEntryService;
035    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
036    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
037    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
038    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
039    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
040    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
041    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
042    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
043    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
044    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLFolderService;
046    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
047    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
048    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
049    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
050    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
051    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
052    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * The base implementation of the d l file version remote service.
058     *
059     * <p>
060     * 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.documentlibrary.service.impl.DLFileVersionServiceImpl}.
061     * </p>
062     *
063     * <p>
064     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileVersionServiceUtil} to access the d l file version remote service.
065     * </p>
066     *
067     * @author Brian Wing Shun Chan
068     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl
069     * @see com.liferay.portlet.documentlibrary.service.DLFileVersionServiceUtil
070     * @generated
071     */
072    public abstract class DLFileVersionServiceBaseImpl extends PrincipalBean
073            implements DLFileVersionService {
074            /**
075             * Gets the d l file entry local service.
076             *
077             * @return the d l file entry local service
078             */
079            public DLFileEntryLocalService getDLFileEntryLocalService() {
080                    return dlFileEntryLocalService;
081            }
082    
083            /**
084             * Sets the d l file entry local service.
085             *
086             * @param dlFileEntryLocalService the d l file entry local service
087             */
088            public void setDLFileEntryLocalService(
089                    DLFileEntryLocalService dlFileEntryLocalService) {
090                    this.dlFileEntryLocalService = dlFileEntryLocalService;
091            }
092    
093            /**
094             * Gets the d l file entry remote service.
095             *
096             * @return the d l file entry remote service
097             */
098            public DLFileEntryService getDLFileEntryService() {
099                    return dlFileEntryService;
100            }
101    
102            /**
103             * Sets the d l file entry remote service.
104             *
105             * @param dlFileEntryService the d l file entry remote service
106             */
107            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
108                    this.dlFileEntryService = dlFileEntryService;
109            }
110    
111            /**
112             * Gets the d l file entry persistence.
113             *
114             * @return the d l file entry persistence
115             */
116            public DLFileEntryPersistence getDLFileEntryPersistence() {
117                    return dlFileEntryPersistence;
118            }
119    
120            /**
121             * Sets the d l file entry persistence.
122             *
123             * @param dlFileEntryPersistence the d l file entry persistence
124             */
125            public void setDLFileEntryPersistence(
126                    DLFileEntryPersistence dlFileEntryPersistence) {
127                    this.dlFileEntryPersistence = dlFileEntryPersistence;
128            }
129    
130            /**
131             * Gets the d l file entry finder.
132             *
133             * @return the d l file entry finder
134             */
135            public DLFileEntryFinder getDLFileEntryFinder() {
136                    return dlFileEntryFinder;
137            }
138    
139            /**
140             * Sets the d l file entry finder.
141             *
142             * @param dlFileEntryFinder the d l file entry finder
143             */
144            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
145                    this.dlFileEntryFinder = dlFileEntryFinder;
146            }
147    
148            /**
149             * Gets the d l file rank local service.
150             *
151             * @return the d l file rank local service
152             */
153            public DLFileRankLocalService getDLFileRankLocalService() {
154                    return dlFileRankLocalService;
155            }
156    
157            /**
158             * Sets the d l file rank local service.
159             *
160             * @param dlFileRankLocalService the d l file rank local service
161             */
162            public void setDLFileRankLocalService(
163                    DLFileRankLocalService dlFileRankLocalService) {
164                    this.dlFileRankLocalService = dlFileRankLocalService;
165            }
166    
167            /**
168             * Gets the d l file rank persistence.
169             *
170             * @return the d l file rank persistence
171             */
172            public DLFileRankPersistence getDLFileRankPersistence() {
173                    return dlFileRankPersistence;
174            }
175    
176            /**
177             * Sets the d l file rank persistence.
178             *
179             * @param dlFileRankPersistence the d l file rank persistence
180             */
181            public void setDLFileRankPersistence(
182                    DLFileRankPersistence dlFileRankPersistence) {
183                    this.dlFileRankPersistence = dlFileRankPersistence;
184            }
185    
186            /**
187             * Gets the d l file shortcut local service.
188             *
189             * @return the d l file shortcut local service
190             */
191            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
192                    return dlFileShortcutLocalService;
193            }
194    
195            /**
196             * Sets the d l file shortcut local service.
197             *
198             * @param dlFileShortcutLocalService the d l file shortcut local service
199             */
200            public void setDLFileShortcutLocalService(
201                    DLFileShortcutLocalService dlFileShortcutLocalService) {
202                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
203            }
204    
205            /**
206             * Gets the d l file shortcut remote service.
207             *
208             * @return the d l file shortcut remote service
209             */
210            public DLFileShortcutService getDLFileShortcutService() {
211                    return dlFileShortcutService;
212            }
213    
214            /**
215             * Sets the d l file shortcut remote service.
216             *
217             * @param dlFileShortcutService the d l file shortcut remote service
218             */
219            public void setDLFileShortcutService(
220                    DLFileShortcutService dlFileShortcutService) {
221                    this.dlFileShortcutService = dlFileShortcutService;
222            }
223    
224            /**
225             * Gets the d l file shortcut persistence.
226             *
227             * @return the d l file shortcut persistence
228             */
229            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
230                    return dlFileShortcutPersistence;
231            }
232    
233            /**
234             * Sets the d l file shortcut persistence.
235             *
236             * @param dlFileShortcutPersistence the d l file shortcut persistence
237             */
238            public void setDLFileShortcutPersistence(
239                    DLFileShortcutPersistence dlFileShortcutPersistence) {
240                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
241            }
242    
243            /**
244             * Gets the d l file version local service.
245             *
246             * @return the d l file version local service
247             */
248            public DLFileVersionLocalService getDLFileVersionLocalService() {
249                    return dlFileVersionLocalService;
250            }
251    
252            /**
253             * Sets the d l file version local service.
254             *
255             * @param dlFileVersionLocalService the d l file version local service
256             */
257            public void setDLFileVersionLocalService(
258                    DLFileVersionLocalService dlFileVersionLocalService) {
259                    this.dlFileVersionLocalService = dlFileVersionLocalService;
260            }
261    
262            /**
263             * Gets the d l file version remote service.
264             *
265             * @return the d l file version remote service
266             */
267            public DLFileVersionService getDLFileVersionService() {
268                    return dlFileVersionService;
269            }
270    
271            /**
272             * Sets the d l file version remote service.
273             *
274             * @param dlFileVersionService the d l file version remote service
275             */
276            public void setDLFileVersionService(
277                    DLFileVersionService dlFileVersionService) {
278                    this.dlFileVersionService = dlFileVersionService;
279            }
280    
281            /**
282             * Gets the d l file version persistence.
283             *
284             * @return the d l file version persistence
285             */
286            public DLFileVersionPersistence getDLFileVersionPersistence() {
287                    return dlFileVersionPersistence;
288            }
289    
290            /**
291             * Sets the d l file version persistence.
292             *
293             * @param dlFileVersionPersistence the d l file version persistence
294             */
295            public void setDLFileVersionPersistence(
296                    DLFileVersionPersistence dlFileVersionPersistence) {
297                    this.dlFileVersionPersistence = dlFileVersionPersistence;
298            }
299    
300            /**
301             * Gets the d l folder local service.
302             *
303             * @return the d l folder local service
304             */
305            public DLFolderLocalService getDLFolderLocalService() {
306                    return dlFolderLocalService;
307            }
308    
309            /**
310             * Sets the d l folder local service.
311             *
312             * @param dlFolderLocalService the d l folder local service
313             */
314            public void setDLFolderLocalService(
315                    DLFolderLocalService dlFolderLocalService) {
316                    this.dlFolderLocalService = dlFolderLocalService;
317            }
318    
319            /**
320             * Gets the d l folder remote service.
321             *
322             * @return the d l folder remote service
323             */
324            public DLFolderService getDLFolderService() {
325                    return dlFolderService;
326            }
327    
328            /**
329             * Sets the d l folder remote service.
330             *
331             * @param dlFolderService the d l folder remote service
332             */
333            public void setDLFolderService(DLFolderService dlFolderService) {
334                    this.dlFolderService = dlFolderService;
335            }
336    
337            /**
338             * Gets the d l folder persistence.
339             *
340             * @return the d l folder persistence
341             */
342            public DLFolderPersistence getDLFolderPersistence() {
343                    return dlFolderPersistence;
344            }
345    
346            /**
347             * Sets the d l folder persistence.
348             *
349             * @param dlFolderPersistence the d l folder persistence
350             */
351            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
352                    this.dlFolderPersistence = dlFolderPersistence;
353            }
354    
355            /**
356             * Gets the d l folder finder.
357             *
358             * @return the d l folder finder
359             */
360            public DLFolderFinder getDLFolderFinder() {
361                    return dlFolderFinder;
362            }
363    
364            /**
365             * Sets the d l folder finder.
366             *
367             * @param dlFolderFinder the d l folder finder
368             */
369            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
370                    this.dlFolderFinder = dlFolderFinder;
371            }
372    
373            /**
374             * Gets the counter local service.
375             *
376             * @return the counter local service
377             */
378            public CounterLocalService getCounterLocalService() {
379                    return counterLocalService;
380            }
381    
382            /**
383             * Sets the counter local service.
384             *
385             * @param counterLocalService the counter local service
386             */
387            public void setCounterLocalService(CounterLocalService counterLocalService) {
388                    this.counterLocalService = counterLocalService;
389            }
390    
391            /**
392             * Gets the resource local service.
393             *
394             * @return the resource local service
395             */
396            public ResourceLocalService getResourceLocalService() {
397                    return resourceLocalService;
398            }
399    
400            /**
401             * Sets the resource local service.
402             *
403             * @param resourceLocalService the resource local service
404             */
405            public void setResourceLocalService(
406                    ResourceLocalService resourceLocalService) {
407                    this.resourceLocalService = resourceLocalService;
408            }
409    
410            /**
411             * Gets the resource remote service.
412             *
413             * @return the resource remote service
414             */
415            public ResourceService getResourceService() {
416                    return resourceService;
417            }
418    
419            /**
420             * Sets the resource remote service.
421             *
422             * @param resourceService the resource remote service
423             */
424            public void setResourceService(ResourceService resourceService) {
425                    this.resourceService = resourceService;
426            }
427    
428            /**
429             * Gets the resource persistence.
430             *
431             * @return the resource persistence
432             */
433            public ResourcePersistence getResourcePersistence() {
434                    return resourcePersistence;
435            }
436    
437            /**
438             * Sets the resource persistence.
439             *
440             * @param resourcePersistence the resource persistence
441             */
442            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
443                    this.resourcePersistence = resourcePersistence;
444            }
445    
446            /**
447             * Gets the resource finder.
448             *
449             * @return the resource finder
450             */
451            public ResourceFinder getResourceFinder() {
452                    return resourceFinder;
453            }
454    
455            /**
456             * Sets the resource finder.
457             *
458             * @param resourceFinder the resource finder
459             */
460            public void setResourceFinder(ResourceFinder resourceFinder) {
461                    this.resourceFinder = resourceFinder;
462            }
463    
464            /**
465             * Gets the user local service.
466             *
467             * @return the user local service
468             */
469            public UserLocalService getUserLocalService() {
470                    return userLocalService;
471            }
472    
473            /**
474             * Sets the user local service.
475             *
476             * @param userLocalService the user local service
477             */
478            public void setUserLocalService(UserLocalService userLocalService) {
479                    this.userLocalService = userLocalService;
480            }
481    
482            /**
483             * Gets the user remote service.
484             *
485             * @return the user remote service
486             */
487            public UserService getUserService() {
488                    return userService;
489            }
490    
491            /**
492             * Sets the user remote service.
493             *
494             * @param userService the user remote service
495             */
496            public void setUserService(UserService userService) {
497                    this.userService = userService;
498            }
499    
500            /**
501             * Gets the user persistence.
502             *
503             * @return the user persistence
504             */
505            public UserPersistence getUserPersistence() {
506                    return userPersistence;
507            }
508    
509            /**
510             * Sets the user persistence.
511             *
512             * @param userPersistence the user persistence
513             */
514            public void setUserPersistence(UserPersistence userPersistence) {
515                    this.userPersistence = userPersistence;
516            }
517    
518            /**
519             * Gets the user finder.
520             *
521             * @return the user finder
522             */
523            public UserFinder getUserFinder() {
524                    return userFinder;
525            }
526    
527            /**
528             * Sets the user finder.
529             *
530             * @param userFinder the user finder
531             */
532            public void setUserFinder(UserFinder userFinder) {
533                    this.userFinder = userFinder;
534            }
535    
536            /**
537             * Gets the asset entry local service.
538             *
539             * @return the asset entry local service
540             */
541            public AssetEntryLocalService getAssetEntryLocalService() {
542                    return assetEntryLocalService;
543            }
544    
545            /**
546             * Sets the asset entry local service.
547             *
548             * @param assetEntryLocalService the asset entry local service
549             */
550            public void setAssetEntryLocalService(
551                    AssetEntryLocalService assetEntryLocalService) {
552                    this.assetEntryLocalService = assetEntryLocalService;
553            }
554    
555            /**
556             * Gets the asset entry remote service.
557             *
558             * @return the asset entry remote service
559             */
560            public AssetEntryService getAssetEntryService() {
561                    return assetEntryService;
562            }
563    
564            /**
565             * Sets the asset entry remote service.
566             *
567             * @param assetEntryService the asset entry remote service
568             */
569            public void setAssetEntryService(AssetEntryService assetEntryService) {
570                    this.assetEntryService = assetEntryService;
571            }
572    
573            /**
574             * Gets the asset entry persistence.
575             *
576             * @return the asset entry persistence
577             */
578            public AssetEntryPersistence getAssetEntryPersistence() {
579                    return assetEntryPersistence;
580            }
581    
582            /**
583             * Sets the asset entry persistence.
584             *
585             * @param assetEntryPersistence the asset entry persistence
586             */
587            public void setAssetEntryPersistence(
588                    AssetEntryPersistence assetEntryPersistence) {
589                    this.assetEntryPersistence = assetEntryPersistence;
590            }
591    
592            /**
593             * Gets the asset entry finder.
594             *
595             * @return the asset entry finder
596             */
597            public AssetEntryFinder getAssetEntryFinder() {
598                    return assetEntryFinder;
599            }
600    
601            /**
602             * Sets the asset entry finder.
603             *
604             * @param assetEntryFinder the asset entry finder
605             */
606            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
607                    this.assetEntryFinder = assetEntryFinder;
608            }
609    
610            /**
611             * Performs an SQL query.
612             *
613             * @param sql the sql query to perform
614             */
615            protected void runSQL(String sql) throws SystemException {
616                    try {
617                            DataSource dataSource = dlFileVersionPersistence.getDataSource();
618    
619                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
620                                            sql, new int[0]);
621    
622                            sqlUpdate.update();
623                    }
624                    catch (Exception e) {
625                            throw new SystemException(e);
626                    }
627            }
628    
629            @BeanReference(type = DLFileEntryLocalService.class)
630            protected DLFileEntryLocalService dlFileEntryLocalService;
631            @BeanReference(type = DLFileEntryService.class)
632            protected DLFileEntryService dlFileEntryService;
633            @BeanReference(type = DLFileEntryPersistence.class)
634            protected DLFileEntryPersistence dlFileEntryPersistence;
635            @BeanReference(type = DLFileEntryFinder.class)
636            protected DLFileEntryFinder dlFileEntryFinder;
637            @BeanReference(type = DLFileRankLocalService.class)
638            protected DLFileRankLocalService dlFileRankLocalService;
639            @BeanReference(type = DLFileRankPersistence.class)
640            protected DLFileRankPersistence dlFileRankPersistence;
641            @BeanReference(type = DLFileShortcutLocalService.class)
642            protected DLFileShortcutLocalService dlFileShortcutLocalService;
643            @BeanReference(type = DLFileShortcutService.class)
644            protected DLFileShortcutService dlFileShortcutService;
645            @BeanReference(type = DLFileShortcutPersistence.class)
646            protected DLFileShortcutPersistence dlFileShortcutPersistence;
647            @BeanReference(type = DLFileVersionLocalService.class)
648            protected DLFileVersionLocalService dlFileVersionLocalService;
649            @BeanReference(type = DLFileVersionService.class)
650            protected DLFileVersionService dlFileVersionService;
651            @BeanReference(type = DLFileVersionPersistence.class)
652            protected DLFileVersionPersistence dlFileVersionPersistence;
653            @BeanReference(type = DLFolderLocalService.class)
654            protected DLFolderLocalService dlFolderLocalService;
655            @BeanReference(type = DLFolderService.class)
656            protected DLFolderService dlFolderService;
657            @BeanReference(type = DLFolderPersistence.class)
658            protected DLFolderPersistence dlFolderPersistence;
659            @BeanReference(type = DLFolderFinder.class)
660            protected DLFolderFinder dlFolderFinder;
661            @BeanReference(type = CounterLocalService.class)
662            protected CounterLocalService counterLocalService;
663            @BeanReference(type = ResourceLocalService.class)
664            protected ResourceLocalService resourceLocalService;
665            @BeanReference(type = ResourceService.class)
666            protected ResourceService resourceService;
667            @BeanReference(type = ResourcePersistence.class)
668            protected ResourcePersistence resourcePersistence;
669            @BeanReference(type = ResourceFinder.class)
670            protected ResourceFinder resourceFinder;
671            @BeanReference(type = UserLocalService.class)
672            protected UserLocalService userLocalService;
673            @BeanReference(type = UserService.class)
674            protected UserService userService;
675            @BeanReference(type = UserPersistence.class)
676            protected UserPersistence userPersistence;
677            @BeanReference(type = UserFinder.class)
678            protected UserFinder userFinder;
679            @BeanReference(type = AssetEntryLocalService.class)
680            protected AssetEntryLocalService assetEntryLocalService;
681            @BeanReference(type = AssetEntryService.class)
682            protected AssetEntryService assetEntryService;
683            @BeanReference(type = AssetEntryPersistence.class)
684            protected AssetEntryPersistence assetEntryPersistence;
685            @BeanReference(type = AssetEntryFinder.class)
686            protected AssetEntryFinder assetEntryFinder;
687    }