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