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