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