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