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