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