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