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