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