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