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