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