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