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