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