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