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