001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.Criterion;
027    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.Disjunction;
029    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
031    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
032    import com.liferay.portal.kernel.dao.orm.Projection;
033    import com.liferay.portal.kernel.dao.orm.Property;
034    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
035    import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
036    import com.liferay.portal.kernel.exception.PortalException;
037    import com.liferay.portal.kernel.exception.SystemException;
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.trash.service.persistence.TrashEntryPersistence;
076    
077    import java.io.Serializable;
078    
079    import java.util.List;
080    
081    import javax.sql.DataSource;
082    
083    /**
084     * Provides the base implementation for the document library folder local service.
085     *
086     * <p>
087     * 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}.
088     * </p>
089     *
090     * @author Brian Wing Shun Chan
091     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
092     * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil
093     * @generated
094     */
095    @ProviderType
096    public abstract class DLFolderLocalServiceBaseImpl extends BaseLocalServiceImpl
097            implements DLFolderLocalService, IdentifiableBean {
098            /*
099             * NOTE FOR DEVELOPERS:
100             *
101             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil} to access the document library folder local service.
102             */
103    
104            /**
105             * Adds the document library folder to the database. Also notifies the appropriate model listeners.
106             *
107             * @param dlFolder the document library folder
108             * @return the document library folder that was added
109             */
110            @Indexable(type = IndexableType.REINDEX)
111            @Override
112            public DLFolder addDLFolder(DLFolder dlFolder) {
113                    dlFolder.setNew(true);
114    
115                    return dlFolderPersistence.update(dlFolder);
116            }
117    
118            /**
119             * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
120             *
121             * @param folderId the primary key for the new document library folder
122             * @return the new document library folder
123             */
124            @Override
125            public DLFolder createDLFolder(long folderId) {
126                    return dlFolderPersistence.create(folderId);
127            }
128    
129            /**
130             * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
131             *
132             * @param folderId the primary key of the document library folder
133             * @return the document library folder that was removed
134             * @throws PortalException if a document library folder with the primary key could not be found
135             */
136            @Indexable(type = IndexableType.DELETE)
137            @Override
138            public DLFolder deleteDLFolder(long folderId) throws PortalException {
139                    return dlFolderPersistence.remove(folderId);
140            }
141    
142            /**
143             * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
144             *
145             * @param dlFolder the document library folder
146             * @return the document library folder that was removed
147             */
148            @Indexable(type = IndexableType.DELETE)
149            @Override
150            public DLFolder deleteDLFolder(DLFolder dlFolder) {
151                    return dlFolderPersistence.remove(dlFolder);
152            }
153    
154            @Override
155            public DynamicQuery dynamicQuery() {
156                    Class<?> clazz = getClass();
157    
158                    return DynamicQueryFactoryUtil.forClass(DLFolder.class,
159                            clazz.getClassLoader());
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns the matching rows.
164             *
165             * @param dynamicQuery the dynamic query
166             * @return the matching rows
167             */
168            @Override
169            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
170                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery);
171            }
172    
173            /**
174             * Performs a dynamic query on the database and returns a range of the matching rows.
175             *
176             * <p>
177             * 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.
178             * </p>
179             *
180             * @param dynamicQuery the dynamic query
181             * @param start the lower bound of the range of model instances
182             * @param end the upper bound of the range of model instances (not inclusive)
183             * @return the range of matching rows
184             */
185            @Override
186            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
187                    int end) {
188                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start, end);
189            }
190    
191            /**
192             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
193             *
194             * <p>
195             * 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.
196             * </p>
197             *
198             * @param dynamicQuery the dynamic query
199             * @param start the lower bound of the range of model instances
200             * @param end the upper bound of the range of model instances (not inclusive)
201             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
202             * @return the ordered range of matching rows
203             */
204            @Override
205            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
206                    int end, OrderByComparator<T> orderByComparator) {
207                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start,
208                            end, orderByComparator);
209            }
210    
211            /**
212             * Returns the number of rows matching the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @return the number of rows matching the dynamic query
216             */
217            @Override
218            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
219                    return dlFolderPersistence.countWithDynamicQuery(dynamicQuery);
220            }
221    
222            /**
223             * Returns the number of rows matching the dynamic query.
224             *
225             * @param dynamicQuery the dynamic query
226             * @param projection the projection to apply to the query
227             * @return the number of rows matching the dynamic query
228             */
229            @Override
230            public long dynamicQueryCount(DynamicQuery dynamicQuery,
231                    Projection projection) {
232                    return dlFolderPersistence.countWithDynamicQuery(dynamicQuery,
233                            projection);
234            }
235    
236            @Override
237            public DLFolder fetchDLFolder(long folderId) {
238                    return dlFolderPersistence.fetchByPrimaryKey(folderId);
239            }
240    
241            /**
242             * Returns the document library folder matching the UUID and group.
243             *
244             * @param uuid the document library folder's UUID
245             * @param groupId the primary key of the group
246             * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
247             */
248            @Override
249            public DLFolder fetchDLFolderByUuidAndGroupId(String uuid, long groupId) {
250                    return dlFolderPersistence.fetchByUUID_G(uuid, groupId);
251            }
252    
253            /**
254             * Returns the document library folder with the primary key.
255             *
256             * @param folderId the primary key of the document library folder
257             * @return the document library folder
258             * @throws PortalException if a document library folder with the primary key could not be found
259             */
260            @Override
261            public DLFolder getDLFolder(long folderId) throws PortalException {
262                    return dlFolderPersistence.findByPrimaryKey(folderId);
263            }
264    
265            @Override
266            public ActionableDynamicQuery getActionableDynamicQuery() {
267                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
268    
269                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getService());
270                    actionableDynamicQuery.setClass(DLFolder.class);
271                    actionableDynamicQuery.setClassLoader(getClassLoader());
272    
273                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
274    
275                    return actionableDynamicQuery;
276            }
277    
278            protected void initActionableDynamicQuery(
279                    ActionableDynamicQuery actionableDynamicQuery) {
280                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getService());
281                    actionableDynamicQuery.setClass(DLFolder.class);
282                    actionableDynamicQuery.setClassLoader(getClassLoader());
283    
284                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
285            }
286    
287            @Override
288            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
289                    final PortletDataContext portletDataContext) {
290                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
291                                    @Override
292                                    public long performCount() throws PortalException {
293                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
294    
295                                            StagedModelType stagedModelType = getStagedModelType();
296    
297                                            long modelAdditionCount = super.performCount();
298    
299                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
300                                                    modelAdditionCount);
301    
302                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
303                                                            stagedModelType);
304    
305                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
306                                                    modelDeletionCount);
307    
308                                            return modelAdditionCount;
309                                    }
310                            };
311    
312                    initActionableDynamicQuery(exportActionableDynamicQuery);
313    
314                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
315                                    @Override
316                                    public void addCriteria(DynamicQuery dynamicQuery) {
317                                            Criterion modifiedDateCriterion = portletDataContext.getDateRangeCriteria(
318                                                            "modifiedDate");
319                                            Criterion statusDateCriterion = portletDataContext.getDateRangeCriteria(
320                                                            "statusDate");
321    
322                                            if ((modifiedDateCriterion != null) &&
323                                                            (statusDateCriterion != null)) {
324                                                    Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
325    
326                                                    disjunction.add(modifiedDateCriterion);
327                                                    disjunction.add(statusDateCriterion);
328    
329                                                    dynamicQuery.add(disjunction);
330                                            }
331    
332                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
333                                                            "status");
334    
335                                            if (portletDataContext.isInitialPublication()) {
336                                                    dynamicQuery.add(workflowStatusProperty.ne(
337                                                                    WorkflowConstants.STATUS_IN_TRASH));
338                                            }
339                                            else {
340                                                    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(DLFolder.class.getName());
341    
342                                                    dynamicQuery.add(workflowStatusProperty.in(
343                                                                    stagedModelDataHandler.getExportableStatuses()));
344                                            }
345                                    }
346                            });
347    
348                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
349    
350                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
351    
352                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
353                                    @Override
354                                    public void performAction(Object object)
355                                            throws PortalException {
356                                            DLFolder stagedModel = (DLFolder)object;
357    
358                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
359                                                    stagedModel);
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 trash entry local service.
1433             *
1434             * @return the trash entry local service
1435             */
1436            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1437                    return trashEntryLocalService;
1438            }
1439    
1440            /**
1441             * Sets the trash entry local service.
1442             *
1443             * @param trashEntryLocalService the trash entry local service
1444             */
1445            public void setTrashEntryLocalService(
1446                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1447                    this.trashEntryLocalService = trashEntryLocalService;
1448            }
1449    
1450            /**
1451             * Returns the trash entry remote service.
1452             *
1453             * @return the trash entry remote service
1454             */
1455            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1456                    return trashEntryService;
1457            }
1458    
1459            /**
1460             * Sets the trash entry remote service.
1461             *
1462             * @param trashEntryService the trash entry remote service
1463             */
1464            public void setTrashEntryService(
1465                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1466                    this.trashEntryService = trashEntryService;
1467            }
1468    
1469            /**
1470             * Returns the trash entry persistence.
1471             *
1472             * @return the trash entry persistence
1473             */
1474            public TrashEntryPersistence getTrashEntryPersistence() {
1475                    return trashEntryPersistence;
1476            }
1477    
1478            /**
1479             * Sets the trash entry persistence.
1480             *
1481             * @param trashEntryPersistence the trash entry persistence
1482             */
1483            public void setTrashEntryPersistence(
1484                    TrashEntryPersistence trashEntryPersistence) {
1485                    this.trashEntryPersistence = trashEntryPersistence;
1486            }
1487    
1488            public void afterPropertiesSet() {
1489                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFolder",
1490                            dlFolderLocalService);
1491            }
1492    
1493            public void destroy() {
1494                    persistedModelLocalServiceRegistry.unregister(
1495                            "com.liferay.portlet.documentlibrary.model.DLFolder");
1496            }
1497    
1498            /**
1499             * Returns the Spring bean ID for this bean.
1500             *
1501             * @return the Spring bean ID for this bean
1502             */
1503            @Override
1504            public String getBeanIdentifier() {
1505                    return _beanIdentifier;
1506            }
1507    
1508            /**
1509             * Sets the Spring bean ID for this bean.
1510             *
1511             * @param beanIdentifier the Spring bean ID for this bean
1512             */
1513            @Override
1514            public void setBeanIdentifier(String beanIdentifier) {
1515                    _beanIdentifier = beanIdentifier;
1516            }
1517    
1518            protected Class<?> getModelClass() {
1519                    return DLFolder.class;
1520            }
1521    
1522            protected String getModelClassName() {
1523                    return DLFolder.class.getName();
1524            }
1525    
1526            /**
1527             * Performs a SQL query.
1528             *
1529             * @param sql the sql query
1530             */
1531            protected void runSQL(String sql) {
1532                    try {
1533                            DataSource dataSource = dlFolderPersistence.getDataSource();
1534    
1535                            DB db = DBFactoryUtil.getDB();
1536    
1537                            sql = db.buildSQL(sql);
1538                            sql = PortalUtil.transformSQL(sql);
1539    
1540                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1541                                            sql, new int[0]);
1542    
1543                            sqlUpdate.update();
1544                    }
1545                    catch (Exception e) {
1546                            throw new SystemException(e);
1547                    }
1548            }
1549    
1550            @BeanReference(type = DLFolderLocalService.class)
1551            protected DLFolderLocalService dlFolderLocalService;
1552            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1553            protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1554            @BeanReference(type = DLFolderPersistence.class)
1555            protected DLFolderPersistence dlFolderPersistence;
1556            @BeanReference(type = DLFolderFinder.class)
1557            protected DLFolderFinder dlFolderFinder;
1558            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1559            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1560            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1561            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1562            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1563            protected com.liferay.portal.service.GroupService groupService;
1564            @BeanReference(type = GroupPersistence.class)
1565            protected GroupPersistence groupPersistence;
1566            @BeanReference(type = GroupFinder.class)
1567            protected GroupFinder groupFinder;
1568            @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1569            protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1570            @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
1571            protected com.liferay.portal.service.RepositoryService repositoryService;
1572            @BeanReference(type = RepositoryPersistence.class)
1573            protected RepositoryPersistence repositoryPersistence;
1574            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1575            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1576            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1577            protected com.liferay.portal.service.UserLocalService userLocalService;
1578            @BeanReference(type = com.liferay.portal.service.UserService.class)
1579            protected com.liferay.portal.service.UserService userService;
1580            @BeanReference(type = UserPersistence.class)
1581            protected UserPersistence userPersistence;
1582            @BeanReference(type = UserFinder.class)
1583            protected UserFinder userFinder;
1584            @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1585            protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1586            @BeanReference(type = WebDAVPropsPersistence.class)
1587            protected WebDAVPropsPersistence webDAVPropsPersistence;
1588            @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1589            protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1590            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1591            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1592            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1593            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1594            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1595            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1596            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1597            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1598            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1599            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1600            @BeanReference(type = AssetEntryPersistence.class)
1601            protected AssetEntryPersistence assetEntryPersistence;
1602            @BeanReference(type = AssetEntryFinder.class)
1603            protected AssetEntryFinder assetEntryFinder;
1604            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1605            protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1606            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1607            protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1608            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1609            protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1610            @BeanReference(type = DLFileEntryPersistence.class)
1611            protected DLFileEntryPersistence dlFileEntryPersistence;
1612            @BeanReference(type = DLFileEntryFinder.class)
1613            protected DLFileEntryFinder dlFileEntryFinder;
1614            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1615            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1616            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1617            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1618            @BeanReference(type = DLFileEntryTypePersistence.class)
1619            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1620            @BeanReference(type = DLFileEntryTypeFinder.class)
1621            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1622            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
1623            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
1624            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
1625            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService;
1626            @BeanReference(type = DLFileShortcutPersistence.class)
1627            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1628            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1629            protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1630            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1631            protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1632            @BeanReference(type = DLFileVersionPersistence.class)
1633            protected DLFileVersionPersistence dlFileVersionPersistence;
1634            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1635            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1636            @BeanReference(type = ExpandoRowPersistence.class)
1637            protected ExpandoRowPersistence expandoRowPersistence;
1638            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1639            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1640            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1641            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1642            @BeanReference(type = TrashEntryPersistence.class)
1643            protected TrashEntryPersistence trashEntryPersistence;
1644            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1645            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1646            private String _beanIdentifier;
1647    }