001    /**
002     * Copyright (c) 2000-2011 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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.log.Log;
027    import com.liferay.portal.kernel.log.LogFactoryUtil;
028    import com.liferay.portal.kernel.search.Indexer;
029    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030    import com.liferay.portal.kernel.search.SearchException;
031    import com.liferay.portal.kernel.util.OrderByComparator;
032    import com.liferay.portal.model.PersistedModel;
033    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.ResourceService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.ResourceFinder;
039    import com.liferay.portal.service.persistence.ResourcePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.documentlibrary.model.DLSync;
044    import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLAppService;
047    import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
049    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
050    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
051    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
052    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
053    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
054    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
055    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
056    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
057    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
058    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
059    import com.liferay.portlet.documentlibrary.service.DLFolderService;
060    import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
061    import com.liferay.portlet.documentlibrary.service.DLSyncService;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
066    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
067    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
068    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
069    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
070    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
071    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
072    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
073    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
074    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
075    
076    import java.io.Serializable;
077    
078    import java.util.List;
079    
080    import javax.sql.DataSource;
081    
082    /**
083     * The base implementation of the d l sync local service.
084     *
085     * <p>
086     * 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.DLSyncLocalServiceImpl}.
087     * </p>
088     *
089     * @author Brian Wing Shun Chan
090     * @see com.liferay.portlet.documentlibrary.service.impl.DLSyncLocalServiceImpl
091     * @see com.liferay.portlet.documentlibrary.service.DLSyncLocalServiceUtil
092     * @generated
093     */
094    public abstract class DLSyncLocalServiceBaseImpl implements DLSyncLocalService,
095            IdentifiableBean {
096            /*
097             * NOTE FOR DEVELOPERS:
098             *
099             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLSyncLocalServiceUtil} to access the d l sync local service.
100             */
101    
102            /**
103             * Adds the d l sync to the database. Also notifies the appropriate model listeners.
104             *
105             * @param dlSync the d l sync
106             * @return the d l sync that was added
107             * @throws SystemException if a system exception occurred
108             */
109            public DLSync addDLSync(DLSync dlSync) throws SystemException {
110                    dlSync.setNew(true);
111    
112                    dlSync = dlSyncPersistence.update(dlSync, false);
113    
114                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
115    
116                    if (indexer != null) {
117                            try {
118                                    indexer.reindex(dlSync);
119                            }
120                            catch (SearchException se) {
121                                    if (_log.isWarnEnabled()) {
122                                            _log.warn(se, se);
123                                    }
124                            }
125                    }
126    
127                    return dlSync;
128            }
129    
130            /**
131             * Creates a new d l sync with the primary key. Does not add the d l sync to the database.
132             *
133             * @param syncId the primary key for the new d l sync
134             * @return the new d l sync
135             */
136            public DLSync createDLSync(long syncId) {
137                    return dlSyncPersistence.create(syncId);
138            }
139    
140            /**
141             * Deletes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.
142             *
143             * @param syncId the primary key of the d l sync
144             * @throws PortalException if a d l sync with the primary key could not be found
145             * @throws SystemException if a system exception occurred
146             */
147            public void deleteDLSync(long syncId)
148                    throws PortalException, SystemException {
149                    DLSync dlSync = dlSyncPersistence.remove(syncId);
150    
151                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
152    
153                    if (indexer != null) {
154                            try {
155                                    indexer.delete(dlSync);
156                            }
157                            catch (SearchException se) {
158                                    if (_log.isWarnEnabled()) {
159                                            _log.warn(se, se);
160                                    }
161                            }
162                    }
163            }
164    
165            /**
166             * Deletes the d l sync from the database. Also notifies the appropriate model listeners.
167             *
168             * @param dlSync the d l sync
169             * @throws SystemException if a system exception occurred
170             */
171            public void deleteDLSync(DLSync dlSync) throws SystemException {
172                    dlSyncPersistence.remove(dlSync);
173    
174                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
175    
176                    if (indexer != null) {
177                            try {
178                                    indexer.delete(dlSync);
179                            }
180                            catch (SearchException se) {
181                                    if (_log.isWarnEnabled()) {
182                                            _log.warn(se, se);
183                                    }
184                            }
185                    }
186            }
187    
188            /**
189             * Performs a dynamic query on the database and returns the matching rows.
190             *
191             * @param dynamicQuery the dynamic query
192             * @return the matching rows
193             * @throws SystemException if a system exception occurred
194             */
195            @SuppressWarnings("rawtypes")
196            public List dynamicQuery(DynamicQuery dynamicQuery)
197                    throws SystemException {
198                    return dlSyncPersistence.findWithDynamicQuery(dynamicQuery);
199            }
200    
201            /**
202             * Performs a dynamic query on the database and returns a range of the matching rows.
203             *
204             * <p>
205             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
206             * </p>
207             *
208             * @param dynamicQuery the dynamic query
209             * @param start the lower bound of the range of model instances
210             * @param end the upper bound of the range of model instances (not inclusive)
211             * @return the range of matching rows
212             * @throws SystemException if a system exception occurred
213             */
214            @SuppressWarnings("rawtypes")
215            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
216                    throws SystemException {
217                    return dlSyncPersistence.findWithDynamicQuery(dynamicQuery, start, end);
218            }
219    
220            /**
221             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
222             *
223             * <p>
224             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
225             * </p>
226             *
227             * @param dynamicQuery the dynamic query
228             * @param start the lower bound of the range of model instances
229             * @param end the upper bound of the range of model instances (not inclusive)
230             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
231             * @return the ordered range of matching rows
232             * @throws SystemException if a system exception occurred
233             */
234            @SuppressWarnings("rawtypes")
235            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
236                    OrderByComparator orderByComparator) throws SystemException {
237                    return dlSyncPersistence.findWithDynamicQuery(dynamicQuery, start, end,
238                            orderByComparator);
239            }
240    
241            /**
242             * Returns the number of rows that match the dynamic query.
243             *
244             * @param dynamicQuery the dynamic query
245             * @return the number of rows that match the dynamic query
246             * @throws SystemException if a system exception occurred
247             */
248            public long dynamicQueryCount(DynamicQuery dynamicQuery)
249                    throws SystemException {
250                    return dlSyncPersistence.countWithDynamicQuery(dynamicQuery);
251            }
252    
253            public DLSync fetchDLSync(long syncId) throws SystemException {
254                    return dlSyncPersistence.fetchByPrimaryKey(syncId);
255            }
256    
257            /**
258             * Returns the d l sync with the primary key.
259             *
260             * @param syncId the primary key of the d l sync
261             * @return the d l sync
262             * @throws PortalException if a d l sync with the primary key could not be found
263             * @throws SystemException if a system exception occurred
264             */
265            public DLSync getDLSync(long syncId)
266                    throws PortalException, SystemException {
267                    return dlSyncPersistence.findByPrimaryKey(syncId);
268            }
269    
270            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
271                    throws PortalException, SystemException {
272                    return dlSyncPersistence.findByPrimaryKey(primaryKeyObj);
273            }
274    
275            /**
276             * Returns a range of all the d l syncs.
277             *
278             * <p>
279             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
280             * </p>
281             *
282             * @param start the lower bound of the range of d l syncs
283             * @param end the upper bound of the range of d l syncs (not inclusive)
284             * @return the range of d l syncs
285             * @throws SystemException if a system exception occurred
286             */
287            public List<DLSync> getDLSyncs(int start, int end)
288                    throws SystemException {
289                    return dlSyncPersistence.findAll(start, end);
290            }
291    
292            /**
293             * Returns the number of d l syncs.
294             *
295             * @return the number of d l syncs
296             * @throws SystemException if a system exception occurred
297             */
298            public int getDLSyncsCount() throws SystemException {
299                    return dlSyncPersistence.countAll();
300            }
301    
302            /**
303             * Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
304             *
305             * @param dlSync the d l sync
306             * @return the d l sync that was updated
307             * @throws SystemException if a system exception occurred
308             */
309            public DLSync updateDLSync(DLSync dlSync) throws SystemException {
310                    return updateDLSync(dlSync, true);
311            }
312    
313            /**
314             * Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
315             *
316             * @param dlSync the d l sync
317             * @param merge whether to merge the d l sync with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
318             * @return the d l sync that was updated
319             * @throws SystemException if a system exception occurred
320             */
321            public DLSync updateDLSync(DLSync dlSync, boolean merge)
322                    throws SystemException {
323                    dlSync.setNew(false);
324    
325                    dlSync = dlSyncPersistence.update(dlSync, merge);
326    
327                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
328    
329                    if (indexer != null) {
330                            try {
331                                    indexer.reindex(dlSync);
332                            }
333                            catch (SearchException se) {
334                                    if (_log.isWarnEnabled()) {
335                                            _log.warn(se, se);
336                                    }
337                            }
338                    }
339    
340                    return dlSync;
341            }
342    
343            /**
344             * Returns the d l app local service.
345             *
346             * @return the d l app local service
347             */
348            public DLAppLocalService getDLAppLocalService() {
349                    return dlAppLocalService;
350            }
351    
352            /**
353             * Sets the d l app local service.
354             *
355             * @param dlAppLocalService the d l app local service
356             */
357            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
358                    this.dlAppLocalService = dlAppLocalService;
359            }
360    
361            /**
362             * Returns the d l app remote service.
363             *
364             * @return the d l app remote service
365             */
366            public DLAppService getDLAppService() {
367                    return dlAppService;
368            }
369    
370            /**
371             * Sets the d l app remote service.
372             *
373             * @param dlAppService the d l app remote service
374             */
375            public void setDLAppService(DLAppService dlAppService) {
376                    this.dlAppService = dlAppService;
377            }
378    
379            /**
380             * Returns the d l app helper local service.
381             *
382             * @return the d l app helper local service
383             */
384            public DLAppHelperLocalService getDLAppHelperLocalService() {
385                    return dlAppHelperLocalService;
386            }
387    
388            /**
389             * Sets the d l app helper local service.
390             *
391             * @param dlAppHelperLocalService the d l app helper local service
392             */
393            public void setDLAppHelperLocalService(
394                    DLAppHelperLocalService dlAppHelperLocalService) {
395                    this.dlAppHelperLocalService = dlAppHelperLocalService;
396            }
397    
398            /**
399             * Returns the document library content local service.
400             *
401             * @return the document library content local service
402             */
403            public DLContentLocalService getDLContentLocalService() {
404                    return dlContentLocalService;
405            }
406    
407            /**
408             * Sets the document library content local service.
409             *
410             * @param dlContentLocalService the document library content local service
411             */
412            public void setDLContentLocalService(
413                    DLContentLocalService dlContentLocalService) {
414                    this.dlContentLocalService = dlContentLocalService;
415            }
416    
417            /**
418             * Returns the document library content persistence.
419             *
420             * @return the document library content persistence
421             */
422            public DLContentPersistence getDLContentPersistence() {
423                    return dlContentPersistence;
424            }
425    
426            /**
427             * Sets the document library content persistence.
428             *
429             * @param dlContentPersistence the document library content persistence
430             */
431            public void setDLContentPersistence(
432                    DLContentPersistence dlContentPersistence) {
433                    this.dlContentPersistence = dlContentPersistence;
434            }
435    
436            /**
437             * Returns the document library file entry local service.
438             *
439             * @return the document library file entry local service
440             */
441            public DLFileEntryLocalService getDLFileEntryLocalService() {
442                    return dlFileEntryLocalService;
443            }
444    
445            /**
446             * Sets the document library file entry local service.
447             *
448             * @param dlFileEntryLocalService the document library file entry local service
449             */
450            public void setDLFileEntryLocalService(
451                    DLFileEntryLocalService dlFileEntryLocalService) {
452                    this.dlFileEntryLocalService = dlFileEntryLocalService;
453            }
454    
455            /**
456             * Returns the document library file entry remote service.
457             *
458             * @return the document library file entry remote service
459             */
460            public DLFileEntryService getDLFileEntryService() {
461                    return dlFileEntryService;
462            }
463    
464            /**
465             * Sets the document library file entry remote service.
466             *
467             * @param dlFileEntryService the document library file entry remote service
468             */
469            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
470                    this.dlFileEntryService = dlFileEntryService;
471            }
472    
473            /**
474             * Returns the document library file entry persistence.
475             *
476             * @return the document library file entry persistence
477             */
478            public DLFileEntryPersistence getDLFileEntryPersistence() {
479                    return dlFileEntryPersistence;
480            }
481    
482            /**
483             * Sets the document library file entry persistence.
484             *
485             * @param dlFileEntryPersistence the document library file entry persistence
486             */
487            public void setDLFileEntryPersistence(
488                    DLFileEntryPersistence dlFileEntryPersistence) {
489                    this.dlFileEntryPersistence = dlFileEntryPersistence;
490            }
491    
492            /**
493             * Returns the document library file entry finder.
494             *
495             * @return the document library file entry finder
496             */
497            public DLFileEntryFinder getDLFileEntryFinder() {
498                    return dlFileEntryFinder;
499            }
500    
501            /**
502             * Sets the document library file entry finder.
503             *
504             * @param dlFileEntryFinder the document library file entry finder
505             */
506            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
507                    this.dlFileEntryFinder = dlFileEntryFinder;
508            }
509    
510            /**
511             * Returns the document library file entry metadata local service.
512             *
513             * @return the document library file entry metadata local service
514             */
515            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
516                    return dlFileEntryMetadataLocalService;
517            }
518    
519            /**
520             * Sets the document library file entry metadata local service.
521             *
522             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
523             */
524            public void setDLFileEntryMetadataLocalService(
525                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
526                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
527            }
528    
529            /**
530             * Returns the document library file entry metadata persistence.
531             *
532             * @return the document library file entry metadata persistence
533             */
534            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
535                    return dlFileEntryMetadataPersistence;
536            }
537    
538            /**
539             * Sets the document library file entry metadata persistence.
540             *
541             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
542             */
543            public void setDLFileEntryMetadataPersistence(
544                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
545                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
546            }
547    
548            /**
549             * Returns the document library file entry type local service.
550             *
551             * @return the document library file entry type local service
552             */
553            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
554                    return dlFileEntryTypeLocalService;
555            }
556    
557            /**
558             * Sets the document library file entry type local service.
559             *
560             * @param dlFileEntryTypeLocalService the document library file entry type local service
561             */
562            public void setDLFileEntryTypeLocalService(
563                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
564                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
565            }
566    
567            /**
568             * Returns the document library file entry type remote service.
569             *
570             * @return the document library file entry type remote service
571             */
572            public DLFileEntryTypeService getDLFileEntryTypeService() {
573                    return dlFileEntryTypeService;
574            }
575    
576            /**
577             * Sets the document library file entry type remote service.
578             *
579             * @param dlFileEntryTypeService the document library file entry type remote service
580             */
581            public void setDLFileEntryTypeService(
582                    DLFileEntryTypeService dlFileEntryTypeService) {
583                    this.dlFileEntryTypeService = dlFileEntryTypeService;
584            }
585    
586            /**
587             * Returns the document library file entry type persistence.
588             *
589             * @return the document library file entry type persistence
590             */
591            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
592                    return dlFileEntryTypePersistence;
593            }
594    
595            /**
596             * Sets the document library file entry type persistence.
597             *
598             * @param dlFileEntryTypePersistence the document library file entry type persistence
599             */
600            public void setDLFileEntryTypePersistence(
601                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
602                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
603            }
604    
605            /**
606             * Returns the document library file entry type finder.
607             *
608             * @return the document library file entry type finder
609             */
610            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
611                    return dlFileEntryTypeFinder;
612            }
613    
614            /**
615             * Sets the document library file entry type finder.
616             *
617             * @param dlFileEntryTypeFinder the document library file entry type finder
618             */
619            public void setDLFileEntryTypeFinder(
620                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
621                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
622            }
623    
624            /**
625             * Returns the document library file rank local service.
626             *
627             * @return the document library file rank local service
628             */
629            public DLFileRankLocalService getDLFileRankLocalService() {
630                    return dlFileRankLocalService;
631            }
632    
633            /**
634             * Sets the document library file rank local service.
635             *
636             * @param dlFileRankLocalService the document library file rank local service
637             */
638            public void setDLFileRankLocalService(
639                    DLFileRankLocalService dlFileRankLocalService) {
640                    this.dlFileRankLocalService = dlFileRankLocalService;
641            }
642    
643            /**
644             * Returns the document library file rank persistence.
645             *
646             * @return the document library file rank persistence
647             */
648            public DLFileRankPersistence getDLFileRankPersistence() {
649                    return dlFileRankPersistence;
650            }
651    
652            /**
653             * Sets the document library file rank persistence.
654             *
655             * @param dlFileRankPersistence the document library file rank persistence
656             */
657            public void setDLFileRankPersistence(
658                    DLFileRankPersistence dlFileRankPersistence) {
659                    this.dlFileRankPersistence = dlFileRankPersistence;
660            }
661    
662            /**
663             * Returns the document library file rank finder.
664             *
665             * @return the document library file rank finder
666             */
667            public DLFileRankFinder getDLFileRankFinder() {
668                    return dlFileRankFinder;
669            }
670    
671            /**
672             * Sets the document library file rank finder.
673             *
674             * @param dlFileRankFinder the document library file rank finder
675             */
676            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
677                    this.dlFileRankFinder = dlFileRankFinder;
678            }
679    
680            /**
681             * Returns the document library file shortcut local service.
682             *
683             * @return the document library file shortcut local service
684             */
685            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
686                    return dlFileShortcutLocalService;
687            }
688    
689            /**
690             * Sets the document library file shortcut local service.
691             *
692             * @param dlFileShortcutLocalService the document library file shortcut local service
693             */
694            public void setDLFileShortcutLocalService(
695                    DLFileShortcutLocalService dlFileShortcutLocalService) {
696                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
697            }
698    
699            /**
700             * Returns the document library file shortcut remote service.
701             *
702             * @return the document library file shortcut remote service
703             */
704            public DLFileShortcutService getDLFileShortcutService() {
705                    return dlFileShortcutService;
706            }
707    
708            /**
709             * Sets the document library file shortcut remote service.
710             *
711             * @param dlFileShortcutService the document library file shortcut remote service
712             */
713            public void setDLFileShortcutService(
714                    DLFileShortcutService dlFileShortcutService) {
715                    this.dlFileShortcutService = dlFileShortcutService;
716            }
717    
718            /**
719             * Returns the document library file shortcut persistence.
720             *
721             * @return the document library file shortcut persistence
722             */
723            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
724                    return dlFileShortcutPersistence;
725            }
726    
727            /**
728             * Sets the document library file shortcut persistence.
729             *
730             * @param dlFileShortcutPersistence the document library file shortcut persistence
731             */
732            public void setDLFileShortcutPersistence(
733                    DLFileShortcutPersistence dlFileShortcutPersistence) {
734                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
735            }
736    
737            /**
738             * Returns the document library file version local service.
739             *
740             * @return the document library file version local service
741             */
742            public DLFileVersionLocalService getDLFileVersionLocalService() {
743                    return dlFileVersionLocalService;
744            }
745    
746            /**
747             * Sets the document library file version local service.
748             *
749             * @param dlFileVersionLocalService the document library file version local service
750             */
751            public void setDLFileVersionLocalService(
752                    DLFileVersionLocalService dlFileVersionLocalService) {
753                    this.dlFileVersionLocalService = dlFileVersionLocalService;
754            }
755    
756            /**
757             * Returns the document library file version remote service.
758             *
759             * @return the document library file version remote service
760             */
761            public DLFileVersionService getDLFileVersionService() {
762                    return dlFileVersionService;
763            }
764    
765            /**
766             * Sets the document library file version remote service.
767             *
768             * @param dlFileVersionService the document library file version remote service
769             */
770            public void setDLFileVersionService(
771                    DLFileVersionService dlFileVersionService) {
772                    this.dlFileVersionService = dlFileVersionService;
773            }
774    
775            /**
776             * Returns the document library file version persistence.
777             *
778             * @return the document library file version persistence
779             */
780            public DLFileVersionPersistence getDLFileVersionPersistence() {
781                    return dlFileVersionPersistence;
782            }
783    
784            /**
785             * Sets the document library file version persistence.
786             *
787             * @param dlFileVersionPersistence the document library file version persistence
788             */
789            public void setDLFileVersionPersistence(
790                    DLFileVersionPersistence dlFileVersionPersistence) {
791                    this.dlFileVersionPersistence = dlFileVersionPersistence;
792            }
793    
794            /**
795             * Returns the document library folder local service.
796             *
797             * @return the document library folder local service
798             */
799            public DLFolderLocalService getDLFolderLocalService() {
800                    return dlFolderLocalService;
801            }
802    
803            /**
804             * Sets the document library folder local service.
805             *
806             * @param dlFolderLocalService the document library folder local service
807             */
808            public void setDLFolderLocalService(
809                    DLFolderLocalService dlFolderLocalService) {
810                    this.dlFolderLocalService = dlFolderLocalService;
811            }
812    
813            /**
814             * Returns the document library folder remote service.
815             *
816             * @return the document library folder remote service
817             */
818            public DLFolderService getDLFolderService() {
819                    return dlFolderService;
820            }
821    
822            /**
823             * Sets the document library folder remote service.
824             *
825             * @param dlFolderService the document library folder remote service
826             */
827            public void setDLFolderService(DLFolderService dlFolderService) {
828                    this.dlFolderService = dlFolderService;
829            }
830    
831            /**
832             * Returns the document library folder persistence.
833             *
834             * @return the document library folder persistence
835             */
836            public DLFolderPersistence getDLFolderPersistence() {
837                    return dlFolderPersistence;
838            }
839    
840            /**
841             * Sets the document library folder persistence.
842             *
843             * @param dlFolderPersistence the document library folder persistence
844             */
845            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
846                    this.dlFolderPersistence = dlFolderPersistence;
847            }
848    
849            /**
850             * Returns the document library folder finder.
851             *
852             * @return the document library folder finder
853             */
854            public DLFolderFinder getDLFolderFinder() {
855                    return dlFolderFinder;
856            }
857    
858            /**
859             * Sets the document library folder finder.
860             *
861             * @param dlFolderFinder the document library folder finder
862             */
863            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
864                    this.dlFolderFinder = dlFolderFinder;
865            }
866    
867            /**
868             * Returns the d l sync local service.
869             *
870             * @return the d l sync local service
871             */
872            public DLSyncLocalService getDLSyncLocalService() {
873                    return dlSyncLocalService;
874            }
875    
876            /**
877             * Sets the d l sync local service.
878             *
879             * @param dlSyncLocalService the d l sync local service
880             */
881            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
882                    this.dlSyncLocalService = dlSyncLocalService;
883            }
884    
885            /**
886             * Returns the d l sync remote service.
887             *
888             * @return the d l sync remote service
889             */
890            public DLSyncService getDLSyncService() {
891                    return dlSyncService;
892            }
893    
894            /**
895             * Sets the d l sync remote service.
896             *
897             * @param dlSyncService the d l sync remote service
898             */
899            public void setDLSyncService(DLSyncService dlSyncService) {
900                    this.dlSyncService = dlSyncService;
901            }
902    
903            /**
904             * Returns the d l sync persistence.
905             *
906             * @return the d l sync persistence
907             */
908            public DLSyncPersistence getDLSyncPersistence() {
909                    return dlSyncPersistence;
910            }
911    
912            /**
913             * Sets the d l sync persistence.
914             *
915             * @param dlSyncPersistence the d l sync persistence
916             */
917            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
918                    this.dlSyncPersistence = dlSyncPersistence;
919            }
920    
921            /**
922             * Returns the counter local service.
923             *
924             * @return the counter local service
925             */
926            public CounterLocalService getCounterLocalService() {
927                    return counterLocalService;
928            }
929    
930            /**
931             * Sets the counter local service.
932             *
933             * @param counterLocalService the counter local service
934             */
935            public void setCounterLocalService(CounterLocalService counterLocalService) {
936                    this.counterLocalService = counterLocalService;
937            }
938    
939            /**
940             * Returns the resource local service.
941             *
942             * @return the resource local service
943             */
944            public ResourceLocalService getResourceLocalService() {
945                    return resourceLocalService;
946            }
947    
948            /**
949             * Sets the resource local service.
950             *
951             * @param resourceLocalService the resource local service
952             */
953            public void setResourceLocalService(
954                    ResourceLocalService resourceLocalService) {
955                    this.resourceLocalService = resourceLocalService;
956            }
957    
958            /**
959             * Returns the resource remote service.
960             *
961             * @return the resource remote service
962             */
963            public ResourceService getResourceService() {
964                    return resourceService;
965            }
966    
967            /**
968             * Sets the resource remote service.
969             *
970             * @param resourceService the resource remote service
971             */
972            public void setResourceService(ResourceService resourceService) {
973                    this.resourceService = resourceService;
974            }
975    
976            /**
977             * Returns the resource persistence.
978             *
979             * @return the resource persistence
980             */
981            public ResourcePersistence getResourcePersistence() {
982                    return resourcePersistence;
983            }
984    
985            /**
986             * Sets the resource persistence.
987             *
988             * @param resourcePersistence the resource persistence
989             */
990            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
991                    this.resourcePersistence = resourcePersistence;
992            }
993    
994            /**
995             * Returns the resource finder.
996             *
997             * @return the resource finder
998             */
999            public ResourceFinder getResourceFinder() {
1000                    return resourceFinder;
1001            }
1002    
1003            /**
1004             * Sets the resource finder.
1005             *
1006             * @param resourceFinder the resource finder
1007             */
1008            public void setResourceFinder(ResourceFinder resourceFinder) {
1009                    this.resourceFinder = resourceFinder;
1010            }
1011    
1012            /**
1013             * Returns the user local service.
1014             *
1015             * @return the user local service
1016             */
1017            public UserLocalService getUserLocalService() {
1018                    return userLocalService;
1019            }
1020    
1021            /**
1022             * Sets the user local service.
1023             *
1024             * @param userLocalService the user local service
1025             */
1026            public void setUserLocalService(UserLocalService userLocalService) {
1027                    this.userLocalService = userLocalService;
1028            }
1029    
1030            /**
1031             * Returns the user remote service.
1032             *
1033             * @return the user remote service
1034             */
1035            public UserService getUserService() {
1036                    return userService;
1037            }
1038    
1039            /**
1040             * Sets the user remote service.
1041             *
1042             * @param userService the user remote service
1043             */
1044            public void setUserService(UserService userService) {
1045                    this.userService = userService;
1046            }
1047    
1048            /**
1049             * Returns the user persistence.
1050             *
1051             * @return the user persistence
1052             */
1053            public UserPersistence getUserPersistence() {
1054                    return userPersistence;
1055            }
1056    
1057            /**
1058             * Sets the user persistence.
1059             *
1060             * @param userPersistence the user persistence
1061             */
1062            public void setUserPersistence(UserPersistence userPersistence) {
1063                    this.userPersistence = userPersistence;
1064            }
1065    
1066            /**
1067             * Returns the user finder.
1068             *
1069             * @return the user finder
1070             */
1071            public UserFinder getUserFinder() {
1072                    return userFinder;
1073            }
1074    
1075            /**
1076             * Sets the user finder.
1077             *
1078             * @param userFinder the user finder
1079             */
1080            public void setUserFinder(UserFinder userFinder) {
1081                    this.userFinder = userFinder;
1082            }
1083    
1084            public void afterPropertiesSet() {
1085                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLSync",
1086                            dlSyncLocalService);
1087            }
1088    
1089            public void destroy() {
1090                    persistedModelLocalServiceRegistry.unregister(
1091                            "com.liferay.portlet.documentlibrary.model.DLSync");
1092            }
1093    
1094            /**
1095             * Returns the Spring bean ID for this bean.
1096             *
1097             * @return the Spring bean ID for this bean
1098             */
1099            public String getBeanIdentifier() {
1100                    return _beanIdentifier;
1101            }
1102    
1103            /**
1104             * Sets the Spring bean ID for this bean.
1105             *
1106             * @param beanIdentifier the Spring bean ID for this bean
1107             */
1108            public void setBeanIdentifier(String beanIdentifier) {
1109                    _beanIdentifier = beanIdentifier;
1110            }
1111    
1112            protected Class<?> getModelClass() {
1113                    return DLSync.class;
1114            }
1115    
1116            protected String getModelClassName() {
1117                    return DLSync.class.getName();
1118            }
1119    
1120            /**
1121             * Performs an SQL query.
1122             *
1123             * @param sql the sql query
1124             */
1125            protected void runSQL(String sql) throws SystemException {
1126                    try {
1127                            DataSource dataSource = dlSyncPersistence.getDataSource();
1128    
1129                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1130                                            sql, new int[0]);
1131    
1132                            sqlUpdate.update();
1133                    }
1134                    catch (Exception e) {
1135                            throw new SystemException(e);
1136                    }
1137            }
1138    
1139            @BeanReference(type = DLAppLocalService.class)
1140            protected DLAppLocalService dlAppLocalService;
1141            @BeanReference(type = DLAppService.class)
1142            protected DLAppService dlAppService;
1143            @BeanReference(type = DLAppHelperLocalService.class)
1144            protected DLAppHelperLocalService dlAppHelperLocalService;
1145            @BeanReference(type = DLContentLocalService.class)
1146            protected DLContentLocalService dlContentLocalService;
1147            @BeanReference(type = DLContentPersistence.class)
1148            protected DLContentPersistence dlContentPersistence;
1149            @BeanReference(type = DLFileEntryLocalService.class)
1150            protected DLFileEntryLocalService dlFileEntryLocalService;
1151            @BeanReference(type = DLFileEntryService.class)
1152            protected DLFileEntryService dlFileEntryService;
1153            @BeanReference(type = DLFileEntryPersistence.class)
1154            protected DLFileEntryPersistence dlFileEntryPersistence;
1155            @BeanReference(type = DLFileEntryFinder.class)
1156            protected DLFileEntryFinder dlFileEntryFinder;
1157            @BeanReference(type = DLFileEntryMetadataLocalService.class)
1158            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1159            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1160            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1161            @BeanReference(type = DLFileEntryTypeLocalService.class)
1162            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1163            @BeanReference(type = DLFileEntryTypeService.class)
1164            protected DLFileEntryTypeService dlFileEntryTypeService;
1165            @BeanReference(type = DLFileEntryTypePersistence.class)
1166            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1167            @BeanReference(type = DLFileEntryTypeFinder.class)
1168            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1169            @BeanReference(type = DLFileRankLocalService.class)
1170            protected DLFileRankLocalService dlFileRankLocalService;
1171            @BeanReference(type = DLFileRankPersistence.class)
1172            protected DLFileRankPersistence dlFileRankPersistence;
1173            @BeanReference(type = DLFileRankFinder.class)
1174            protected DLFileRankFinder dlFileRankFinder;
1175            @BeanReference(type = DLFileShortcutLocalService.class)
1176            protected DLFileShortcutLocalService dlFileShortcutLocalService;
1177            @BeanReference(type = DLFileShortcutService.class)
1178            protected DLFileShortcutService dlFileShortcutService;
1179            @BeanReference(type = DLFileShortcutPersistence.class)
1180            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1181            @BeanReference(type = DLFileVersionLocalService.class)
1182            protected DLFileVersionLocalService dlFileVersionLocalService;
1183            @BeanReference(type = DLFileVersionService.class)
1184            protected DLFileVersionService dlFileVersionService;
1185            @BeanReference(type = DLFileVersionPersistence.class)
1186            protected DLFileVersionPersistence dlFileVersionPersistence;
1187            @BeanReference(type = DLFolderLocalService.class)
1188            protected DLFolderLocalService dlFolderLocalService;
1189            @BeanReference(type = DLFolderService.class)
1190            protected DLFolderService dlFolderService;
1191            @BeanReference(type = DLFolderPersistence.class)
1192            protected DLFolderPersistence dlFolderPersistence;
1193            @BeanReference(type = DLFolderFinder.class)
1194            protected DLFolderFinder dlFolderFinder;
1195            @BeanReference(type = DLSyncLocalService.class)
1196            protected DLSyncLocalService dlSyncLocalService;
1197            @BeanReference(type = DLSyncService.class)
1198            protected DLSyncService dlSyncService;
1199            @BeanReference(type = DLSyncPersistence.class)
1200            protected DLSyncPersistence dlSyncPersistence;
1201            @BeanReference(type = CounterLocalService.class)
1202            protected CounterLocalService counterLocalService;
1203            @BeanReference(type = ResourceLocalService.class)
1204            protected ResourceLocalService resourceLocalService;
1205            @BeanReference(type = ResourceService.class)
1206            protected ResourceService resourceService;
1207            @BeanReference(type = ResourcePersistence.class)
1208            protected ResourcePersistence resourcePersistence;
1209            @BeanReference(type = ResourceFinder.class)
1210            protected ResourceFinder resourceFinder;
1211            @BeanReference(type = UserLocalService.class)
1212            protected UserLocalService userLocalService;
1213            @BeanReference(type = UserService.class)
1214            protected UserService userService;
1215            @BeanReference(type = UserPersistence.class)
1216            protected UserPersistence userPersistence;
1217            @BeanReference(type = UserFinder.class)
1218            protected UserFinder userFinder;
1219            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1220            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1221            private static Log _log = LogFactoryUtil.getLog(DLSyncLocalServiceBaseImpl.class);
1222            private String _beanIdentifier;
1223    }