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