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.blogs.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.asset.kernel.service.persistence.AssetEntryFinder;
020    import com.liferay.asset.kernel.service.persistence.AssetEntryPersistence;
021    import com.liferay.asset.kernel.service.persistence.AssetLinkPersistence;
022    
023    import com.liferay.blogs.kernel.model.BlogsEntry;
024    import com.liferay.blogs.kernel.service.BlogsEntryLocalService;
025    import com.liferay.blogs.kernel.service.persistence.BlogsEntryFinder;
026    import com.liferay.blogs.kernel.service.persistence.BlogsEntryPersistence;
027    import com.liferay.blogs.kernel.service.persistence.BlogsStatsUserFinder;
028    import com.liferay.blogs.kernel.service.persistence.BlogsStatsUserPersistence;
029    
030    import com.liferay.expando.kernel.service.persistence.ExpandoRowPersistence;
031    
032    import com.liferay.exportimport.kernel.lar.ExportImportHelperUtil;
033    import com.liferay.exportimport.kernel.lar.ManifestSummary;
034    import com.liferay.exportimport.kernel.lar.PortletDataContext;
035    import com.liferay.exportimport.kernel.lar.StagedModelDataHandler;
036    import com.liferay.exportimport.kernel.lar.StagedModelDataHandlerRegistryUtil;
037    import com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil;
038    import com.liferay.exportimport.kernel.lar.StagedModelType;
039    
040    import com.liferay.portal.kernel.bean.BeanReference;
041    import com.liferay.portal.kernel.dao.db.DB;
042    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
043    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
044    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
045    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
046    import com.liferay.portal.kernel.dao.orm.Criterion;
047    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
048    import com.liferay.portal.kernel.dao.orm.Disjunction;
049    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
050    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
051    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
052    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
053    import com.liferay.portal.kernel.dao.orm.Projection;
054    import com.liferay.portal.kernel.dao.orm.Property;
055    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
056    import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
057    import com.liferay.portal.kernel.exception.PortalException;
058    import com.liferay.portal.kernel.exception.SystemException;
059    import com.liferay.portal.kernel.model.PersistedModel;
060    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
061    import com.liferay.portal.kernel.search.Indexable;
062    import com.liferay.portal.kernel.search.IndexableType;
063    import com.liferay.portal.kernel.service.BaseLocalServiceImpl;
064    import com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry;
065    import com.liferay.portal.kernel.service.persistence.CompanyPersistence;
066    import com.liferay.portal.kernel.service.persistence.GroupFinder;
067    import com.liferay.portal.kernel.service.persistence.GroupPersistence;
068    import com.liferay.portal.kernel.service.persistence.ImagePersistence;
069    import com.liferay.portal.kernel.service.persistence.OrganizationFinder;
070    import com.liferay.portal.kernel.service.persistence.OrganizationPersistence;
071    import com.liferay.portal.kernel.service.persistence.PortletPreferencesFinder;
072    import com.liferay.portal.kernel.service.persistence.PortletPreferencesPersistence;
073    import com.liferay.portal.kernel.service.persistence.SubscriptionPersistence;
074    import com.liferay.portal.kernel.service.persistence.UserFinder;
075    import com.liferay.portal.kernel.service.persistence.UserPersistence;
076    import com.liferay.portal.kernel.service.persistence.WorkflowInstanceLinkPersistence;
077    import com.liferay.portal.kernel.util.OrderByComparator;
078    import com.liferay.portal.kernel.util.PortalUtil;
079    import com.liferay.portal.kernel.workflow.WorkflowConstants;
080    
081    import com.liferay.ratings.kernel.service.persistence.RatingsStatsFinder;
082    import com.liferay.ratings.kernel.service.persistence.RatingsStatsPersistence;
083    
084    import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
085    
086    import java.io.Serializable;
087    
088    import java.util.List;
089    
090    import javax.sql.DataSource;
091    
092    /**
093     * Provides the base implementation for the blogs entry local service.
094     *
095     * <p>
096     * 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.blogs.service.impl.BlogsEntryLocalServiceImpl}.
097     * </p>
098     *
099     * @author Brian Wing Shun Chan
100     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
101     * @see com.liferay.blogs.kernel.service.BlogsEntryLocalServiceUtil
102     * @generated
103     */
104    @ProviderType
105    public abstract class BlogsEntryLocalServiceBaseImpl
106            extends BaseLocalServiceImpl implements BlogsEntryLocalService,
107                    IdentifiableOSGiService {
108            /*
109             * NOTE FOR DEVELOPERS:
110             *
111             * Never modify or reference this class directly. Always use {@link com.liferay.blogs.kernel.service.BlogsEntryLocalServiceUtil} to access the blogs entry local service.
112             */
113    
114            /**
115             * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
116             *
117             * @param blogsEntry the blogs entry
118             * @return the blogs entry that was added
119             */
120            @Indexable(type = IndexableType.REINDEX)
121            @Override
122            public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry) {
123                    blogsEntry.setNew(true);
124    
125                    return blogsEntryPersistence.update(blogsEntry);
126            }
127    
128            /**
129             * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
130             *
131             * @param entryId the primary key for the new blogs entry
132             * @return the new blogs entry
133             */
134            @Override
135            public BlogsEntry createBlogsEntry(long entryId) {
136                    return blogsEntryPersistence.create(entryId);
137            }
138    
139            /**
140             * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
141             *
142             * @param entryId the primary key of the blogs entry
143             * @return the blogs entry that was removed
144             * @throws PortalException if a blogs entry with the primary key could not be found
145             */
146            @Indexable(type = IndexableType.DELETE)
147            @Override
148            public BlogsEntry deleteBlogsEntry(long entryId) throws PortalException {
149                    return blogsEntryPersistence.remove(entryId);
150            }
151    
152            /**
153             * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
154             *
155             * @param blogsEntry the blogs entry
156             * @return the blogs entry that was removed
157             */
158            @Indexable(type = IndexableType.DELETE)
159            @Override
160            public BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry) {
161                    return blogsEntryPersistence.remove(blogsEntry);
162            }
163    
164            @Override
165            public DynamicQuery dynamicQuery() {
166                    Class<?> clazz = getClass();
167    
168                    return DynamicQueryFactoryUtil.forClass(BlogsEntry.class,
169                            clazz.getClassLoader());
170            }
171    
172            /**
173             * Performs a dynamic query on the database and returns the matching rows.
174             *
175             * @param dynamicQuery the dynamic query
176             * @return the matching rows
177             */
178            @Override
179            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
180                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
181            }
182    
183            /**
184             * Performs a dynamic query on the database and returns a range of the matching rows.
185             *
186             * <p>
187             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
188             * </p>
189             *
190             * @param dynamicQuery the dynamic query
191             * @param start the lower bound of the range of model instances
192             * @param end the upper bound of the range of model instances (not inclusive)
193             * @return the range of matching rows
194             */
195            @Override
196            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
197                    int end) {
198                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
199                            end);
200            }
201    
202            /**
203             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
204             *
205             * <p>
206             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
207             * </p>
208             *
209             * @param dynamicQuery the dynamic query
210             * @param start the lower bound of the range of model instances
211             * @param end the upper bound of the range of model instances (not inclusive)
212             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
213             * @return the ordered range of matching rows
214             */
215            @Override
216            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
217                    int end, OrderByComparator<T> orderByComparator) {
218                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
219                            end, orderByComparator);
220            }
221    
222            /**
223             * Returns the number of rows matching the dynamic query.
224             *
225             * @param dynamicQuery the dynamic query
226             * @return the number of rows matching the dynamic query
227             */
228            @Override
229            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
230                    return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery);
231            }
232    
233            /**
234             * Returns the number of rows matching the dynamic query.
235             *
236             * @param dynamicQuery the dynamic query
237             * @param projection the projection to apply to the query
238             * @return the number of rows matching the dynamic query
239             */
240            @Override
241            public long dynamicQueryCount(DynamicQuery dynamicQuery,
242                    Projection projection) {
243                    return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery,
244                            projection);
245            }
246    
247            @Override
248            public BlogsEntry fetchBlogsEntry(long entryId) {
249                    return blogsEntryPersistence.fetchByPrimaryKey(entryId);
250            }
251    
252            /**
253             * Returns the blogs entry matching the UUID and group.
254             *
255             * @param uuid the blogs entry's UUID
256             * @param groupId the primary key of the group
257             * @return the matching blogs entry, or <code>null</code> if a matching blogs entry could not be found
258             */
259            @Override
260            public BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId) {
261                    return blogsEntryPersistence.fetchByUUID_G(uuid, groupId);
262            }
263    
264            /**
265             * Returns the blogs entry with the primary key.
266             *
267             * @param entryId the primary key of the blogs entry
268             * @return the blogs entry
269             * @throws PortalException if a blogs entry with the primary key could not be found
270             */
271            @Override
272            public BlogsEntry getBlogsEntry(long entryId) throws PortalException {
273                    return blogsEntryPersistence.findByPrimaryKey(entryId);
274            }
275    
276            @Override
277            public ActionableDynamicQuery getActionableDynamicQuery() {
278                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
279    
280                    actionableDynamicQuery.setBaseLocalService(com.liferay.blogs.kernel.service.BlogsEntryLocalServiceUtil.getService());
281                    actionableDynamicQuery.setClassLoader(getClassLoader());
282                    actionableDynamicQuery.setModelClass(BlogsEntry.class);
283    
284                    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
285    
286                    return actionableDynamicQuery;
287            }
288    
289            @Override
290            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
291                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
292    
293                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.blogs.kernel.service.BlogsEntryLocalServiceUtil.getService());
294                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
295                    indexableActionableDynamicQuery.setModelClass(BlogsEntry.class);
296    
297                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
298    
299                    return indexableActionableDynamicQuery;
300            }
301    
302            protected void initActionableDynamicQuery(
303                    ActionableDynamicQuery actionableDynamicQuery) {
304                    actionableDynamicQuery.setBaseLocalService(com.liferay.blogs.kernel.service.BlogsEntryLocalServiceUtil.getService());
305                    actionableDynamicQuery.setClassLoader(getClassLoader());
306                    actionableDynamicQuery.setModelClass(BlogsEntry.class);
307    
308                    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
309            }
310    
311            @Override
312            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
313                    final PortletDataContext portletDataContext) {
314                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
315                                    @Override
316                                    public long performCount() throws PortalException {
317                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
318    
319                                            StagedModelType stagedModelType = getStagedModelType();
320    
321                                            long modelAdditionCount = super.performCount();
322    
323                                            manifestSummary.addModelAdditionCount(stagedModelType,
324                                                    modelAdditionCount);
325    
326                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
327                                                            stagedModelType);
328    
329                                            manifestSummary.addModelDeletionCount(stagedModelType,
330                                                    modelDeletionCount);
331    
332                                            return modelAdditionCount;
333                                    }
334                            };
335    
336                    initActionableDynamicQuery(exportActionableDynamicQuery);
337    
338                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
339                                    @Override
340                                    public void addCriteria(DynamicQuery dynamicQuery) {
341                                            Criterion modifiedDateCriterion = portletDataContext.getDateRangeCriteria(
342                                                            "modifiedDate");
343                                            Criterion statusDateCriterion = portletDataContext.getDateRangeCriteria(
344                                                            "statusDate");
345    
346                                            if ((modifiedDateCriterion != null) &&
347                                                            (statusDateCriterion != null)) {
348                                                    Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
349    
350                                                    disjunction.add(modifiedDateCriterion);
351                                                    disjunction.add(statusDateCriterion);
352    
353                                                    dynamicQuery.add(disjunction);
354                                            }
355    
356                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
357                                                            "status");
358    
359                                            if (portletDataContext.isInitialPublication()) {
360                                                    dynamicQuery.add(workflowStatusProperty.ne(
361                                                                    WorkflowConstants.STATUS_IN_TRASH));
362                                            }
363                                            else {
364                                                    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(BlogsEntry.class.getName());
365    
366                                                    dynamicQuery.add(workflowStatusProperty.in(
367                                                                    stagedModelDataHandler.getExportableStatuses()));
368                                            }
369                                    }
370                            });
371    
372                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
373    
374                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
375    
376                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<BlogsEntry>() {
377                                    @Override
378                                    public void performAction(BlogsEntry blogsEntry)
379                                            throws PortalException {
380                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
381                                                    blogsEntry);
382                                    }
383                            });
384                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
385                                    PortalUtil.getClassNameId(BlogsEntry.class.getName())));
386    
387                    return exportActionableDynamicQuery;
388            }
389    
390            /**
391             * @throws PortalException
392             */
393            @Override
394            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
395                    throws PortalException {
396                    return blogsEntryLocalService.deleteBlogsEntry((BlogsEntry)persistedModel);
397            }
398    
399            @Override
400            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
401                    throws PortalException {
402                    return blogsEntryPersistence.findByPrimaryKey(primaryKeyObj);
403            }
404    
405            /**
406             * Returns all the blogs entries matching the UUID and company.
407             *
408             * @param uuid the UUID of the blogs entries
409             * @param companyId the primary key of the company
410             * @return the matching blogs entries, or an empty list if no matches were found
411             */
412            @Override
413            public List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid,
414                    long companyId) {
415                    return blogsEntryPersistence.findByUuid_C(uuid, companyId);
416            }
417    
418            /**
419             * Returns a range of blogs entries matching the UUID and company.
420             *
421             * @param uuid the UUID of the blogs entries
422             * @param companyId the primary key of the company
423             * @param start the lower bound of the range of blogs entries
424             * @param end the upper bound of the range of blogs entries (not inclusive)
425             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
426             * @return the range of matching blogs entries, or an empty list if no matches were found
427             */
428            @Override
429            public List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid,
430                    long companyId, int start, int end,
431                    OrderByComparator<BlogsEntry> orderByComparator) {
432                    return blogsEntryPersistence.findByUuid_C(uuid, companyId, start, end,
433                            orderByComparator);
434            }
435    
436            /**
437             * Returns the blogs entry matching the UUID and group.
438             *
439             * @param uuid the blogs entry's UUID
440             * @param groupId the primary key of the group
441             * @return the matching blogs entry
442             * @throws PortalException if a matching blogs entry could not be found
443             */
444            @Override
445            public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
446                    throws PortalException {
447                    return blogsEntryPersistence.findByUUID_G(uuid, groupId);
448            }
449    
450            /**
451             * Returns a range of all the blogs entries.
452             *
453             * <p>
454             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
455             * </p>
456             *
457             * @param start the lower bound of the range of blogs entries
458             * @param end the upper bound of the range of blogs entries (not inclusive)
459             * @return the range of blogs entries
460             */
461            @Override
462            public List<BlogsEntry> getBlogsEntries(int start, int end) {
463                    return blogsEntryPersistence.findAll(start, end);
464            }
465    
466            /**
467             * Returns the number of blogs entries.
468             *
469             * @return the number of blogs entries
470             */
471            @Override
472            public int getBlogsEntriesCount() {
473                    return blogsEntryPersistence.countAll();
474            }
475    
476            /**
477             * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
478             *
479             * @param blogsEntry the blogs entry
480             * @return the blogs entry that was updated
481             */
482            @Indexable(type = IndexableType.REINDEX)
483            @Override
484            public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry) {
485                    return blogsEntryPersistence.update(blogsEntry);
486            }
487    
488            /**
489             * Returns the blogs entry local service.
490             *
491             * @return the blogs entry local service
492             */
493            public BlogsEntryLocalService getBlogsEntryLocalService() {
494                    return blogsEntryLocalService;
495            }
496    
497            /**
498             * Sets the blogs entry local service.
499             *
500             * @param blogsEntryLocalService the blogs entry local service
501             */
502            public void setBlogsEntryLocalService(
503                    BlogsEntryLocalService blogsEntryLocalService) {
504                    this.blogsEntryLocalService = blogsEntryLocalService;
505            }
506    
507            /**
508             * Returns the blogs entry persistence.
509             *
510             * @return the blogs entry persistence
511             */
512            public BlogsEntryPersistence getBlogsEntryPersistence() {
513                    return blogsEntryPersistence;
514            }
515    
516            /**
517             * Sets the blogs entry persistence.
518             *
519             * @param blogsEntryPersistence the blogs entry persistence
520             */
521            public void setBlogsEntryPersistence(
522                    BlogsEntryPersistence blogsEntryPersistence) {
523                    this.blogsEntryPersistence = blogsEntryPersistence;
524            }
525    
526            /**
527             * Returns the blogs entry finder.
528             *
529             * @return the blogs entry finder
530             */
531            public BlogsEntryFinder getBlogsEntryFinder() {
532                    return blogsEntryFinder;
533            }
534    
535            /**
536             * Sets the blogs entry finder.
537             *
538             * @param blogsEntryFinder the blogs entry finder
539             */
540            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
541                    this.blogsEntryFinder = blogsEntryFinder;
542            }
543    
544            /**
545             * Returns the counter local service.
546             *
547             * @return the counter local service
548             */
549            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
550                    return counterLocalService;
551            }
552    
553            /**
554             * Sets the counter local service.
555             *
556             * @param counterLocalService the counter local service
557             */
558            public void setCounterLocalService(
559                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
560                    this.counterLocalService = counterLocalService;
561            }
562    
563            /**
564             * Returns the company local service.
565             *
566             * @return the company local service
567             */
568            public com.liferay.portal.kernel.service.CompanyLocalService getCompanyLocalService() {
569                    return companyLocalService;
570            }
571    
572            /**
573             * Sets the company local service.
574             *
575             * @param companyLocalService the company local service
576             */
577            public void setCompanyLocalService(
578                    com.liferay.portal.kernel.service.CompanyLocalService companyLocalService) {
579                    this.companyLocalService = companyLocalService;
580            }
581    
582            /**
583             * Returns the company persistence.
584             *
585             * @return the company persistence
586             */
587            public CompanyPersistence getCompanyPersistence() {
588                    return companyPersistence;
589            }
590    
591            /**
592             * Sets the company persistence.
593             *
594             * @param companyPersistence the company persistence
595             */
596            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
597                    this.companyPersistence = companyPersistence;
598            }
599    
600            /**
601             * Returns the group local service.
602             *
603             * @return the group local service
604             */
605            public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() {
606                    return groupLocalService;
607            }
608    
609            /**
610             * Sets the group local service.
611             *
612             * @param groupLocalService the group local service
613             */
614            public void setGroupLocalService(
615                    com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
616                    this.groupLocalService = groupLocalService;
617            }
618    
619            /**
620             * Returns the group persistence.
621             *
622             * @return the group persistence
623             */
624            public GroupPersistence getGroupPersistence() {
625                    return groupPersistence;
626            }
627    
628            /**
629             * Sets the group persistence.
630             *
631             * @param groupPersistence the group persistence
632             */
633            public void setGroupPersistence(GroupPersistence groupPersistence) {
634                    this.groupPersistence = groupPersistence;
635            }
636    
637            /**
638             * Returns the group finder.
639             *
640             * @return the group finder
641             */
642            public GroupFinder getGroupFinder() {
643                    return groupFinder;
644            }
645    
646            /**
647             * Sets the group finder.
648             *
649             * @param groupFinder the group finder
650             */
651            public void setGroupFinder(GroupFinder groupFinder) {
652                    this.groupFinder = groupFinder;
653            }
654    
655            /**
656             * Returns the image local service.
657             *
658             * @return the image local service
659             */
660            public com.liferay.portal.kernel.service.ImageLocalService getImageLocalService() {
661                    return imageLocalService;
662            }
663    
664            /**
665             * Sets the image local service.
666             *
667             * @param imageLocalService the image local service
668             */
669            public void setImageLocalService(
670                    com.liferay.portal.kernel.service.ImageLocalService imageLocalService) {
671                    this.imageLocalService = imageLocalService;
672            }
673    
674            /**
675             * Returns the image persistence.
676             *
677             * @return the image persistence
678             */
679            public ImagePersistence getImagePersistence() {
680                    return imagePersistence;
681            }
682    
683            /**
684             * Sets the image persistence.
685             *
686             * @param imagePersistence the image persistence
687             */
688            public void setImagePersistence(ImagePersistence imagePersistence) {
689                    this.imagePersistence = imagePersistence;
690            }
691    
692            /**
693             * Returns the organization local service.
694             *
695             * @return the organization local service
696             */
697            public com.liferay.portal.kernel.service.OrganizationLocalService getOrganizationLocalService() {
698                    return organizationLocalService;
699            }
700    
701            /**
702             * Sets the organization local service.
703             *
704             * @param organizationLocalService the organization local service
705             */
706            public void setOrganizationLocalService(
707                    com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService) {
708                    this.organizationLocalService = organizationLocalService;
709            }
710    
711            /**
712             * Returns the organization persistence.
713             *
714             * @return the organization persistence
715             */
716            public OrganizationPersistence getOrganizationPersistence() {
717                    return organizationPersistence;
718            }
719    
720            /**
721             * Sets the organization persistence.
722             *
723             * @param organizationPersistence the organization persistence
724             */
725            public void setOrganizationPersistence(
726                    OrganizationPersistence organizationPersistence) {
727                    this.organizationPersistence = organizationPersistence;
728            }
729    
730            /**
731             * Returns the organization finder.
732             *
733             * @return the organization finder
734             */
735            public OrganizationFinder getOrganizationFinder() {
736                    return organizationFinder;
737            }
738    
739            /**
740             * Sets the organization finder.
741             *
742             * @param organizationFinder the organization finder
743             */
744            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
745                    this.organizationFinder = organizationFinder;
746            }
747    
748            /**
749             * Returns the portlet preferences local service.
750             *
751             * @return the portlet preferences local service
752             */
753            public com.liferay.portal.kernel.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
754                    return portletPreferencesLocalService;
755            }
756    
757            /**
758             * Sets the portlet preferences local service.
759             *
760             * @param portletPreferencesLocalService the portlet preferences local service
761             */
762            public void setPortletPreferencesLocalService(
763                    com.liferay.portal.kernel.service.PortletPreferencesLocalService portletPreferencesLocalService) {
764                    this.portletPreferencesLocalService = portletPreferencesLocalService;
765            }
766    
767            /**
768             * Returns the portlet preferences persistence.
769             *
770             * @return the portlet preferences persistence
771             */
772            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
773                    return portletPreferencesPersistence;
774            }
775    
776            /**
777             * Sets the portlet preferences persistence.
778             *
779             * @param portletPreferencesPersistence the portlet preferences persistence
780             */
781            public void setPortletPreferencesPersistence(
782                    PortletPreferencesPersistence portletPreferencesPersistence) {
783                    this.portletPreferencesPersistence = portletPreferencesPersistence;
784            }
785    
786            /**
787             * Returns the portlet preferences finder.
788             *
789             * @return the portlet preferences finder
790             */
791            public PortletPreferencesFinder getPortletPreferencesFinder() {
792                    return portletPreferencesFinder;
793            }
794    
795            /**
796             * Sets the portlet preferences finder.
797             *
798             * @param portletPreferencesFinder the portlet preferences finder
799             */
800            public void setPortletPreferencesFinder(
801                    PortletPreferencesFinder portletPreferencesFinder) {
802                    this.portletPreferencesFinder = portletPreferencesFinder;
803            }
804    
805            /**
806             * Returns the resource local service.
807             *
808             * @return the resource local service
809             */
810            public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
811                    return resourceLocalService;
812            }
813    
814            /**
815             * Sets the resource local service.
816             *
817             * @param resourceLocalService the resource local service
818             */
819            public void setResourceLocalService(
820                    com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
821                    this.resourceLocalService = resourceLocalService;
822            }
823    
824            /**
825             * Returns the subscription local service.
826             *
827             * @return the subscription local service
828             */
829            public com.liferay.portal.kernel.service.SubscriptionLocalService getSubscriptionLocalService() {
830                    return subscriptionLocalService;
831            }
832    
833            /**
834             * Sets the subscription local service.
835             *
836             * @param subscriptionLocalService the subscription local service
837             */
838            public void setSubscriptionLocalService(
839                    com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService) {
840                    this.subscriptionLocalService = subscriptionLocalService;
841            }
842    
843            /**
844             * Returns the subscription persistence.
845             *
846             * @return the subscription persistence
847             */
848            public SubscriptionPersistence getSubscriptionPersistence() {
849                    return subscriptionPersistence;
850            }
851    
852            /**
853             * Sets the subscription persistence.
854             *
855             * @param subscriptionPersistence the subscription persistence
856             */
857            public void setSubscriptionPersistence(
858                    SubscriptionPersistence subscriptionPersistence) {
859                    this.subscriptionPersistence = subscriptionPersistence;
860            }
861    
862            /**
863             * Returns the user local service.
864             *
865             * @return the user local service
866             */
867            public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
868                    return userLocalService;
869            }
870    
871            /**
872             * Sets the user local service.
873             *
874             * @param userLocalService the user local service
875             */
876            public void setUserLocalService(
877                    com.liferay.portal.kernel.service.UserLocalService userLocalService) {
878                    this.userLocalService = userLocalService;
879            }
880    
881            /**
882             * Returns the user persistence.
883             *
884             * @return the user persistence
885             */
886            public UserPersistence getUserPersistence() {
887                    return userPersistence;
888            }
889    
890            /**
891             * Sets the user persistence.
892             *
893             * @param userPersistence the user persistence
894             */
895            public void setUserPersistence(UserPersistence userPersistence) {
896                    this.userPersistence = userPersistence;
897            }
898    
899            /**
900             * Returns the user finder.
901             *
902             * @return the user finder
903             */
904            public UserFinder getUserFinder() {
905                    return userFinder;
906            }
907    
908            /**
909             * Sets the user finder.
910             *
911             * @param userFinder the user finder
912             */
913            public void setUserFinder(UserFinder userFinder) {
914                    this.userFinder = userFinder;
915            }
916    
917            /**
918             * Returns the workflow instance link local service.
919             *
920             * @return the workflow instance link local service
921             */
922            public com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
923                    return workflowInstanceLinkLocalService;
924            }
925    
926            /**
927             * Sets the workflow instance link local service.
928             *
929             * @param workflowInstanceLinkLocalService the workflow instance link local service
930             */
931            public void setWorkflowInstanceLinkLocalService(
932                    com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
933                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
934            }
935    
936            /**
937             * Returns the workflow instance link persistence.
938             *
939             * @return the workflow instance link persistence
940             */
941            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
942                    return workflowInstanceLinkPersistence;
943            }
944    
945            /**
946             * Sets the workflow instance link persistence.
947             *
948             * @param workflowInstanceLinkPersistence the workflow instance link persistence
949             */
950            public void setWorkflowInstanceLinkPersistence(
951                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
952                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
953            }
954    
955            /**
956             * Returns the asset entry local service.
957             *
958             * @return the asset entry local service
959             */
960            public com.liferay.asset.kernel.service.AssetEntryLocalService getAssetEntryLocalService() {
961                    return assetEntryLocalService;
962            }
963    
964            /**
965             * Sets the asset entry local service.
966             *
967             * @param assetEntryLocalService the asset entry local service
968             */
969            public void setAssetEntryLocalService(
970                    com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService) {
971                    this.assetEntryLocalService = assetEntryLocalService;
972            }
973    
974            /**
975             * Returns the asset entry persistence.
976             *
977             * @return the asset entry persistence
978             */
979            public AssetEntryPersistence getAssetEntryPersistence() {
980                    return assetEntryPersistence;
981            }
982    
983            /**
984             * Sets the asset entry persistence.
985             *
986             * @param assetEntryPersistence the asset entry persistence
987             */
988            public void setAssetEntryPersistence(
989                    AssetEntryPersistence assetEntryPersistence) {
990                    this.assetEntryPersistence = assetEntryPersistence;
991            }
992    
993            /**
994             * Returns the asset entry finder.
995             *
996             * @return the asset entry finder
997             */
998            public AssetEntryFinder getAssetEntryFinder() {
999                    return assetEntryFinder;
1000            }
1001    
1002            /**
1003             * Sets the asset entry finder.
1004             *
1005             * @param assetEntryFinder the asset entry finder
1006             */
1007            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1008                    this.assetEntryFinder = assetEntryFinder;
1009            }
1010    
1011            /**
1012             * Returns the asset link local service.
1013             *
1014             * @return the asset link local service
1015             */
1016            public com.liferay.asset.kernel.service.AssetLinkLocalService getAssetLinkLocalService() {
1017                    return assetLinkLocalService;
1018            }
1019    
1020            /**
1021             * Sets the asset link local service.
1022             *
1023             * @param assetLinkLocalService the asset link local service
1024             */
1025            public void setAssetLinkLocalService(
1026                    com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService) {
1027                    this.assetLinkLocalService = assetLinkLocalService;
1028            }
1029    
1030            /**
1031             * Returns the asset link persistence.
1032             *
1033             * @return the asset link persistence
1034             */
1035            public AssetLinkPersistence getAssetLinkPersistence() {
1036                    return assetLinkPersistence;
1037            }
1038    
1039            /**
1040             * Sets the asset link persistence.
1041             *
1042             * @param assetLinkPersistence the asset link persistence
1043             */
1044            public void setAssetLinkPersistence(
1045                    AssetLinkPersistence assetLinkPersistence) {
1046                    this.assetLinkPersistence = assetLinkPersistence;
1047            }
1048    
1049            /**
1050             * Returns the expando row local service.
1051             *
1052             * @return the expando row local service
1053             */
1054            public com.liferay.expando.kernel.service.ExpandoRowLocalService getExpandoRowLocalService() {
1055                    return expandoRowLocalService;
1056            }
1057    
1058            /**
1059             * Sets the expando row local service.
1060             *
1061             * @param expandoRowLocalService the expando row local service
1062             */
1063            public void setExpandoRowLocalService(
1064                    com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService) {
1065                    this.expandoRowLocalService = expandoRowLocalService;
1066            }
1067    
1068            /**
1069             * Returns the expando row persistence.
1070             *
1071             * @return the expando row persistence
1072             */
1073            public ExpandoRowPersistence getExpandoRowPersistence() {
1074                    return expandoRowPersistence;
1075            }
1076    
1077            /**
1078             * Sets the expando row persistence.
1079             *
1080             * @param expandoRowPersistence the expando row persistence
1081             */
1082            public void setExpandoRowPersistence(
1083                    ExpandoRowPersistence expandoRowPersistence) {
1084                    this.expandoRowPersistence = expandoRowPersistence;
1085            }
1086    
1087            /**
1088             * Returns the ratings stats local service.
1089             *
1090             * @return the ratings stats local service
1091             */
1092            public com.liferay.ratings.kernel.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1093                    return ratingsStatsLocalService;
1094            }
1095    
1096            /**
1097             * Sets the ratings stats local service.
1098             *
1099             * @param ratingsStatsLocalService the ratings stats local service
1100             */
1101            public void setRatingsStatsLocalService(
1102                    com.liferay.ratings.kernel.service.RatingsStatsLocalService ratingsStatsLocalService) {
1103                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1104            }
1105    
1106            /**
1107             * Returns the ratings stats persistence.
1108             *
1109             * @return the ratings stats persistence
1110             */
1111            public RatingsStatsPersistence getRatingsStatsPersistence() {
1112                    return ratingsStatsPersistence;
1113            }
1114    
1115            /**
1116             * Sets the ratings stats persistence.
1117             *
1118             * @param ratingsStatsPersistence the ratings stats persistence
1119             */
1120            public void setRatingsStatsPersistence(
1121                    RatingsStatsPersistence ratingsStatsPersistence) {
1122                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1123            }
1124    
1125            /**
1126             * Returns the ratings stats finder.
1127             *
1128             * @return the ratings stats finder
1129             */
1130            public RatingsStatsFinder getRatingsStatsFinder() {
1131                    return ratingsStatsFinder;
1132            }
1133    
1134            /**
1135             * Sets the ratings stats finder.
1136             *
1137             * @param ratingsStatsFinder the ratings stats finder
1138             */
1139            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1140                    this.ratingsStatsFinder = ratingsStatsFinder;
1141            }
1142    
1143            /**
1144             * Returns the trash entry local service.
1145             *
1146             * @return the trash entry local service
1147             */
1148            public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
1149                    return trashEntryLocalService;
1150            }
1151    
1152            /**
1153             * Sets the trash entry local service.
1154             *
1155             * @param trashEntryLocalService the trash entry local service
1156             */
1157            public void setTrashEntryLocalService(
1158                    com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
1159                    this.trashEntryLocalService = trashEntryLocalService;
1160            }
1161    
1162            /**
1163             * Returns the trash entry persistence.
1164             *
1165             * @return the trash entry persistence
1166             */
1167            public TrashEntryPersistence getTrashEntryPersistence() {
1168                    return trashEntryPersistence;
1169            }
1170    
1171            /**
1172             * Sets the trash entry persistence.
1173             *
1174             * @param trashEntryPersistence the trash entry persistence
1175             */
1176            public void setTrashEntryPersistence(
1177                    TrashEntryPersistence trashEntryPersistence) {
1178                    this.trashEntryPersistence = trashEntryPersistence;
1179            }
1180    
1181            /**
1182             * Returns the blogs stats user local service.
1183             *
1184             * @return the blogs stats user local service
1185             */
1186            public com.liferay.blogs.kernel.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
1187                    return blogsStatsUserLocalService;
1188            }
1189    
1190            /**
1191             * Sets the blogs stats user local service.
1192             *
1193             * @param blogsStatsUserLocalService the blogs stats user local service
1194             */
1195            public void setBlogsStatsUserLocalService(
1196                    com.liferay.blogs.kernel.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
1197                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
1198            }
1199    
1200            /**
1201             * Returns the blogs stats user persistence.
1202             *
1203             * @return the blogs stats user persistence
1204             */
1205            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
1206                    return blogsStatsUserPersistence;
1207            }
1208    
1209            /**
1210             * Sets the blogs stats user persistence.
1211             *
1212             * @param blogsStatsUserPersistence the blogs stats user persistence
1213             */
1214            public void setBlogsStatsUserPersistence(
1215                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
1216                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
1217            }
1218    
1219            /**
1220             * Returns the blogs stats user finder.
1221             *
1222             * @return the blogs stats user finder
1223             */
1224            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
1225                    return blogsStatsUserFinder;
1226            }
1227    
1228            /**
1229             * Sets the blogs stats user finder.
1230             *
1231             * @param blogsStatsUserFinder the blogs stats user finder
1232             */
1233            public void setBlogsStatsUserFinder(
1234                    BlogsStatsUserFinder blogsStatsUserFinder) {
1235                    this.blogsStatsUserFinder = blogsStatsUserFinder;
1236            }
1237    
1238            public void afterPropertiesSet() {
1239                    persistedModelLocalServiceRegistry.register("com.liferay.blogs.kernel.model.BlogsEntry",
1240                            blogsEntryLocalService);
1241            }
1242    
1243            public void destroy() {
1244                    persistedModelLocalServiceRegistry.unregister(
1245                            "com.liferay.blogs.kernel.model.BlogsEntry");
1246            }
1247    
1248            /**
1249             * Returns the OSGi service identifier.
1250             *
1251             * @return the OSGi service identifier
1252             */
1253            @Override
1254            public String getOSGiServiceIdentifier() {
1255                    return BlogsEntryLocalService.class.getName();
1256            }
1257    
1258            protected Class<?> getModelClass() {
1259                    return BlogsEntry.class;
1260            }
1261    
1262            protected String getModelClassName() {
1263                    return BlogsEntry.class.getName();
1264            }
1265    
1266            /**
1267             * Performs a SQL query.
1268             *
1269             * @param sql the sql query
1270             */
1271            protected void runSQL(String sql) {
1272                    try {
1273                            DataSource dataSource = blogsEntryPersistence.getDataSource();
1274    
1275                            DB db = DBManagerUtil.getDB();
1276    
1277                            sql = db.buildSQL(sql);
1278                            sql = PortalUtil.transformSQL(sql);
1279    
1280                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1281                                            sql, new int[0]);
1282    
1283                            sqlUpdate.update();
1284                    }
1285                    catch (Exception e) {
1286                            throw new SystemException(e);
1287                    }
1288            }
1289    
1290            @BeanReference(type = com.liferay.blogs.kernel.service.BlogsEntryLocalService.class)
1291            protected BlogsEntryLocalService blogsEntryLocalService;
1292            @BeanReference(type = BlogsEntryPersistence.class)
1293            protected BlogsEntryPersistence blogsEntryPersistence;
1294            @BeanReference(type = BlogsEntryFinder.class)
1295            protected BlogsEntryFinder blogsEntryFinder;
1296            @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
1297            protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
1298            @BeanReference(type = com.liferay.portal.kernel.service.CompanyLocalService.class)
1299            protected com.liferay.portal.kernel.service.CompanyLocalService companyLocalService;
1300            @BeanReference(type = CompanyPersistence.class)
1301            protected CompanyPersistence companyPersistence;
1302            @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class)
1303            protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService;
1304            @BeanReference(type = GroupPersistence.class)
1305            protected GroupPersistence groupPersistence;
1306            @BeanReference(type = GroupFinder.class)
1307            protected GroupFinder groupFinder;
1308            @BeanReference(type = com.liferay.portal.kernel.service.ImageLocalService.class)
1309            protected com.liferay.portal.kernel.service.ImageLocalService imageLocalService;
1310            @BeanReference(type = ImagePersistence.class)
1311            protected ImagePersistence imagePersistence;
1312            @BeanReference(type = com.liferay.portal.kernel.service.OrganizationLocalService.class)
1313            protected com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService;
1314            @BeanReference(type = OrganizationPersistence.class)
1315            protected OrganizationPersistence organizationPersistence;
1316            @BeanReference(type = OrganizationFinder.class)
1317            protected OrganizationFinder organizationFinder;
1318            @BeanReference(type = com.liferay.portal.kernel.service.PortletPreferencesLocalService.class)
1319            protected com.liferay.portal.kernel.service.PortletPreferencesLocalService portletPreferencesLocalService;
1320            @BeanReference(type = PortletPreferencesPersistence.class)
1321            protected PortletPreferencesPersistence portletPreferencesPersistence;
1322            @BeanReference(type = PortletPreferencesFinder.class)
1323            protected PortletPreferencesFinder portletPreferencesFinder;
1324            @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
1325            protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
1326            @BeanReference(type = com.liferay.portal.kernel.service.SubscriptionLocalService.class)
1327            protected com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService;
1328            @BeanReference(type = SubscriptionPersistence.class)
1329            protected SubscriptionPersistence subscriptionPersistence;
1330            @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
1331            protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
1332            @BeanReference(type = UserPersistence.class)
1333            protected UserPersistence userPersistence;
1334            @BeanReference(type = UserFinder.class)
1335            protected UserFinder userFinder;
1336            @BeanReference(type = com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService.class)
1337            protected com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1338            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1339            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1340            @BeanReference(type = com.liferay.asset.kernel.service.AssetEntryLocalService.class)
1341            protected com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService;
1342            @BeanReference(type = AssetEntryPersistence.class)
1343            protected AssetEntryPersistence assetEntryPersistence;
1344            @BeanReference(type = AssetEntryFinder.class)
1345            protected AssetEntryFinder assetEntryFinder;
1346            @BeanReference(type = com.liferay.asset.kernel.service.AssetLinkLocalService.class)
1347            protected com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService;
1348            @BeanReference(type = AssetLinkPersistence.class)
1349            protected AssetLinkPersistence assetLinkPersistence;
1350            @BeanReference(type = com.liferay.expando.kernel.service.ExpandoRowLocalService.class)
1351            protected com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService;
1352            @BeanReference(type = ExpandoRowPersistence.class)
1353            protected ExpandoRowPersistence expandoRowPersistence;
1354            @BeanReference(type = com.liferay.ratings.kernel.service.RatingsStatsLocalService.class)
1355            protected com.liferay.ratings.kernel.service.RatingsStatsLocalService ratingsStatsLocalService;
1356            @BeanReference(type = RatingsStatsPersistence.class)
1357            protected RatingsStatsPersistence ratingsStatsPersistence;
1358            @BeanReference(type = RatingsStatsFinder.class)
1359            protected RatingsStatsFinder ratingsStatsFinder;
1360            @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
1361            protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
1362            @BeanReference(type = TrashEntryPersistence.class)
1363            protected TrashEntryPersistence trashEntryPersistence;
1364            @BeanReference(type = com.liferay.blogs.kernel.service.BlogsStatsUserLocalService.class)
1365            protected com.liferay.blogs.kernel.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
1366            @BeanReference(type = BlogsStatsUserPersistence.class)
1367            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1368            @BeanReference(type = BlogsStatsUserFinder.class)
1369            protected BlogsStatsUserFinder blogsStatsUserFinder;
1370            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1371            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1372    }