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