001    /**
002     * Copyright (c) 2000-2012 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.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.service.RepositoryLocalService;
025    import com.liferay.portal.service.RepositoryService;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.base.PrincipalBean;
031    import com.liferay.portal.service.persistence.RepositoryPersistence;
032    import com.liferay.portal.service.persistence.ResourceFinder;
033    import com.liferay.portal.service.persistence.ResourcePersistence;
034    import com.liferay.portal.service.persistence.UserFinder;
035    import com.liferay.portal.service.persistence.UserPersistence;
036    
037    import com.liferay.portlet.documentlibrary.model.DLSync;
038    import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
039    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
040    import com.liferay.portlet.documentlibrary.service.DLAppService;
041    import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
042    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
043    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
044    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
045    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
047    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
049    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
050    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
051    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
052    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
053    import com.liferay.portlet.documentlibrary.service.DLFolderService;
054    import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
055    import com.liferay.portlet.documentlibrary.service.DLSyncService;
056    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
057    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
058    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
059    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
060    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
061    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
066    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
067    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
068    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
069    
070    import javax.sql.DataSource;
071    
072    /**
073     * The base implementation of the d l sync remote service.
074     *
075     * <p>
076     * 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.DLSyncServiceImpl}.
077     * </p>
078     *
079     * @author Brian Wing Shun Chan
080     * @see com.liferay.portlet.documentlibrary.service.impl.DLSyncServiceImpl
081     * @see com.liferay.portlet.documentlibrary.service.DLSyncServiceUtil
082     * @generated
083     */
084    public abstract class DLSyncServiceBaseImpl extends PrincipalBean
085            implements DLSyncService, IdentifiableBean {
086            /*
087             * NOTE FOR DEVELOPERS:
088             *
089             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLSyncServiceUtil} to access the d l sync remote service.
090             */
091    
092            /**
093             * Returns the d l app local service.
094             *
095             * @return the d l app local service
096             */
097            public DLAppLocalService getDLAppLocalService() {
098                    return dlAppLocalService;
099            }
100    
101            /**
102             * Sets the d l app local service.
103             *
104             * @param dlAppLocalService the d l app local service
105             */
106            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
107                    this.dlAppLocalService = dlAppLocalService;
108            }
109    
110            /**
111             * Returns the d l app remote service.
112             *
113             * @return the d l app remote service
114             */
115            public DLAppService getDLAppService() {
116                    return dlAppService;
117            }
118    
119            /**
120             * Sets the d l app remote service.
121             *
122             * @param dlAppService the d l app remote service
123             */
124            public void setDLAppService(DLAppService dlAppService) {
125                    this.dlAppService = dlAppService;
126            }
127    
128            /**
129             * Returns the d l app helper local service.
130             *
131             * @return the d l app helper local service
132             */
133            public DLAppHelperLocalService getDLAppHelperLocalService() {
134                    return dlAppHelperLocalService;
135            }
136    
137            /**
138             * Sets the d l app helper local service.
139             *
140             * @param dlAppHelperLocalService the d l app helper local service
141             */
142            public void setDLAppHelperLocalService(
143                    DLAppHelperLocalService dlAppHelperLocalService) {
144                    this.dlAppHelperLocalService = dlAppHelperLocalService;
145            }
146    
147            /**
148             * Returns the document library content local service.
149             *
150             * @return the document library content local service
151             */
152            public DLContentLocalService getDLContentLocalService() {
153                    return dlContentLocalService;
154            }
155    
156            /**
157             * Sets the document library content local service.
158             *
159             * @param dlContentLocalService the document library content local service
160             */
161            public void setDLContentLocalService(
162                    DLContentLocalService dlContentLocalService) {
163                    this.dlContentLocalService = dlContentLocalService;
164            }
165    
166            /**
167             * Returns the document library content persistence.
168             *
169             * @return the document library content persistence
170             */
171            public DLContentPersistence getDLContentPersistence() {
172                    return dlContentPersistence;
173            }
174    
175            /**
176             * Sets the document library content persistence.
177             *
178             * @param dlContentPersistence the document library content persistence
179             */
180            public void setDLContentPersistence(
181                    DLContentPersistence dlContentPersistence) {
182                    this.dlContentPersistence = dlContentPersistence;
183            }
184    
185            /**
186             * Returns the document library file entry local service.
187             *
188             * @return the document library file entry local service
189             */
190            public DLFileEntryLocalService getDLFileEntryLocalService() {
191                    return dlFileEntryLocalService;
192            }
193    
194            /**
195             * Sets the document library file entry local service.
196             *
197             * @param dlFileEntryLocalService the document library file entry local service
198             */
199            public void setDLFileEntryLocalService(
200                    DLFileEntryLocalService dlFileEntryLocalService) {
201                    this.dlFileEntryLocalService = dlFileEntryLocalService;
202            }
203    
204            /**
205             * Returns the document library file entry remote service.
206             *
207             * @return the document library file entry remote service
208             */
209            public DLFileEntryService getDLFileEntryService() {
210                    return dlFileEntryService;
211            }
212    
213            /**
214             * Sets the document library file entry remote service.
215             *
216             * @param dlFileEntryService the document library file entry remote service
217             */
218            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
219                    this.dlFileEntryService = dlFileEntryService;
220            }
221    
222            /**
223             * Returns the document library file entry persistence.
224             *
225             * @return the document library file entry persistence
226             */
227            public DLFileEntryPersistence getDLFileEntryPersistence() {
228                    return dlFileEntryPersistence;
229            }
230    
231            /**
232             * Sets the document library file entry persistence.
233             *
234             * @param dlFileEntryPersistence the document library file entry persistence
235             */
236            public void setDLFileEntryPersistence(
237                    DLFileEntryPersistence dlFileEntryPersistence) {
238                    this.dlFileEntryPersistence = dlFileEntryPersistence;
239            }
240    
241            /**
242             * Returns the document library file entry finder.
243             *
244             * @return the document library file entry finder
245             */
246            public DLFileEntryFinder getDLFileEntryFinder() {
247                    return dlFileEntryFinder;
248            }
249    
250            /**
251             * Sets the document library file entry finder.
252             *
253             * @param dlFileEntryFinder the document library file entry finder
254             */
255            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
256                    this.dlFileEntryFinder = dlFileEntryFinder;
257            }
258    
259            /**
260             * Returns the document library file entry metadata local service.
261             *
262             * @return the document library file entry metadata local service
263             */
264            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
265                    return dlFileEntryMetadataLocalService;
266            }
267    
268            /**
269             * Sets the document library file entry metadata local service.
270             *
271             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
272             */
273            public void setDLFileEntryMetadataLocalService(
274                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
275                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
276            }
277    
278            /**
279             * Returns the document library file entry metadata persistence.
280             *
281             * @return the document library file entry metadata persistence
282             */
283            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
284                    return dlFileEntryMetadataPersistence;
285            }
286    
287            /**
288             * Sets the document library file entry metadata persistence.
289             *
290             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
291             */
292            public void setDLFileEntryMetadataPersistence(
293                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
294                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
295            }
296    
297            /**
298             * Returns the document library file entry type local service.
299             *
300             * @return the document library file entry type local service
301             */
302            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
303                    return dlFileEntryTypeLocalService;
304            }
305    
306            /**
307             * Sets the document library file entry type local service.
308             *
309             * @param dlFileEntryTypeLocalService the document library file entry type local service
310             */
311            public void setDLFileEntryTypeLocalService(
312                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
313                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
314            }
315    
316            /**
317             * Returns the document library file entry type remote service.
318             *
319             * @return the document library file entry type remote service
320             */
321            public DLFileEntryTypeService getDLFileEntryTypeService() {
322                    return dlFileEntryTypeService;
323            }
324    
325            /**
326             * Sets the document library file entry type remote service.
327             *
328             * @param dlFileEntryTypeService the document library file entry type remote service
329             */
330            public void setDLFileEntryTypeService(
331                    DLFileEntryTypeService dlFileEntryTypeService) {
332                    this.dlFileEntryTypeService = dlFileEntryTypeService;
333            }
334    
335            /**
336             * Returns the document library file entry type persistence.
337             *
338             * @return the document library file entry type persistence
339             */
340            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
341                    return dlFileEntryTypePersistence;
342            }
343    
344            /**
345             * Sets the document library file entry type persistence.
346             *
347             * @param dlFileEntryTypePersistence the document library file entry type persistence
348             */
349            public void setDLFileEntryTypePersistence(
350                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
351                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
352            }
353    
354            /**
355             * Returns the document library file entry type finder.
356             *
357             * @return the document library file entry type finder
358             */
359            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
360                    return dlFileEntryTypeFinder;
361            }
362    
363            /**
364             * Sets the document library file entry type finder.
365             *
366             * @param dlFileEntryTypeFinder the document library file entry type finder
367             */
368            public void setDLFileEntryTypeFinder(
369                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
370                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
371            }
372    
373            /**
374             * Returns the document library file rank local service.
375             *
376             * @return the document library file rank local service
377             */
378            public DLFileRankLocalService getDLFileRankLocalService() {
379                    return dlFileRankLocalService;
380            }
381    
382            /**
383             * Sets the document library file rank local service.
384             *
385             * @param dlFileRankLocalService the document library file rank local service
386             */
387            public void setDLFileRankLocalService(
388                    DLFileRankLocalService dlFileRankLocalService) {
389                    this.dlFileRankLocalService = dlFileRankLocalService;
390            }
391    
392            /**
393             * Returns the document library file rank persistence.
394             *
395             * @return the document library file rank persistence
396             */
397            public DLFileRankPersistence getDLFileRankPersistence() {
398                    return dlFileRankPersistence;
399            }
400    
401            /**
402             * Sets the document library file rank persistence.
403             *
404             * @param dlFileRankPersistence the document library file rank persistence
405             */
406            public void setDLFileRankPersistence(
407                    DLFileRankPersistence dlFileRankPersistence) {
408                    this.dlFileRankPersistence = dlFileRankPersistence;
409            }
410    
411            /**
412             * Returns the document library file rank finder.
413             *
414             * @return the document library file rank finder
415             */
416            public DLFileRankFinder getDLFileRankFinder() {
417                    return dlFileRankFinder;
418            }
419    
420            /**
421             * Sets the document library file rank finder.
422             *
423             * @param dlFileRankFinder the document library file rank finder
424             */
425            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
426                    this.dlFileRankFinder = dlFileRankFinder;
427            }
428    
429            /**
430             * Returns the document library file shortcut local service.
431             *
432             * @return the document library file shortcut local service
433             */
434            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
435                    return dlFileShortcutLocalService;
436            }
437    
438            /**
439             * Sets the document library file shortcut local service.
440             *
441             * @param dlFileShortcutLocalService the document library file shortcut local service
442             */
443            public void setDLFileShortcutLocalService(
444                    DLFileShortcutLocalService dlFileShortcutLocalService) {
445                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
446            }
447    
448            /**
449             * Returns the document library file shortcut remote service.
450             *
451             * @return the document library file shortcut remote service
452             */
453            public DLFileShortcutService getDLFileShortcutService() {
454                    return dlFileShortcutService;
455            }
456    
457            /**
458             * Sets the document library file shortcut remote service.
459             *
460             * @param dlFileShortcutService the document library file shortcut remote service
461             */
462            public void setDLFileShortcutService(
463                    DLFileShortcutService dlFileShortcutService) {
464                    this.dlFileShortcutService = dlFileShortcutService;
465            }
466    
467            /**
468             * Returns the document library file shortcut persistence.
469             *
470             * @return the document library file shortcut persistence
471             */
472            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
473                    return dlFileShortcutPersistence;
474            }
475    
476            /**
477             * Sets the document library file shortcut persistence.
478             *
479             * @param dlFileShortcutPersistence the document library file shortcut persistence
480             */
481            public void setDLFileShortcutPersistence(
482                    DLFileShortcutPersistence dlFileShortcutPersistence) {
483                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
484            }
485    
486            /**
487             * Returns the document library file version local service.
488             *
489             * @return the document library file version local service
490             */
491            public DLFileVersionLocalService getDLFileVersionLocalService() {
492                    return dlFileVersionLocalService;
493            }
494    
495            /**
496             * Sets the document library file version local service.
497             *
498             * @param dlFileVersionLocalService the document library file version local service
499             */
500            public void setDLFileVersionLocalService(
501                    DLFileVersionLocalService dlFileVersionLocalService) {
502                    this.dlFileVersionLocalService = dlFileVersionLocalService;
503            }
504    
505            /**
506             * Returns the document library file version remote service.
507             *
508             * @return the document library file version remote service
509             */
510            public DLFileVersionService getDLFileVersionService() {
511                    return dlFileVersionService;
512            }
513    
514            /**
515             * Sets the document library file version remote service.
516             *
517             * @param dlFileVersionService the document library file version remote service
518             */
519            public void setDLFileVersionService(
520                    DLFileVersionService dlFileVersionService) {
521                    this.dlFileVersionService = dlFileVersionService;
522            }
523    
524            /**
525             * Returns the document library file version persistence.
526             *
527             * @return the document library file version persistence
528             */
529            public DLFileVersionPersistence getDLFileVersionPersistence() {
530                    return dlFileVersionPersistence;
531            }
532    
533            /**
534             * Sets the document library file version persistence.
535             *
536             * @param dlFileVersionPersistence the document library file version persistence
537             */
538            public void setDLFileVersionPersistence(
539                    DLFileVersionPersistence dlFileVersionPersistence) {
540                    this.dlFileVersionPersistence = dlFileVersionPersistence;
541            }
542    
543            /**
544             * Returns the document library folder local service.
545             *
546             * @return the document library folder local service
547             */
548            public DLFolderLocalService getDLFolderLocalService() {
549                    return dlFolderLocalService;
550            }
551    
552            /**
553             * Sets the document library folder local service.
554             *
555             * @param dlFolderLocalService the document library folder local service
556             */
557            public void setDLFolderLocalService(
558                    DLFolderLocalService dlFolderLocalService) {
559                    this.dlFolderLocalService = dlFolderLocalService;
560            }
561    
562            /**
563             * Returns the document library folder remote service.
564             *
565             * @return the document library folder remote service
566             */
567            public DLFolderService getDLFolderService() {
568                    return dlFolderService;
569            }
570    
571            /**
572             * Sets the document library folder remote service.
573             *
574             * @param dlFolderService the document library folder remote service
575             */
576            public void setDLFolderService(DLFolderService dlFolderService) {
577                    this.dlFolderService = dlFolderService;
578            }
579    
580            /**
581             * Returns the document library folder persistence.
582             *
583             * @return the document library folder persistence
584             */
585            public DLFolderPersistence getDLFolderPersistence() {
586                    return dlFolderPersistence;
587            }
588    
589            /**
590             * Sets the document library folder persistence.
591             *
592             * @param dlFolderPersistence the document library folder persistence
593             */
594            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
595                    this.dlFolderPersistence = dlFolderPersistence;
596            }
597    
598            /**
599             * Returns the document library folder finder.
600             *
601             * @return the document library folder finder
602             */
603            public DLFolderFinder getDLFolderFinder() {
604                    return dlFolderFinder;
605            }
606    
607            /**
608             * Sets the document library folder finder.
609             *
610             * @param dlFolderFinder the document library folder finder
611             */
612            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
613                    this.dlFolderFinder = dlFolderFinder;
614            }
615    
616            /**
617             * Returns the d l sync local service.
618             *
619             * @return the d l sync local service
620             */
621            public DLSyncLocalService getDLSyncLocalService() {
622                    return dlSyncLocalService;
623            }
624    
625            /**
626             * Sets the d l sync local service.
627             *
628             * @param dlSyncLocalService the d l sync local service
629             */
630            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
631                    this.dlSyncLocalService = dlSyncLocalService;
632            }
633    
634            /**
635             * Returns the d l sync remote service.
636             *
637             * @return the d l sync remote service
638             */
639            public DLSyncService getDLSyncService() {
640                    return dlSyncService;
641            }
642    
643            /**
644             * Sets the d l sync remote service.
645             *
646             * @param dlSyncService the d l sync remote service
647             */
648            public void setDLSyncService(DLSyncService dlSyncService) {
649                    this.dlSyncService = dlSyncService;
650            }
651    
652            /**
653             * Returns the d l sync persistence.
654             *
655             * @return the d l sync persistence
656             */
657            public DLSyncPersistence getDLSyncPersistence() {
658                    return dlSyncPersistence;
659            }
660    
661            /**
662             * Sets the d l sync persistence.
663             *
664             * @param dlSyncPersistence the d l sync persistence
665             */
666            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
667                    this.dlSyncPersistence = dlSyncPersistence;
668            }
669    
670            /**
671             * Returns the counter local service.
672             *
673             * @return the counter local service
674             */
675            public CounterLocalService getCounterLocalService() {
676                    return counterLocalService;
677            }
678    
679            /**
680             * Sets the counter local service.
681             *
682             * @param counterLocalService the counter local service
683             */
684            public void setCounterLocalService(CounterLocalService counterLocalService) {
685                    this.counterLocalService = counterLocalService;
686            }
687    
688            /**
689             * Returns the repository local service.
690             *
691             * @return the repository local service
692             */
693            public RepositoryLocalService getRepositoryLocalService() {
694                    return repositoryLocalService;
695            }
696    
697            /**
698             * Sets the repository local service.
699             *
700             * @param repositoryLocalService the repository local service
701             */
702            public void setRepositoryLocalService(
703                    RepositoryLocalService repositoryLocalService) {
704                    this.repositoryLocalService = repositoryLocalService;
705            }
706    
707            /**
708             * Returns the repository remote service.
709             *
710             * @return the repository remote service
711             */
712            public RepositoryService getRepositoryService() {
713                    return repositoryService;
714            }
715    
716            /**
717             * Sets the repository remote service.
718             *
719             * @param repositoryService the repository remote service
720             */
721            public void setRepositoryService(RepositoryService repositoryService) {
722                    this.repositoryService = repositoryService;
723            }
724    
725            /**
726             * Returns the repository persistence.
727             *
728             * @return the repository persistence
729             */
730            public RepositoryPersistence getRepositoryPersistence() {
731                    return repositoryPersistence;
732            }
733    
734            /**
735             * Sets the repository persistence.
736             *
737             * @param repositoryPersistence the repository persistence
738             */
739            public void setRepositoryPersistence(
740                    RepositoryPersistence repositoryPersistence) {
741                    this.repositoryPersistence = repositoryPersistence;
742            }
743    
744            /**
745             * Returns the resource local service.
746             *
747             * @return the resource local service
748             */
749            public ResourceLocalService getResourceLocalService() {
750                    return resourceLocalService;
751            }
752    
753            /**
754             * Sets the resource local service.
755             *
756             * @param resourceLocalService the resource local service
757             */
758            public void setResourceLocalService(
759                    ResourceLocalService resourceLocalService) {
760                    this.resourceLocalService = resourceLocalService;
761            }
762    
763            /**
764             * Returns the resource remote service.
765             *
766             * @return the resource remote service
767             */
768            public ResourceService getResourceService() {
769                    return resourceService;
770            }
771    
772            /**
773             * Sets the resource remote service.
774             *
775             * @param resourceService the resource remote service
776             */
777            public void setResourceService(ResourceService resourceService) {
778                    this.resourceService = resourceService;
779            }
780    
781            /**
782             * Returns the resource persistence.
783             *
784             * @return the resource persistence
785             */
786            public ResourcePersistence getResourcePersistence() {
787                    return resourcePersistence;
788            }
789    
790            /**
791             * Sets the resource persistence.
792             *
793             * @param resourcePersistence the resource persistence
794             */
795            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
796                    this.resourcePersistence = resourcePersistence;
797            }
798    
799            /**
800             * Returns the resource finder.
801             *
802             * @return the resource finder
803             */
804            public ResourceFinder getResourceFinder() {
805                    return resourceFinder;
806            }
807    
808            /**
809             * Sets the resource finder.
810             *
811             * @param resourceFinder the resource finder
812             */
813            public void setResourceFinder(ResourceFinder resourceFinder) {
814                    this.resourceFinder = resourceFinder;
815            }
816    
817            /**
818             * Returns the user local service.
819             *
820             * @return the user local service
821             */
822            public UserLocalService getUserLocalService() {
823                    return userLocalService;
824            }
825    
826            /**
827             * Sets the user local service.
828             *
829             * @param userLocalService the user local service
830             */
831            public void setUserLocalService(UserLocalService userLocalService) {
832                    this.userLocalService = userLocalService;
833            }
834    
835            /**
836             * Returns the user remote service.
837             *
838             * @return the user remote service
839             */
840            public UserService getUserService() {
841                    return userService;
842            }
843    
844            /**
845             * Sets the user remote service.
846             *
847             * @param userService the user remote service
848             */
849            public void setUserService(UserService userService) {
850                    this.userService = userService;
851            }
852    
853            /**
854             * Returns the user persistence.
855             *
856             * @return the user persistence
857             */
858            public UserPersistence getUserPersistence() {
859                    return userPersistence;
860            }
861    
862            /**
863             * Sets the user persistence.
864             *
865             * @param userPersistence the user persistence
866             */
867            public void setUserPersistence(UserPersistence userPersistence) {
868                    this.userPersistence = userPersistence;
869            }
870    
871            /**
872             * Returns the user finder.
873             *
874             * @return the user finder
875             */
876            public UserFinder getUserFinder() {
877                    return userFinder;
878            }
879    
880            /**
881             * Sets the user finder.
882             *
883             * @param userFinder the user finder
884             */
885            public void setUserFinder(UserFinder userFinder) {
886                    this.userFinder = userFinder;
887            }
888    
889            public void afterPropertiesSet() {
890            }
891    
892            public void destroy() {
893            }
894    
895            /**
896             * Returns the Spring bean ID for this bean.
897             *
898             * @return the Spring bean ID for this bean
899             */
900            public String getBeanIdentifier() {
901                    return _beanIdentifier;
902            }
903    
904            /**
905             * Sets the Spring bean ID for this bean.
906             *
907             * @param beanIdentifier the Spring bean ID for this bean
908             */
909            public void setBeanIdentifier(String beanIdentifier) {
910                    _beanIdentifier = beanIdentifier;
911            }
912    
913            protected ClassLoader getClassLoader() {
914                    Class<?> clazz = getClass();
915    
916                    return clazz.getClassLoader();
917            }
918    
919            protected Class<?> getModelClass() {
920                    return DLSync.class;
921            }
922    
923            protected String getModelClassName() {
924                    return DLSync.class.getName();
925            }
926    
927            /**
928             * Performs an SQL query.
929             *
930             * @param sql the sql query
931             */
932            protected void runSQL(String sql) throws SystemException {
933                    try {
934                            DataSource dataSource = dlSyncPersistence.getDataSource();
935    
936                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
937                                            sql, new int[0]);
938    
939                            sqlUpdate.update();
940                    }
941                    catch (Exception e) {
942                            throw new SystemException(e);
943                    }
944            }
945    
946            @BeanReference(type = DLAppLocalService.class)
947            protected DLAppLocalService dlAppLocalService;
948            @BeanReference(type = DLAppService.class)
949            protected DLAppService dlAppService;
950            @BeanReference(type = DLAppHelperLocalService.class)
951            protected DLAppHelperLocalService dlAppHelperLocalService;
952            @BeanReference(type = DLContentLocalService.class)
953            protected DLContentLocalService dlContentLocalService;
954            @BeanReference(type = DLContentPersistence.class)
955            protected DLContentPersistence dlContentPersistence;
956            @BeanReference(type = DLFileEntryLocalService.class)
957            protected DLFileEntryLocalService dlFileEntryLocalService;
958            @BeanReference(type = DLFileEntryService.class)
959            protected DLFileEntryService dlFileEntryService;
960            @BeanReference(type = DLFileEntryPersistence.class)
961            protected DLFileEntryPersistence dlFileEntryPersistence;
962            @BeanReference(type = DLFileEntryFinder.class)
963            protected DLFileEntryFinder dlFileEntryFinder;
964            @BeanReference(type = DLFileEntryMetadataLocalService.class)
965            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
966            @BeanReference(type = DLFileEntryMetadataPersistence.class)
967            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
968            @BeanReference(type = DLFileEntryTypeLocalService.class)
969            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
970            @BeanReference(type = DLFileEntryTypeService.class)
971            protected DLFileEntryTypeService dlFileEntryTypeService;
972            @BeanReference(type = DLFileEntryTypePersistence.class)
973            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
974            @BeanReference(type = DLFileEntryTypeFinder.class)
975            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
976            @BeanReference(type = DLFileRankLocalService.class)
977            protected DLFileRankLocalService dlFileRankLocalService;
978            @BeanReference(type = DLFileRankPersistence.class)
979            protected DLFileRankPersistence dlFileRankPersistence;
980            @BeanReference(type = DLFileRankFinder.class)
981            protected DLFileRankFinder dlFileRankFinder;
982            @BeanReference(type = DLFileShortcutLocalService.class)
983            protected DLFileShortcutLocalService dlFileShortcutLocalService;
984            @BeanReference(type = DLFileShortcutService.class)
985            protected DLFileShortcutService dlFileShortcutService;
986            @BeanReference(type = DLFileShortcutPersistence.class)
987            protected DLFileShortcutPersistence dlFileShortcutPersistence;
988            @BeanReference(type = DLFileVersionLocalService.class)
989            protected DLFileVersionLocalService dlFileVersionLocalService;
990            @BeanReference(type = DLFileVersionService.class)
991            protected DLFileVersionService dlFileVersionService;
992            @BeanReference(type = DLFileVersionPersistence.class)
993            protected DLFileVersionPersistence dlFileVersionPersistence;
994            @BeanReference(type = DLFolderLocalService.class)
995            protected DLFolderLocalService dlFolderLocalService;
996            @BeanReference(type = DLFolderService.class)
997            protected DLFolderService dlFolderService;
998            @BeanReference(type = DLFolderPersistence.class)
999            protected DLFolderPersistence dlFolderPersistence;
1000            @BeanReference(type = DLFolderFinder.class)
1001            protected DLFolderFinder dlFolderFinder;
1002            @BeanReference(type = DLSyncLocalService.class)
1003            protected DLSyncLocalService dlSyncLocalService;
1004            @BeanReference(type = DLSyncService.class)
1005            protected DLSyncService dlSyncService;
1006            @BeanReference(type = DLSyncPersistence.class)
1007            protected DLSyncPersistence dlSyncPersistence;
1008            @BeanReference(type = CounterLocalService.class)
1009            protected CounterLocalService counterLocalService;
1010            @BeanReference(type = RepositoryLocalService.class)
1011            protected RepositoryLocalService repositoryLocalService;
1012            @BeanReference(type = RepositoryService.class)
1013            protected RepositoryService repositoryService;
1014            @BeanReference(type = RepositoryPersistence.class)
1015            protected RepositoryPersistence repositoryPersistence;
1016            @BeanReference(type = ResourceLocalService.class)
1017            protected ResourceLocalService resourceLocalService;
1018            @BeanReference(type = ResourceService.class)
1019            protected ResourceService resourceService;
1020            @BeanReference(type = ResourcePersistence.class)
1021            protected ResourcePersistence resourcePersistence;
1022            @BeanReference(type = ResourceFinder.class)
1023            protected ResourceFinder resourceFinder;
1024            @BeanReference(type = UserLocalService.class)
1025            protected UserLocalService userLocalService;
1026            @BeanReference(type = UserService.class)
1027            protected UserService userService;
1028            @BeanReference(type = UserPersistence.class)
1029            protected UserPersistence userPersistence;
1030            @BeanReference(type = UserFinder.class)
1031            protected UserFinder userFinder;
1032            private String _beanIdentifier;
1033    }