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