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