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