001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.LockFinder;
035    import com.liferay.portal.service.persistence.LockPersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
039    import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
040    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
041    
042    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
043    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
044    import com.liferay.portlet.documentlibrary.model.DLFolder;
045    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
046    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
047    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
048    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
049    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
050    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
051    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
052    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
053    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
054    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
055    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
056    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
057    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
058    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncEventPersistence;
059    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
060    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
061    
062    import java.io.Serializable;
063    
064    import java.util.List;
065    
066    import javax.sql.DataSource;
067    
068    /**
069     * Provides the base implementation for the document library folder local service.
070     *
071     * <p>
072     * 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.DLFolderLocalServiceImpl}.
073     * </p>
074     *
075     * @author Brian Wing Shun Chan
076     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
077     * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil
078     * @generated
079     */
080    public abstract class DLFolderLocalServiceBaseImpl extends BaseLocalServiceImpl
081            implements DLFolderLocalService, IdentifiableBean {
082            /*
083             * NOTE FOR DEVELOPERS:
084             *
085             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil} to access the document library folder local service.
086             */
087    
088            /**
089             * Adds the document library folder to the database. Also notifies the appropriate model listeners.
090             *
091             * @param dlFolder the document library folder
092             * @return the document library folder that was added
093             * @throws SystemException if a system exception occurred
094             */
095            @Indexable(type = IndexableType.REINDEX)
096            @Override
097            public DLFolder addDLFolder(DLFolder dlFolder) throws SystemException {
098                    dlFolder.setNew(true);
099    
100                    return dlFolderPersistence.update(dlFolder);
101            }
102    
103            /**
104             * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
105             *
106             * @param folderId the primary key for the new document library folder
107             * @return the new document library folder
108             */
109            @Override
110            public DLFolder createDLFolder(long folderId) {
111                    return dlFolderPersistence.create(folderId);
112            }
113    
114            /**
115             * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
116             *
117             * @param folderId the primary key of the document library folder
118             * @return the document library folder that was removed
119             * @throws PortalException if a document library folder with the primary key could not be found
120             * @throws SystemException if a system exception occurred
121             */
122            @Indexable(type = IndexableType.DELETE)
123            @Override
124            public DLFolder deleteDLFolder(long folderId)
125                    throws PortalException, SystemException {
126                    return dlFolderPersistence.remove(folderId);
127            }
128    
129            /**
130             * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
131             *
132             * @param dlFolder the document library folder
133             * @return the document library folder that was removed
134             * @throws SystemException if a system exception occurred
135             */
136            @Indexable(type = IndexableType.DELETE)
137            @Override
138            public DLFolder deleteDLFolder(DLFolder dlFolder) throws SystemException {
139                    return dlFolderPersistence.remove(dlFolder);
140            }
141    
142            @Override
143            public DynamicQuery dynamicQuery() {
144                    Class<?> clazz = getClass();
145    
146                    return DynamicQueryFactoryUtil.forClass(DLFolder.class,
147                            clazz.getClassLoader());
148            }
149    
150            /**
151             * Performs a dynamic query on the database and returns the matching rows.
152             *
153             * @param dynamicQuery the dynamic query
154             * @return the matching rows
155             * @throws SystemException if a system exception occurred
156             */
157            @Override
158            @SuppressWarnings("rawtypes")
159            public List dynamicQuery(DynamicQuery dynamicQuery)
160                    throws SystemException {
161                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery);
162            }
163    
164            /**
165             * Performs a dynamic query on the database and returns a range of the matching rows.
166             *
167             * <p>
168             * 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.DLFolderModelImpl}. 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.
169             * </p>
170             *
171             * @param dynamicQuery the dynamic query
172             * @param start the lower bound of the range of model instances
173             * @param end the upper bound of the range of model instances (not inclusive)
174             * @return the range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @Override
178            @SuppressWarnings("rawtypes")
179            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
180                    throws SystemException {
181                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start, end);
182            }
183    
184            /**
185             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
186             *
187             * <p>
188             * 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.DLFolderModelImpl}. 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.
189             * </p>
190             *
191             * @param dynamicQuery the dynamic query
192             * @param start the lower bound of the range of model instances
193             * @param end the upper bound of the range of model instances (not inclusive)
194             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
195             * @return the ordered range of matching rows
196             * @throws SystemException if a system exception occurred
197             */
198            @Override
199            @SuppressWarnings("rawtypes")
200            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
201                    OrderByComparator orderByComparator) throws SystemException {
202                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start,
203                            end, orderByComparator);
204            }
205    
206            /**
207             * Returns the number of rows that match the dynamic query.
208             *
209             * @param dynamicQuery the dynamic query
210             * @return the number of rows that match the dynamic query
211             * @throws SystemException if a system exception occurred
212             */
213            @Override
214            public long dynamicQueryCount(DynamicQuery dynamicQuery)
215                    throws SystemException {
216                    return dlFolderPersistence.countWithDynamicQuery(dynamicQuery);
217            }
218    
219            /**
220             * Returns the number of rows that match the dynamic query.
221             *
222             * @param dynamicQuery the dynamic query
223             * @param projection the projection to apply to the query
224             * @return the number of rows that match the dynamic query
225             * @throws SystemException if a system exception occurred
226             */
227            @Override
228            public long dynamicQueryCount(DynamicQuery dynamicQuery,
229                    Projection projection) throws SystemException {
230                    return dlFolderPersistence.countWithDynamicQuery(dynamicQuery,
231                            projection);
232            }
233    
234            @Override
235            public DLFolder fetchDLFolder(long folderId) throws SystemException {
236                    return dlFolderPersistence.fetchByPrimaryKey(folderId);
237            }
238    
239            /**
240             * Returns the document library folder with the matching UUID and company.
241             *
242             * @param uuid the document library folder's UUID
243             * @param  companyId the primary key of the company
244             * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
245             * @throws SystemException if a system exception occurred
246             */
247            @Override
248            public DLFolder fetchDLFolderByUuidAndCompanyId(String uuid, long companyId)
249                    throws SystemException {
250                    return dlFolderPersistence.fetchByUuid_C_First(uuid, companyId, null);
251            }
252    
253            /**
254             * Returns the document library folder matching the UUID and group.
255             *
256             * @param uuid the document library folder's UUID
257             * @param groupId the primary key of the group
258             * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
259             * @throws SystemException if a system exception occurred
260             */
261            @Override
262            public DLFolder fetchDLFolderByUuidAndGroupId(String uuid, long groupId)
263                    throws SystemException {
264                    return dlFolderPersistence.fetchByUUID_G(uuid, groupId);
265            }
266    
267            /**
268             * Returns the document library folder with the primary key.
269             *
270             * @param folderId the primary key of the document library folder
271             * @return the document library folder
272             * @throws PortalException if a document library folder with the primary key could not be found
273             * @throws SystemException if a system exception occurred
274             */
275            @Override
276            public DLFolder getDLFolder(long folderId)
277                    throws PortalException, SystemException {
278                    return dlFolderPersistence.findByPrimaryKey(folderId);
279            }
280    
281            @Override
282            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
283                    throws PortalException, SystemException {
284                    return dlFolderPersistence.findByPrimaryKey(primaryKeyObj);
285            }
286    
287            /**
288             * Returns the document library folder with the matching UUID and company.
289             *
290             * @param uuid the document library folder's UUID
291             * @param  companyId the primary key of the company
292             * @return the matching document library folder
293             * @throws PortalException if a matching document library folder could not be found
294             * @throws SystemException if a system exception occurred
295             */
296            @Override
297            public DLFolder getDLFolderByUuidAndCompanyId(String uuid, long companyId)
298                    throws PortalException, SystemException {
299                    return dlFolderPersistence.findByUuid_C_First(uuid, companyId, null);
300            }
301    
302            /**
303             * Returns the document library folder matching the UUID and group.
304             *
305             * @param uuid the document library folder's UUID
306             * @param groupId the primary key of the group
307             * @return the matching document library folder
308             * @throws PortalException if a matching document library folder could not be found
309             * @throws SystemException if a system exception occurred
310             */
311            @Override
312            public DLFolder getDLFolderByUuidAndGroupId(String uuid, long groupId)
313                    throws PortalException, SystemException {
314                    return dlFolderPersistence.findByUUID_G(uuid, groupId);
315            }
316    
317            /**
318             * Returns a range of all the document library folders.
319             *
320             * <p>
321             * 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.DLFolderModelImpl}. 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.
322             * </p>
323             *
324             * @param start the lower bound of the range of document library folders
325             * @param end the upper bound of the range of document library folders (not inclusive)
326             * @return the range of document library folders
327             * @throws SystemException if a system exception occurred
328             */
329            @Override
330            public List<DLFolder> getDLFolders(int start, int end)
331                    throws SystemException {
332                    return dlFolderPersistence.findAll(start, end);
333            }
334    
335            /**
336             * Returns the number of document library folders.
337             *
338             * @return the number of document library folders
339             * @throws SystemException if a system exception occurred
340             */
341            @Override
342            public int getDLFoldersCount() throws SystemException {
343                    return dlFolderPersistence.countAll();
344            }
345    
346            /**
347             * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
348             *
349             * @param dlFolder the document library folder
350             * @return the document library folder that was updated
351             * @throws SystemException if a system exception occurred
352             */
353            @Indexable(type = IndexableType.REINDEX)
354            @Override
355            public DLFolder updateDLFolder(DLFolder dlFolder) throws SystemException {
356                    return dlFolderPersistence.update(dlFolder);
357            }
358    
359            /**
360             * @throws SystemException if a system exception occurred
361             */
362            @Override
363            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId)
364                    throws SystemException {
365                    dlFileEntryTypePersistence.addDLFolder(fileEntryTypeId, folderId);
366            }
367    
368            /**
369             * @throws SystemException if a system exception occurred
370             */
371            @Override
372            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
373                    DLFolder dlFolder) throws SystemException {
374                    dlFileEntryTypePersistence.addDLFolder(fileEntryTypeId, dlFolder);
375            }
376    
377            /**
378             * @throws SystemException if a system exception occurred
379             */
380            @Override
381            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
382                    long[] folderIds) throws SystemException {
383                    dlFileEntryTypePersistence.addDLFolders(fileEntryTypeId, folderIds);
384            }
385    
386            /**
387             * @throws SystemException if a system exception occurred
388             */
389            @Override
390            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
391                    List<DLFolder> DLFolders) throws SystemException {
392                    dlFileEntryTypePersistence.addDLFolders(fileEntryTypeId, DLFolders);
393            }
394    
395            /**
396             * @throws SystemException if a system exception occurred
397             */
398            @Override
399            public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
400                    throws SystemException {
401                    dlFileEntryTypePersistence.clearDLFolders(fileEntryTypeId);
402            }
403    
404            /**
405             * @throws SystemException if a system exception occurred
406             */
407            @Override
408            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
409                    long folderId) throws SystemException {
410                    dlFileEntryTypePersistence.removeDLFolder(fileEntryTypeId, folderId);
411            }
412    
413            /**
414             * @throws SystemException if a system exception occurred
415             */
416            @Override
417            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
418                    DLFolder dlFolder) throws SystemException {
419                    dlFileEntryTypePersistence.removeDLFolder(fileEntryTypeId, dlFolder);
420            }
421    
422            /**
423             * @throws SystemException if a system exception occurred
424             */
425            @Override
426            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
427                    long[] folderIds) throws SystemException {
428                    dlFileEntryTypePersistence.removeDLFolders(fileEntryTypeId, folderIds);
429            }
430    
431            /**
432             * @throws SystemException if a system exception occurred
433             */
434            @Override
435            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
436                    List<DLFolder> DLFolders) throws SystemException {
437                    dlFileEntryTypePersistence.removeDLFolders(fileEntryTypeId, DLFolders);
438            }
439    
440            /**
441             * @throws SystemException if a system exception occurred
442             */
443            @Override
444            public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId)
445                    throws SystemException {
446                    return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId);
447            }
448    
449            /**
450             * @throws SystemException if a system exception occurred
451             */
452            @Override
453            public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId,
454                    int start, int end) throws SystemException {
455                    return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId, start,
456                            end);
457            }
458    
459            /**
460             * @throws SystemException if a system exception occurred
461             */
462            @Override
463            public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId,
464                    int start, int end, OrderByComparator orderByComparator)
465                    throws SystemException {
466                    return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId, start,
467                            end, orderByComparator);
468            }
469    
470            /**
471             * @throws SystemException if a system exception occurred
472             */
473            @Override
474            public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
475                    throws SystemException {
476                    return dlFileEntryTypePersistence.getDLFoldersSize(fileEntryTypeId);
477            }
478    
479            /**
480             * @throws SystemException if a system exception occurred
481             */
482            @Override
483            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
484                    long folderId) throws SystemException {
485                    return dlFileEntryTypePersistence.containsDLFolder(fileEntryTypeId,
486                            folderId);
487            }
488    
489            /**
490             * @throws SystemException if a system exception occurred
491             */
492            @Override
493            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
494                    throws SystemException {
495                    return dlFileEntryTypePersistence.containsDLFolders(fileEntryTypeId);
496            }
497    
498            /**
499             * @throws SystemException if a system exception occurred
500             */
501            @Override
502            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
503                    long[] folderIds) throws SystemException {
504                    dlFileEntryTypePersistence.setDLFolders(fileEntryTypeId, folderIds);
505            }
506    
507            /**
508             * Returns the d l app local service.
509             *
510             * @return the d l app local service
511             */
512            public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {
513                    return dlAppLocalService;
514            }
515    
516            /**
517             * Sets the d l app local service.
518             *
519             * @param dlAppLocalService the d l app local service
520             */
521            public void setDLAppLocalService(
522                    com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) {
523                    this.dlAppLocalService = dlAppLocalService;
524            }
525    
526            /**
527             * Returns the d l app remote service.
528             *
529             * @return the d l app remote service
530             */
531            public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() {
532                    return dlAppService;
533            }
534    
535            /**
536             * Sets the d l app remote service.
537             *
538             * @param dlAppService the d l app remote service
539             */
540            public void setDLAppService(
541                    com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) {
542                    this.dlAppService = dlAppService;
543            }
544    
545            /**
546             * Returns the d l app helper local service.
547             *
548             * @return the d l app helper local service
549             */
550            public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
551                    return dlAppHelperLocalService;
552            }
553    
554            /**
555             * Sets the d l app helper local service.
556             *
557             * @param dlAppHelperLocalService the d l app helper local service
558             */
559            public void setDLAppHelperLocalService(
560                    com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
561                    this.dlAppHelperLocalService = dlAppHelperLocalService;
562            }
563    
564            /**
565             * Returns the document library content local service.
566             *
567             * @return the document library content local service
568             */
569            public com.liferay.portlet.documentlibrary.service.DLContentLocalService getDLContentLocalService() {
570                    return dlContentLocalService;
571            }
572    
573            /**
574             * Sets the document library content local service.
575             *
576             * @param dlContentLocalService the document library content local service
577             */
578            public void setDLContentLocalService(
579                    com.liferay.portlet.documentlibrary.service.DLContentLocalService dlContentLocalService) {
580                    this.dlContentLocalService = dlContentLocalService;
581            }
582    
583            /**
584             * Returns the document library content persistence.
585             *
586             * @return the document library content persistence
587             */
588            public DLContentPersistence getDLContentPersistence() {
589                    return dlContentPersistence;
590            }
591    
592            /**
593             * Sets the document library content persistence.
594             *
595             * @param dlContentPersistence the document library content persistence
596             */
597            public void setDLContentPersistence(
598                    DLContentPersistence dlContentPersistence) {
599                    this.dlContentPersistence = dlContentPersistence;
600            }
601    
602            /**
603             * Returns the document library file entry local service.
604             *
605             * @return the document library file entry local service
606             */
607            public com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService getDLFileEntryLocalService() {
608                    return dlFileEntryLocalService;
609            }
610    
611            /**
612             * Sets the document library file entry local service.
613             *
614             * @param dlFileEntryLocalService the document library file entry local service
615             */
616            public void setDLFileEntryLocalService(
617                    com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService) {
618                    this.dlFileEntryLocalService = dlFileEntryLocalService;
619            }
620    
621            /**
622             * Returns the document library file entry remote service.
623             *
624             * @return the document library file entry remote service
625             */
626            public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
627                    return dlFileEntryService;
628            }
629    
630            /**
631             * Sets the document library file entry remote service.
632             *
633             * @param dlFileEntryService the document library file entry remote service
634             */
635            public void setDLFileEntryService(
636                    com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
637                    this.dlFileEntryService = dlFileEntryService;
638            }
639    
640            /**
641             * Returns the document library file entry persistence.
642             *
643             * @return the document library file entry persistence
644             */
645            public DLFileEntryPersistence getDLFileEntryPersistence() {
646                    return dlFileEntryPersistence;
647            }
648    
649            /**
650             * Sets the document library file entry persistence.
651             *
652             * @param dlFileEntryPersistence the document library file entry persistence
653             */
654            public void setDLFileEntryPersistence(
655                    DLFileEntryPersistence dlFileEntryPersistence) {
656                    this.dlFileEntryPersistence = dlFileEntryPersistence;
657            }
658    
659            /**
660             * Returns the document library file entry finder.
661             *
662             * @return the document library file entry finder
663             */
664            public DLFileEntryFinder getDLFileEntryFinder() {
665                    return dlFileEntryFinder;
666            }
667    
668            /**
669             * Sets the document library file entry finder.
670             *
671             * @param dlFileEntryFinder the document library file entry finder
672             */
673            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
674                    this.dlFileEntryFinder = dlFileEntryFinder;
675            }
676    
677            /**
678             * Returns the document library file entry metadata local service.
679             *
680             * @return the document library file entry metadata local service
681             */
682            public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
683                    return dlFileEntryMetadataLocalService;
684            }
685    
686            /**
687             * Sets the document library file entry metadata local service.
688             *
689             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
690             */
691            public void setDLFileEntryMetadataLocalService(
692                    com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
693                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
694            }
695    
696            /**
697             * Returns the document library file entry metadata persistence.
698             *
699             * @return the document library file entry metadata persistence
700             */
701            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
702                    return dlFileEntryMetadataPersistence;
703            }
704    
705            /**
706             * Sets the document library file entry metadata persistence.
707             *
708             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
709             */
710            public void setDLFileEntryMetadataPersistence(
711                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
712                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
713            }
714    
715            /**
716             * Returns the document library file entry type local service.
717             *
718             * @return the document library file entry type local service
719             */
720            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
721                    return dlFileEntryTypeLocalService;
722            }
723    
724            /**
725             * Sets the document library file entry type local service.
726             *
727             * @param dlFileEntryTypeLocalService the document library file entry type local service
728             */
729            public void setDLFileEntryTypeLocalService(
730                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
731                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
732            }
733    
734            /**
735             * Returns the document library file entry type remote service.
736             *
737             * @return the document library file entry type remote service
738             */
739            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
740                    return dlFileEntryTypeService;
741            }
742    
743            /**
744             * Sets the document library file entry type remote service.
745             *
746             * @param dlFileEntryTypeService the document library file entry type remote service
747             */
748            public void setDLFileEntryTypeService(
749                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
750                    this.dlFileEntryTypeService = dlFileEntryTypeService;
751            }
752    
753            /**
754             * Returns the document library file entry type persistence.
755             *
756             * @return the document library file entry type persistence
757             */
758            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
759                    return dlFileEntryTypePersistence;
760            }
761    
762            /**
763             * Sets the document library file entry type persistence.
764             *
765             * @param dlFileEntryTypePersistence the document library file entry type persistence
766             */
767            public void setDLFileEntryTypePersistence(
768                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
769                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
770            }
771    
772            /**
773             * Returns the document library file entry type finder.
774             *
775             * @return the document library file entry type finder
776             */
777            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
778                    return dlFileEntryTypeFinder;
779            }
780    
781            /**
782             * Sets the document library file entry type finder.
783             *
784             * @param dlFileEntryTypeFinder the document library file entry type finder
785             */
786            public void setDLFileEntryTypeFinder(
787                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
788                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
789            }
790    
791            /**
792             * Returns the document library file rank local service.
793             *
794             * @return the document library file rank local service
795             */
796            public com.liferay.portlet.documentlibrary.service.DLFileRankLocalService getDLFileRankLocalService() {
797                    return dlFileRankLocalService;
798            }
799    
800            /**
801             * Sets the document library file rank local service.
802             *
803             * @param dlFileRankLocalService the document library file rank local service
804             */
805            public void setDLFileRankLocalService(
806                    com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService) {
807                    this.dlFileRankLocalService = dlFileRankLocalService;
808            }
809    
810            /**
811             * Returns the document library file rank persistence.
812             *
813             * @return the document library file rank persistence
814             */
815            public DLFileRankPersistence getDLFileRankPersistence() {
816                    return dlFileRankPersistence;
817            }
818    
819            /**
820             * Sets the document library file rank persistence.
821             *
822             * @param dlFileRankPersistence the document library file rank persistence
823             */
824            public void setDLFileRankPersistence(
825                    DLFileRankPersistence dlFileRankPersistence) {
826                    this.dlFileRankPersistence = dlFileRankPersistence;
827            }
828    
829            /**
830             * Returns the document library file rank finder.
831             *
832             * @return the document library file rank finder
833             */
834            public DLFileRankFinder getDLFileRankFinder() {
835                    return dlFileRankFinder;
836            }
837    
838            /**
839             * Sets the document library file rank finder.
840             *
841             * @param dlFileRankFinder the document library file rank finder
842             */
843            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
844                    this.dlFileRankFinder = dlFileRankFinder;
845            }
846    
847            /**
848             * Returns the document library file shortcut local service.
849             *
850             * @return the document library file shortcut local service
851             */
852            public com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
853                    return dlFileShortcutLocalService;
854            }
855    
856            /**
857             * Sets the document library file shortcut local service.
858             *
859             * @param dlFileShortcutLocalService the document library file shortcut local service
860             */
861            public void setDLFileShortcutLocalService(
862                    com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
863                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
864            }
865    
866            /**
867             * Returns the document library file shortcut remote service.
868             *
869             * @return the document library file shortcut remote service
870             */
871            public com.liferay.portlet.documentlibrary.service.DLFileShortcutService getDLFileShortcutService() {
872                    return dlFileShortcutService;
873            }
874    
875            /**
876             * Sets the document library file shortcut remote service.
877             *
878             * @param dlFileShortcutService the document library file shortcut remote service
879             */
880            public void setDLFileShortcutService(
881                    com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService) {
882                    this.dlFileShortcutService = dlFileShortcutService;
883            }
884    
885            /**
886             * Returns the document library file shortcut persistence.
887             *
888             * @return the document library file shortcut persistence
889             */
890            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
891                    return dlFileShortcutPersistence;
892            }
893    
894            /**
895             * Sets the document library file shortcut persistence.
896             *
897             * @param dlFileShortcutPersistence the document library file shortcut persistence
898             */
899            public void setDLFileShortcutPersistence(
900                    DLFileShortcutPersistence dlFileShortcutPersistence) {
901                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
902            }
903    
904            /**
905             * Returns the document library file version local service.
906             *
907             * @return the document library file version local service
908             */
909            public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
910                    return dlFileVersionLocalService;
911            }
912    
913            /**
914             * Sets the document library file version local service.
915             *
916             * @param dlFileVersionLocalService the document library file version local service
917             */
918            public void setDLFileVersionLocalService(
919                    com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
920                    this.dlFileVersionLocalService = dlFileVersionLocalService;
921            }
922    
923            /**
924             * Returns the document library file version remote service.
925             *
926             * @return the document library file version remote service
927             */
928            public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
929                    return dlFileVersionService;
930            }
931    
932            /**
933             * Sets the document library file version remote service.
934             *
935             * @param dlFileVersionService the document library file version remote service
936             */
937            public void setDLFileVersionService(
938                    com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
939                    this.dlFileVersionService = dlFileVersionService;
940            }
941    
942            /**
943             * Returns the document library file version persistence.
944             *
945             * @return the document library file version persistence
946             */
947            public DLFileVersionPersistence getDLFileVersionPersistence() {
948                    return dlFileVersionPersistence;
949            }
950    
951            /**
952             * Sets the document library file version persistence.
953             *
954             * @param dlFileVersionPersistence the document library file version persistence
955             */
956            public void setDLFileVersionPersistence(
957                    DLFileVersionPersistence dlFileVersionPersistence) {
958                    this.dlFileVersionPersistence = dlFileVersionPersistence;
959            }
960    
961            /**
962             * Returns the document library folder local service.
963             *
964             * @return the document library folder local service
965             */
966            public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
967                    return dlFolderLocalService;
968            }
969    
970            /**
971             * Sets the document library folder local service.
972             *
973             * @param dlFolderLocalService the document library folder local service
974             */
975            public void setDLFolderLocalService(
976                    com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
977                    this.dlFolderLocalService = dlFolderLocalService;
978            }
979    
980            /**
981             * Returns the document library folder remote service.
982             *
983             * @return the document library folder remote service
984             */
985            public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
986                    return dlFolderService;
987            }
988    
989            /**
990             * Sets the document library folder remote service.
991             *
992             * @param dlFolderService the document library folder remote service
993             */
994            public void setDLFolderService(
995                    com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
996                    this.dlFolderService = dlFolderService;
997            }
998    
999            /**
1000             * Returns the document library folder persistence.
1001             *
1002             * @return the document library folder persistence
1003             */
1004            public DLFolderPersistence getDLFolderPersistence() {
1005                    return dlFolderPersistence;
1006            }
1007    
1008            /**
1009             * Sets the document library folder persistence.
1010             *
1011             * @param dlFolderPersistence the document library folder persistence
1012             */
1013            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1014                    this.dlFolderPersistence = dlFolderPersistence;
1015            }
1016    
1017            /**
1018             * Returns the document library folder finder.
1019             *
1020             * @return the document library folder finder
1021             */
1022            public DLFolderFinder getDLFolderFinder() {
1023                    return dlFolderFinder;
1024            }
1025    
1026            /**
1027             * Sets the document library folder finder.
1028             *
1029             * @param dlFolderFinder the document library folder finder
1030             */
1031            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1032                    this.dlFolderFinder = dlFolderFinder;
1033            }
1034    
1035            /**
1036             * Returns the d l sync event local service.
1037             *
1038             * @return the d l sync event local service
1039             */
1040            public com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService getDLSyncEventLocalService() {
1041                    return dlSyncEventLocalService;
1042            }
1043    
1044            /**
1045             * Sets the d l sync event local service.
1046             *
1047             * @param dlSyncEventLocalService the d l sync event local service
1048             */
1049            public void setDLSyncEventLocalService(
1050                    com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService dlSyncEventLocalService) {
1051                    this.dlSyncEventLocalService = dlSyncEventLocalService;
1052            }
1053    
1054            /**
1055             * Returns the d l sync event persistence.
1056             *
1057             * @return the d l sync event persistence
1058             */
1059            public DLSyncEventPersistence getDLSyncEventPersistence() {
1060                    return dlSyncEventPersistence;
1061            }
1062    
1063            /**
1064             * Sets the d l sync event persistence.
1065             *
1066             * @param dlSyncEventPersistence the d l sync event persistence
1067             */
1068            public void setDLSyncEventPersistence(
1069                    DLSyncEventPersistence dlSyncEventPersistence) {
1070                    this.dlSyncEventPersistence = dlSyncEventPersistence;
1071            }
1072    
1073            /**
1074             * Returns the counter local service.
1075             *
1076             * @return the counter local service
1077             */
1078            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
1079                    return counterLocalService;
1080            }
1081    
1082            /**
1083             * Sets the counter local service.
1084             *
1085             * @param counterLocalService the counter local service
1086             */
1087            public void setCounterLocalService(
1088                    com.liferay.counter.service.CounterLocalService counterLocalService) {
1089                    this.counterLocalService = counterLocalService;
1090            }
1091    
1092            /**
1093             * Returns the group local service.
1094             *
1095             * @return the group local service
1096             */
1097            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
1098                    return groupLocalService;
1099            }
1100    
1101            /**
1102             * Sets the group local service.
1103             *
1104             * @param groupLocalService the group local service
1105             */
1106            public void setGroupLocalService(
1107                    com.liferay.portal.service.GroupLocalService groupLocalService) {
1108                    this.groupLocalService = groupLocalService;
1109            }
1110    
1111            /**
1112             * Returns the group remote service.
1113             *
1114             * @return the group remote service
1115             */
1116            public com.liferay.portal.service.GroupService getGroupService() {
1117                    return groupService;
1118            }
1119    
1120            /**
1121             * Sets the group remote service.
1122             *
1123             * @param groupService the group remote service
1124             */
1125            public void setGroupService(
1126                    com.liferay.portal.service.GroupService groupService) {
1127                    this.groupService = groupService;
1128            }
1129    
1130            /**
1131             * Returns the group persistence.
1132             *
1133             * @return the group persistence
1134             */
1135            public GroupPersistence getGroupPersistence() {
1136                    return groupPersistence;
1137            }
1138    
1139            /**
1140             * Sets the group persistence.
1141             *
1142             * @param groupPersistence the group persistence
1143             */
1144            public void setGroupPersistence(GroupPersistence groupPersistence) {
1145                    this.groupPersistence = groupPersistence;
1146            }
1147    
1148            /**
1149             * Returns the group finder.
1150             *
1151             * @return the group finder
1152             */
1153            public GroupFinder getGroupFinder() {
1154                    return groupFinder;
1155            }
1156    
1157            /**
1158             * Sets the group finder.
1159             *
1160             * @param groupFinder the group finder
1161             */
1162            public void setGroupFinder(GroupFinder groupFinder) {
1163                    this.groupFinder = groupFinder;
1164            }
1165    
1166            /**
1167             * Returns the lock local service.
1168             *
1169             * @return the lock local service
1170             */
1171            public com.liferay.portal.service.LockLocalService getLockLocalService() {
1172                    return lockLocalService;
1173            }
1174    
1175            /**
1176             * Sets the lock local service.
1177             *
1178             * @param lockLocalService the lock local service
1179             */
1180            public void setLockLocalService(
1181                    com.liferay.portal.service.LockLocalService lockLocalService) {
1182                    this.lockLocalService = lockLocalService;
1183            }
1184    
1185            /**
1186             * Returns the lock persistence.
1187             *
1188             * @return the lock persistence
1189             */
1190            public LockPersistence getLockPersistence() {
1191                    return lockPersistence;
1192            }
1193    
1194            /**
1195             * Sets the lock persistence.
1196             *
1197             * @param lockPersistence the lock persistence
1198             */
1199            public void setLockPersistence(LockPersistence lockPersistence) {
1200                    this.lockPersistence = lockPersistence;
1201            }
1202    
1203            /**
1204             * Returns the lock finder.
1205             *
1206             * @return the lock finder
1207             */
1208            public LockFinder getLockFinder() {
1209                    return lockFinder;
1210            }
1211    
1212            /**
1213             * Sets the lock finder.
1214             *
1215             * @param lockFinder the lock finder
1216             */
1217            public void setLockFinder(LockFinder lockFinder) {
1218                    this.lockFinder = lockFinder;
1219            }
1220    
1221            /**
1222             * Returns the resource local service.
1223             *
1224             * @return the resource local service
1225             */
1226            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1227                    return resourceLocalService;
1228            }
1229    
1230            /**
1231             * Sets the resource local service.
1232             *
1233             * @param resourceLocalService the resource local service
1234             */
1235            public void setResourceLocalService(
1236                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1237                    this.resourceLocalService = resourceLocalService;
1238            }
1239    
1240            /**
1241             * Returns the user local service.
1242             *
1243             * @return the user local service
1244             */
1245            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1246                    return userLocalService;
1247            }
1248    
1249            /**
1250             * Sets the user local service.
1251             *
1252             * @param userLocalService the user local service
1253             */
1254            public void setUserLocalService(
1255                    com.liferay.portal.service.UserLocalService userLocalService) {
1256                    this.userLocalService = userLocalService;
1257            }
1258    
1259            /**
1260             * Returns the user remote service.
1261             *
1262             * @return the user remote service
1263             */
1264            public com.liferay.portal.service.UserService getUserService() {
1265                    return userService;
1266            }
1267    
1268            /**
1269             * Sets the user remote service.
1270             *
1271             * @param userService the user remote service
1272             */
1273            public void setUserService(
1274                    com.liferay.portal.service.UserService userService) {
1275                    this.userService = userService;
1276            }
1277    
1278            /**
1279             * Returns the user persistence.
1280             *
1281             * @return the user persistence
1282             */
1283            public UserPersistence getUserPersistence() {
1284                    return userPersistence;
1285            }
1286    
1287            /**
1288             * Sets the user persistence.
1289             *
1290             * @param userPersistence the user persistence
1291             */
1292            public void setUserPersistence(UserPersistence userPersistence) {
1293                    this.userPersistence = userPersistence;
1294            }
1295    
1296            /**
1297             * Returns the user finder.
1298             *
1299             * @return the user finder
1300             */
1301            public UserFinder getUserFinder() {
1302                    return userFinder;
1303            }
1304    
1305            /**
1306             * Sets the user finder.
1307             *
1308             * @param userFinder the user finder
1309             */
1310            public void setUserFinder(UserFinder userFinder) {
1311                    this.userFinder = userFinder;
1312            }
1313    
1314            /**
1315             * Returns the web d a v props local service.
1316             *
1317             * @return the web d a v props local service
1318             */
1319            public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
1320                    return webDAVPropsLocalService;
1321            }
1322    
1323            /**
1324             * Sets the web d a v props local service.
1325             *
1326             * @param webDAVPropsLocalService the web d a v props local service
1327             */
1328            public void setWebDAVPropsLocalService(
1329                    com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
1330                    this.webDAVPropsLocalService = webDAVPropsLocalService;
1331            }
1332    
1333            /**
1334             * Returns the web d a v props persistence.
1335             *
1336             * @return the web d a v props persistence
1337             */
1338            public WebDAVPropsPersistence getWebDAVPropsPersistence() {
1339                    return webDAVPropsPersistence;
1340            }
1341    
1342            /**
1343             * Sets the web d a v props persistence.
1344             *
1345             * @param webDAVPropsPersistence the web d a v props persistence
1346             */
1347            public void setWebDAVPropsPersistence(
1348                    WebDAVPropsPersistence webDAVPropsPersistence) {
1349                    this.webDAVPropsPersistence = webDAVPropsPersistence;
1350            }
1351    
1352            /**
1353             * Returns the workflow definition link local service.
1354             *
1355             * @return the workflow definition link local service
1356             */
1357            public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
1358                    return workflowDefinitionLinkLocalService;
1359            }
1360    
1361            /**
1362             * Sets the workflow definition link local service.
1363             *
1364             * @param workflowDefinitionLinkLocalService the workflow definition link local service
1365             */
1366            public void setWorkflowDefinitionLinkLocalService(
1367                    com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
1368                    this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
1369            }
1370    
1371            /**
1372             * Returns the workflow definition link persistence.
1373             *
1374             * @return the workflow definition link persistence
1375             */
1376            public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
1377                    return workflowDefinitionLinkPersistence;
1378            }
1379    
1380            /**
1381             * Sets the workflow definition link persistence.
1382             *
1383             * @param workflowDefinitionLinkPersistence the workflow definition link persistence
1384             */
1385            public void setWorkflowDefinitionLinkPersistence(
1386                    WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
1387                    this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
1388            }
1389    
1390            /**
1391             * Returns the workflow instance link local service.
1392             *
1393             * @return the workflow instance link local service
1394             */
1395            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1396                    return workflowInstanceLinkLocalService;
1397            }
1398    
1399            /**
1400             * Sets the workflow instance link local service.
1401             *
1402             * @param workflowInstanceLinkLocalService the workflow instance link local service
1403             */
1404            public void setWorkflowInstanceLinkLocalService(
1405                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1406                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1407            }
1408    
1409            /**
1410             * Returns the workflow instance link persistence.
1411             *
1412             * @return the workflow instance link persistence
1413             */
1414            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1415                    return workflowInstanceLinkPersistence;
1416            }
1417    
1418            /**
1419             * Sets the workflow instance link persistence.
1420             *
1421             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1422             */
1423            public void setWorkflowInstanceLinkPersistence(
1424                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1425                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1426            }
1427    
1428            /**
1429             * Returns the asset entry local service.
1430             *
1431             * @return the asset entry local service
1432             */
1433            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1434                    return assetEntryLocalService;
1435            }
1436    
1437            /**
1438             * Sets the asset entry local service.
1439             *
1440             * @param assetEntryLocalService the asset entry local service
1441             */
1442            public void setAssetEntryLocalService(
1443                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1444                    this.assetEntryLocalService = assetEntryLocalService;
1445            }
1446    
1447            /**
1448             * Returns the asset entry remote service.
1449             *
1450             * @return the asset entry remote service
1451             */
1452            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1453                    return assetEntryService;
1454            }
1455    
1456            /**
1457             * Sets the asset entry remote service.
1458             *
1459             * @param assetEntryService the asset entry remote service
1460             */
1461            public void setAssetEntryService(
1462                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1463                    this.assetEntryService = assetEntryService;
1464            }
1465    
1466            /**
1467             * Returns the asset entry persistence.
1468             *
1469             * @return the asset entry persistence
1470             */
1471            public AssetEntryPersistence getAssetEntryPersistence() {
1472                    return assetEntryPersistence;
1473            }
1474    
1475            /**
1476             * Sets the asset entry persistence.
1477             *
1478             * @param assetEntryPersistence the asset entry persistence
1479             */
1480            public void setAssetEntryPersistence(
1481                    AssetEntryPersistence assetEntryPersistence) {
1482                    this.assetEntryPersistence = assetEntryPersistence;
1483            }
1484    
1485            /**
1486             * Returns the asset entry finder.
1487             *
1488             * @return the asset entry finder
1489             */
1490            public AssetEntryFinder getAssetEntryFinder() {
1491                    return assetEntryFinder;
1492            }
1493    
1494            /**
1495             * Sets the asset entry finder.
1496             *
1497             * @param assetEntryFinder the asset entry finder
1498             */
1499            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1500                    this.assetEntryFinder = assetEntryFinder;
1501            }
1502    
1503            /**
1504             * Returns the expando row local service.
1505             *
1506             * @return the expando row local service
1507             */
1508            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1509                    return expandoRowLocalService;
1510            }
1511    
1512            /**
1513             * Sets the expando row local service.
1514             *
1515             * @param expandoRowLocalService the expando row local service
1516             */
1517            public void setExpandoRowLocalService(
1518                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1519                    this.expandoRowLocalService = expandoRowLocalService;
1520            }
1521    
1522            /**
1523             * Returns the expando row persistence.
1524             *
1525             * @return the expando row persistence
1526             */
1527            public ExpandoRowPersistence getExpandoRowPersistence() {
1528                    return expandoRowPersistence;
1529            }
1530    
1531            /**
1532             * Sets the expando row persistence.
1533             *
1534             * @param expandoRowPersistence the expando row persistence
1535             */
1536            public void setExpandoRowPersistence(
1537                    ExpandoRowPersistence expandoRowPersistence) {
1538                    this.expandoRowPersistence = expandoRowPersistence;
1539            }
1540    
1541            /**
1542             * Returns the trash entry local service.
1543             *
1544             * @return the trash entry local service
1545             */
1546            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1547                    return trashEntryLocalService;
1548            }
1549    
1550            /**
1551             * Sets the trash entry local service.
1552             *
1553             * @param trashEntryLocalService the trash entry local service
1554             */
1555            public void setTrashEntryLocalService(
1556                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1557                    this.trashEntryLocalService = trashEntryLocalService;
1558            }
1559    
1560            /**
1561             * Returns the trash entry remote service.
1562             *
1563             * @return the trash entry remote service
1564             */
1565            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1566                    return trashEntryService;
1567            }
1568    
1569            /**
1570             * Sets the trash entry remote service.
1571             *
1572             * @param trashEntryService the trash entry remote service
1573             */
1574            public void setTrashEntryService(
1575                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1576                    this.trashEntryService = trashEntryService;
1577            }
1578    
1579            /**
1580             * Returns the trash entry persistence.
1581             *
1582             * @return the trash entry persistence
1583             */
1584            public TrashEntryPersistence getTrashEntryPersistence() {
1585                    return trashEntryPersistence;
1586            }
1587    
1588            /**
1589             * Sets the trash entry persistence.
1590             *
1591             * @param trashEntryPersistence the trash entry persistence
1592             */
1593            public void setTrashEntryPersistence(
1594                    TrashEntryPersistence trashEntryPersistence) {
1595                    this.trashEntryPersistence = trashEntryPersistence;
1596            }
1597    
1598            public void afterPropertiesSet() {
1599                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFolder",
1600                            dlFolderLocalService);
1601            }
1602    
1603            public void destroy() {
1604                    persistedModelLocalServiceRegistry.unregister(
1605                            "com.liferay.portlet.documentlibrary.model.DLFolder");
1606            }
1607    
1608            /**
1609             * Returns the Spring bean ID for this bean.
1610             *
1611             * @return the Spring bean ID for this bean
1612             */
1613            @Override
1614            public String getBeanIdentifier() {
1615                    return _beanIdentifier;
1616            }
1617    
1618            /**
1619             * Sets the Spring bean ID for this bean.
1620             *
1621             * @param beanIdentifier the Spring bean ID for this bean
1622             */
1623            @Override
1624            public void setBeanIdentifier(String beanIdentifier) {
1625                    _beanIdentifier = beanIdentifier;
1626            }
1627    
1628            protected Class<?> getModelClass() {
1629                    return DLFolder.class;
1630            }
1631    
1632            protected String getModelClassName() {
1633                    return DLFolder.class.getName();
1634            }
1635    
1636            /**
1637             * Performs an SQL query.
1638             *
1639             * @param sql the sql query
1640             */
1641            protected void runSQL(String sql) throws SystemException {
1642                    try {
1643                            DataSource dataSource = dlFolderPersistence.getDataSource();
1644    
1645                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1646                                            sql, new int[0]);
1647    
1648                            sqlUpdate.update();
1649                    }
1650                    catch (Exception e) {
1651                            throw new SystemException(e);
1652                    }
1653            }
1654    
1655            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class)
1656            protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService;
1657            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class)
1658            protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService;
1659            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1660            protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1661            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLContentLocalService.class)
1662            protected com.liferay.portlet.documentlibrary.service.DLContentLocalService dlContentLocalService;
1663            @BeanReference(type = DLContentPersistence.class)
1664            protected DLContentPersistence dlContentPersistence;
1665            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1666            protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1667            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1668            protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1669            @BeanReference(type = DLFileEntryPersistence.class)
1670            protected DLFileEntryPersistence dlFileEntryPersistence;
1671            @BeanReference(type = DLFileEntryFinder.class)
1672            protected DLFileEntryFinder dlFileEntryFinder;
1673            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1674            protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1675            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1676            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1677            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1678            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1679            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1680            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1681            @BeanReference(type = DLFileEntryTypePersistence.class)
1682            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1683            @BeanReference(type = DLFileEntryTypeFinder.class)
1684            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1685            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileRankLocalService.class)
1686            protected com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService;
1687            @BeanReference(type = DLFileRankPersistence.class)
1688            protected DLFileRankPersistence dlFileRankPersistence;
1689            @BeanReference(type = DLFileRankFinder.class)
1690            protected DLFileRankFinder dlFileRankFinder;
1691            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
1692            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
1693            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
1694            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService;
1695            @BeanReference(type = DLFileShortcutPersistence.class)
1696            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1697            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1698            protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1699            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1700            protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1701            @BeanReference(type = DLFileVersionPersistence.class)
1702            protected DLFileVersionPersistence dlFileVersionPersistence;
1703            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1704            protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1705            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1706            protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1707            @BeanReference(type = DLFolderPersistence.class)
1708            protected DLFolderPersistence dlFolderPersistence;
1709            @BeanReference(type = DLFolderFinder.class)
1710            protected DLFolderFinder dlFolderFinder;
1711            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService.class)
1712            protected com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService dlSyncEventLocalService;
1713            @BeanReference(type = DLSyncEventPersistence.class)
1714            protected DLSyncEventPersistence dlSyncEventPersistence;
1715            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1716            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1717            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1718            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1719            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1720            protected com.liferay.portal.service.GroupService groupService;
1721            @BeanReference(type = GroupPersistence.class)
1722            protected GroupPersistence groupPersistence;
1723            @BeanReference(type = GroupFinder.class)
1724            protected GroupFinder groupFinder;
1725            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1726            protected com.liferay.portal.service.LockLocalService lockLocalService;
1727            @BeanReference(type = LockPersistence.class)
1728            protected LockPersistence lockPersistence;
1729            @BeanReference(type = LockFinder.class)
1730            protected LockFinder lockFinder;
1731            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1732            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1733            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1734            protected com.liferay.portal.service.UserLocalService userLocalService;
1735            @BeanReference(type = com.liferay.portal.service.UserService.class)
1736            protected com.liferay.portal.service.UserService userService;
1737            @BeanReference(type = UserPersistence.class)
1738            protected UserPersistence userPersistence;
1739            @BeanReference(type = UserFinder.class)
1740            protected UserFinder userFinder;
1741            @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1742            protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1743            @BeanReference(type = WebDAVPropsPersistence.class)
1744            protected WebDAVPropsPersistence webDAVPropsPersistence;
1745            @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1746            protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1747            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1748            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1749            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1750            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1751            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1752            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1753            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1754            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1755            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1756            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1757            @BeanReference(type = AssetEntryPersistence.class)
1758            protected AssetEntryPersistence assetEntryPersistence;
1759            @BeanReference(type = AssetEntryFinder.class)
1760            protected AssetEntryFinder assetEntryFinder;
1761            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1762            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1763            @BeanReference(type = ExpandoRowPersistence.class)
1764            protected ExpandoRowPersistence expandoRowPersistence;
1765            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1766            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1767            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1768            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1769            @BeanReference(type = TrashEntryPersistence.class)
1770            protected TrashEntryPersistence trashEntryPersistence;
1771            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1772            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1773            private String _beanIdentifier;
1774    }