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 that match the dynamic query.
212             *
213             * @param dynamicQuery the dynamic query
214             * @return the number of rows that match 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 that match 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 that match 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            @Override
365            public List<MBCategory> getMBCategoriesByUuidAndCompanyId(String uuid,
366                    long companyId) {
367                    return mbCategoryPersistence.findByUuid_C(uuid, companyId);
368            }
369    
370            @Override
371            public List<MBCategory> getMBCategoriesByUuidAndCompanyId(String uuid,
372                    long companyId, int start, int end,
373                    OrderByComparator<MBCategory> orderByComparator) {
374                    return mbCategoryPersistence.findByUuid_C(uuid, companyId, start, end,
375                            orderByComparator);
376            }
377    
378            /**
379             * Returns the message boards category matching the UUID and group.
380             *
381             * @param uuid the message boards category's UUID
382             * @param groupId the primary key of the group
383             * @return the matching message boards category
384             * @throws PortalException if a matching message boards category could not be found
385             */
386            @Override
387            public MBCategory getMBCategoryByUuidAndGroupId(String uuid, long groupId)
388                    throws PortalException {
389                    return mbCategoryPersistence.findByUUID_G(uuid, groupId);
390            }
391    
392            /**
393             * Returns a range of all the message boards categories.
394             *
395             * <p>
396             * 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.
397             * </p>
398             *
399             * @param start the lower bound of the range of message boards categories
400             * @param end the upper bound of the range of message boards categories (not inclusive)
401             * @return the range of message boards categories
402             */
403            @Override
404            public List<MBCategory> getMBCategories(int start, int end) {
405                    return mbCategoryPersistence.findAll(start, end);
406            }
407    
408            /**
409             * Returns the number of message boards categories.
410             *
411             * @return the number of message boards categories
412             */
413            @Override
414            public int getMBCategoriesCount() {
415                    return mbCategoryPersistence.countAll();
416            }
417    
418            /**
419             * Updates the message boards category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
420             *
421             * @param mbCategory the message boards category
422             * @return the message boards category that was updated
423             */
424            @Indexable(type = IndexableType.REINDEX)
425            @Override
426            public MBCategory updateMBCategory(MBCategory mbCategory) {
427                    return mbCategoryPersistence.update(mbCategory);
428            }
429    
430            /**
431             * Returns the message boards category local service.
432             *
433             * @return the message boards category local service
434             */
435            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
436                    return mbCategoryLocalService;
437            }
438    
439            /**
440             * Sets the message boards category local service.
441             *
442             * @param mbCategoryLocalService the message boards category local service
443             */
444            public void setMBCategoryLocalService(
445                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
446                    this.mbCategoryLocalService = mbCategoryLocalService;
447            }
448    
449            /**
450             * Returns the message boards category remote service.
451             *
452             * @return the message boards category remote service
453             */
454            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
455                    return mbCategoryService;
456            }
457    
458            /**
459             * Sets the message boards category remote service.
460             *
461             * @param mbCategoryService the message boards category remote service
462             */
463            public void setMBCategoryService(
464                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
465                    this.mbCategoryService = mbCategoryService;
466            }
467    
468            /**
469             * Returns the message boards category persistence.
470             *
471             * @return the message boards category persistence
472             */
473            public MBCategoryPersistence getMBCategoryPersistence() {
474                    return mbCategoryPersistence;
475            }
476    
477            /**
478             * Sets the message boards category persistence.
479             *
480             * @param mbCategoryPersistence the message boards category persistence
481             */
482            public void setMBCategoryPersistence(
483                    MBCategoryPersistence mbCategoryPersistence) {
484                    this.mbCategoryPersistence = mbCategoryPersistence;
485            }
486    
487            /**
488             * Returns the message boards category finder.
489             *
490             * @return the message boards category finder
491             */
492            public MBCategoryFinder getMBCategoryFinder() {
493                    return mbCategoryFinder;
494            }
495    
496            /**
497             * Sets the message boards category finder.
498             *
499             * @param mbCategoryFinder the message boards category finder
500             */
501            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
502                    this.mbCategoryFinder = mbCategoryFinder;
503            }
504    
505            /**
506             * Returns the counter local service.
507             *
508             * @return the counter local service
509             */
510            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
511                    return counterLocalService;
512            }
513    
514            /**
515             * Sets the counter local service.
516             *
517             * @param counterLocalService the counter local service
518             */
519            public void setCounterLocalService(
520                    com.liferay.counter.service.CounterLocalService counterLocalService) {
521                    this.counterLocalService = counterLocalService;
522            }
523    
524            /**
525             * Returns the group local service.
526             *
527             * @return the group local service
528             */
529            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
530                    return groupLocalService;
531            }
532    
533            /**
534             * Sets the group local service.
535             *
536             * @param groupLocalService the group local service
537             */
538            public void setGroupLocalService(
539                    com.liferay.portal.service.GroupLocalService groupLocalService) {
540                    this.groupLocalService = groupLocalService;
541            }
542    
543            /**
544             * Returns the group remote service.
545             *
546             * @return the group remote service
547             */
548            public com.liferay.portal.service.GroupService getGroupService() {
549                    return groupService;
550            }
551    
552            /**
553             * Sets the group remote service.
554             *
555             * @param groupService the group remote service
556             */
557            public void setGroupService(
558                    com.liferay.portal.service.GroupService groupService) {
559                    this.groupService = groupService;
560            }
561    
562            /**
563             * Returns the group persistence.
564             *
565             * @return the group persistence
566             */
567            public GroupPersistence getGroupPersistence() {
568                    return groupPersistence;
569            }
570    
571            /**
572             * Sets the group persistence.
573             *
574             * @param groupPersistence the group persistence
575             */
576            public void setGroupPersistence(GroupPersistence groupPersistence) {
577                    this.groupPersistence = groupPersistence;
578            }
579    
580            /**
581             * Returns the group finder.
582             *
583             * @return the group finder
584             */
585            public GroupFinder getGroupFinder() {
586                    return groupFinder;
587            }
588    
589            /**
590             * Sets the group finder.
591             *
592             * @param groupFinder the group finder
593             */
594            public void setGroupFinder(GroupFinder groupFinder) {
595                    this.groupFinder = groupFinder;
596            }
597    
598            /**
599             * Returns the resource local service.
600             *
601             * @return the resource local service
602             */
603            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
604                    return resourceLocalService;
605            }
606    
607            /**
608             * Sets the resource local service.
609             *
610             * @param resourceLocalService the resource local service
611             */
612            public void setResourceLocalService(
613                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
614                    this.resourceLocalService = resourceLocalService;
615            }
616    
617            /**
618             * Returns the subscription local service.
619             *
620             * @return the subscription local service
621             */
622            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
623                    return subscriptionLocalService;
624            }
625    
626            /**
627             * Sets the subscription local service.
628             *
629             * @param subscriptionLocalService the subscription local service
630             */
631            public void setSubscriptionLocalService(
632                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
633                    this.subscriptionLocalService = subscriptionLocalService;
634            }
635    
636            /**
637             * Returns the subscription persistence.
638             *
639             * @return the subscription persistence
640             */
641            public SubscriptionPersistence getSubscriptionPersistence() {
642                    return subscriptionPersistence;
643            }
644    
645            /**
646             * Sets the subscription persistence.
647             *
648             * @param subscriptionPersistence the subscription persistence
649             */
650            public void setSubscriptionPersistence(
651                    SubscriptionPersistence subscriptionPersistence) {
652                    this.subscriptionPersistence = subscriptionPersistence;
653            }
654    
655            /**
656             * Returns the system event local service.
657             *
658             * @return the system event local service
659             */
660            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
661                    return systemEventLocalService;
662            }
663    
664            /**
665             * Sets the system event local service.
666             *
667             * @param systemEventLocalService the system event local service
668             */
669            public void setSystemEventLocalService(
670                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
671                    this.systemEventLocalService = systemEventLocalService;
672            }
673    
674            /**
675             * Returns the system event persistence.
676             *
677             * @return the system event persistence
678             */
679            public SystemEventPersistence getSystemEventPersistence() {
680                    return systemEventPersistence;
681            }
682    
683            /**
684             * Sets the system event persistence.
685             *
686             * @param systemEventPersistence the system event persistence
687             */
688            public void setSystemEventPersistence(
689                    SystemEventPersistence systemEventPersistence) {
690                    this.systemEventPersistence = systemEventPersistence;
691            }
692    
693            /**
694             * Returns the user local service.
695             *
696             * @return the user local service
697             */
698            public com.liferay.portal.service.UserLocalService getUserLocalService() {
699                    return userLocalService;
700            }
701    
702            /**
703             * Sets the user local service.
704             *
705             * @param userLocalService the user local service
706             */
707            public void setUserLocalService(
708                    com.liferay.portal.service.UserLocalService userLocalService) {
709                    this.userLocalService = userLocalService;
710            }
711    
712            /**
713             * Returns the user remote service.
714             *
715             * @return the user remote service
716             */
717            public com.liferay.portal.service.UserService getUserService() {
718                    return userService;
719            }
720    
721            /**
722             * Sets the user remote service.
723             *
724             * @param userService the user remote service
725             */
726            public void setUserService(
727                    com.liferay.portal.service.UserService userService) {
728                    this.userService = userService;
729            }
730    
731            /**
732             * Returns the user persistence.
733             *
734             * @return the user persistence
735             */
736            public UserPersistence getUserPersistence() {
737                    return userPersistence;
738            }
739    
740            /**
741             * Sets the user persistence.
742             *
743             * @param userPersistence the user persistence
744             */
745            public void setUserPersistence(UserPersistence userPersistence) {
746                    this.userPersistence = userPersistence;
747            }
748    
749            /**
750             * Returns the user finder.
751             *
752             * @return the user finder
753             */
754            public UserFinder getUserFinder() {
755                    return userFinder;
756            }
757    
758            /**
759             * Sets the user finder.
760             *
761             * @param userFinder the user finder
762             */
763            public void setUserFinder(UserFinder userFinder) {
764                    this.userFinder = userFinder;
765            }
766    
767            /**
768             * Returns the asset entry local service.
769             *
770             * @return the asset entry local service
771             */
772            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
773                    return assetEntryLocalService;
774            }
775    
776            /**
777             * Sets the asset entry local service.
778             *
779             * @param assetEntryLocalService the asset entry local service
780             */
781            public void setAssetEntryLocalService(
782                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
783                    this.assetEntryLocalService = assetEntryLocalService;
784            }
785    
786            /**
787             * Returns the asset entry remote service.
788             *
789             * @return the asset entry remote service
790             */
791            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
792                    return assetEntryService;
793            }
794    
795            /**
796             * Sets the asset entry remote service.
797             *
798             * @param assetEntryService the asset entry remote service
799             */
800            public void setAssetEntryService(
801                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
802                    this.assetEntryService = assetEntryService;
803            }
804    
805            /**
806             * Returns the asset entry persistence.
807             *
808             * @return the asset entry persistence
809             */
810            public AssetEntryPersistence getAssetEntryPersistence() {
811                    return assetEntryPersistence;
812            }
813    
814            /**
815             * Sets the asset entry persistence.
816             *
817             * @param assetEntryPersistence the asset entry persistence
818             */
819            public void setAssetEntryPersistence(
820                    AssetEntryPersistence assetEntryPersistence) {
821                    this.assetEntryPersistence = assetEntryPersistence;
822            }
823    
824            /**
825             * Returns the asset entry finder.
826             *
827             * @return the asset entry finder
828             */
829            public AssetEntryFinder getAssetEntryFinder() {
830                    return assetEntryFinder;
831            }
832    
833            /**
834             * Sets the asset entry finder.
835             *
836             * @param assetEntryFinder the asset entry finder
837             */
838            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
839                    this.assetEntryFinder = assetEntryFinder;
840            }
841    
842            /**
843             * Returns the asset tag local service.
844             *
845             * @return the asset tag local service
846             */
847            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
848                    return assetTagLocalService;
849            }
850    
851            /**
852             * Sets the asset tag local service.
853             *
854             * @param assetTagLocalService the asset tag local service
855             */
856            public void setAssetTagLocalService(
857                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
858                    this.assetTagLocalService = assetTagLocalService;
859            }
860    
861            /**
862             * Returns the asset tag remote service.
863             *
864             * @return the asset tag remote service
865             */
866            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
867                    return assetTagService;
868            }
869    
870            /**
871             * Sets the asset tag remote service.
872             *
873             * @param assetTagService the asset tag remote service
874             */
875            public void setAssetTagService(
876                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
877                    this.assetTagService = assetTagService;
878            }
879    
880            /**
881             * Returns the asset tag persistence.
882             *
883             * @return the asset tag persistence
884             */
885            public AssetTagPersistence getAssetTagPersistence() {
886                    return assetTagPersistence;
887            }
888    
889            /**
890             * Sets the asset tag persistence.
891             *
892             * @param assetTagPersistence the asset tag persistence
893             */
894            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
895                    this.assetTagPersistence = assetTagPersistence;
896            }
897    
898            /**
899             * Returns the asset tag finder.
900             *
901             * @return the asset tag finder
902             */
903            public AssetTagFinder getAssetTagFinder() {
904                    return assetTagFinder;
905            }
906    
907            /**
908             * Sets the asset tag finder.
909             *
910             * @param assetTagFinder the asset tag finder
911             */
912            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
913                    this.assetTagFinder = assetTagFinder;
914            }
915    
916            /**
917             * Returns the expando row local service.
918             *
919             * @return the expando row local service
920             */
921            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
922                    return expandoRowLocalService;
923            }
924    
925            /**
926             * Sets the expando row local service.
927             *
928             * @param expandoRowLocalService the expando row local service
929             */
930            public void setExpandoRowLocalService(
931                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
932                    this.expandoRowLocalService = expandoRowLocalService;
933            }
934    
935            /**
936             * Returns the expando row persistence.
937             *
938             * @return the expando row persistence
939             */
940            public ExpandoRowPersistence getExpandoRowPersistence() {
941                    return expandoRowPersistence;
942            }
943    
944            /**
945             * Sets the expando row persistence.
946             *
947             * @param expandoRowPersistence the expando row persistence
948             */
949            public void setExpandoRowPersistence(
950                    ExpandoRowPersistence expandoRowPersistence) {
951                    this.expandoRowPersistence = expandoRowPersistence;
952            }
953    
954            /**
955             * Returns the trash entry local service.
956             *
957             * @return the trash entry local service
958             */
959            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
960                    return trashEntryLocalService;
961            }
962    
963            /**
964             * Sets the trash entry local service.
965             *
966             * @param trashEntryLocalService the trash entry local service
967             */
968            public void setTrashEntryLocalService(
969                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
970                    this.trashEntryLocalService = trashEntryLocalService;
971            }
972    
973            /**
974             * Returns the trash entry remote service.
975             *
976             * @return the trash entry remote service
977             */
978            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
979                    return trashEntryService;
980            }
981    
982            /**
983             * Sets the trash entry remote service.
984             *
985             * @param trashEntryService the trash entry remote service
986             */
987            public void setTrashEntryService(
988                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
989                    this.trashEntryService = trashEntryService;
990            }
991    
992            /**
993             * Returns the trash entry persistence.
994             *
995             * @return the trash entry persistence
996             */
997            public TrashEntryPersistence getTrashEntryPersistence() {
998                    return trashEntryPersistence;
999            }
1000    
1001            /**
1002             * Sets the trash entry persistence.
1003             *
1004             * @param trashEntryPersistence the trash entry persistence
1005             */
1006            public void setTrashEntryPersistence(
1007                    TrashEntryPersistence trashEntryPersistence) {
1008                    this.trashEntryPersistence = trashEntryPersistence;
1009            }
1010    
1011            /**
1012             * Returns the trash version local service.
1013             *
1014             * @return the trash version local service
1015             */
1016            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1017                    return trashVersionLocalService;
1018            }
1019    
1020            /**
1021             * Sets the trash version local service.
1022             *
1023             * @param trashVersionLocalService the trash version local service
1024             */
1025            public void setTrashVersionLocalService(
1026                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1027                    this.trashVersionLocalService = trashVersionLocalService;
1028            }
1029    
1030            /**
1031             * Returns the trash version persistence.
1032             *
1033             * @return the trash version persistence
1034             */
1035            public TrashVersionPersistence getTrashVersionPersistence() {
1036                    return trashVersionPersistence;
1037            }
1038    
1039            /**
1040             * Sets the trash version persistence.
1041             *
1042             * @param trashVersionPersistence the trash version persistence
1043             */
1044            public void setTrashVersionPersistence(
1045                    TrashVersionPersistence trashVersionPersistence) {
1046                    this.trashVersionPersistence = trashVersionPersistence;
1047            }
1048    
1049            /**
1050             * Returns the message boards mailing list local service.
1051             *
1052             * @return the message boards mailing list local service
1053             */
1054            public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
1055                    return mbMailingListLocalService;
1056            }
1057    
1058            /**
1059             * Sets the message boards mailing list local service.
1060             *
1061             * @param mbMailingListLocalService the message boards mailing list local service
1062             */
1063            public void setMBMailingListLocalService(
1064                    com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
1065                    this.mbMailingListLocalService = mbMailingListLocalService;
1066            }
1067    
1068            /**
1069             * Returns the message boards mailing list persistence.
1070             *
1071             * @return the message boards mailing list persistence
1072             */
1073            public MBMailingListPersistence getMBMailingListPersistence() {
1074                    return mbMailingListPersistence;
1075            }
1076    
1077            /**
1078             * Sets the message boards mailing list persistence.
1079             *
1080             * @param mbMailingListPersistence the message boards mailing list persistence
1081             */
1082            public void setMBMailingListPersistence(
1083                    MBMailingListPersistence mbMailingListPersistence) {
1084                    this.mbMailingListPersistence = mbMailingListPersistence;
1085            }
1086    
1087            /**
1088             * Returns the message-boards message local service.
1089             *
1090             * @return the message-boards message local service
1091             */
1092            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
1093                    return mbMessageLocalService;
1094            }
1095    
1096            /**
1097             * Sets the message-boards message local service.
1098             *
1099             * @param mbMessageLocalService the message-boards message local service
1100             */
1101            public void setMBMessageLocalService(
1102                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1103                    this.mbMessageLocalService = mbMessageLocalService;
1104            }
1105    
1106            /**
1107             * Returns the message-boards message remote service.
1108             *
1109             * @return the message-boards message remote service
1110             */
1111            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1112                    return mbMessageService;
1113            }
1114    
1115            /**
1116             * Sets the message-boards message remote service.
1117             *
1118             * @param mbMessageService the message-boards message remote service
1119             */
1120            public void setMBMessageService(
1121                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1122                    this.mbMessageService = mbMessageService;
1123            }
1124    
1125            /**
1126             * Returns the message-boards message persistence.
1127             *
1128             * @return the message-boards message persistence
1129             */
1130            public MBMessagePersistence getMBMessagePersistence() {
1131                    return mbMessagePersistence;
1132            }
1133    
1134            /**
1135             * Sets the message-boards message persistence.
1136             *
1137             * @param mbMessagePersistence the message-boards message persistence
1138             */
1139            public void setMBMessagePersistence(
1140                    MBMessagePersistence mbMessagePersistence) {
1141                    this.mbMessagePersistence = mbMessagePersistence;
1142            }
1143    
1144            /**
1145             * Returns the message-boards message finder.
1146             *
1147             * @return the message-boards message finder
1148             */
1149            public MBMessageFinder getMBMessageFinder() {
1150                    return mbMessageFinder;
1151            }
1152    
1153            /**
1154             * Sets the message-boards message finder.
1155             *
1156             * @param mbMessageFinder the message-boards message finder
1157             */
1158            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1159                    this.mbMessageFinder = mbMessageFinder;
1160            }
1161    
1162            /**
1163             * Returns the message boards thread local service.
1164             *
1165             * @return the message boards thread local service
1166             */
1167            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
1168                    return mbThreadLocalService;
1169            }
1170    
1171            /**
1172             * Sets the message boards thread local service.
1173             *
1174             * @param mbThreadLocalService the message boards thread local service
1175             */
1176            public void setMBThreadLocalService(
1177                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
1178                    this.mbThreadLocalService = mbThreadLocalService;
1179            }
1180    
1181            /**
1182             * Returns the message boards thread remote service.
1183             *
1184             * @return the message boards thread remote service
1185             */
1186            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
1187                    return mbThreadService;
1188            }
1189    
1190            /**
1191             * Sets the message boards thread remote service.
1192             *
1193             * @param mbThreadService the message boards thread remote service
1194             */
1195            public void setMBThreadService(
1196                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
1197                    this.mbThreadService = mbThreadService;
1198            }
1199    
1200            /**
1201             * Returns the message boards thread persistence.
1202             *
1203             * @return the message boards thread persistence
1204             */
1205            public MBThreadPersistence getMBThreadPersistence() {
1206                    return mbThreadPersistence;
1207            }
1208    
1209            /**
1210             * Sets the message boards thread persistence.
1211             *
1212             * @param mbThreadPersistence the message boards thread persistence
1213             */
1214            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
1215                    this.mbThreadPersistence = mbThreadPersistence;
1216            }
1217    
1218            /**
1219             * Returns the message boards thread finder.
1220             *
1221             * @return the message boards thread finder
1222             */
1223            public MBThreadFinder getMBThreadFinder() {
1224                    return mbThreadFinder;
1225            }
1226    
1227            /**
1228             * Sets the message boards thread finder.
1229             *
1230             * @param mbThreadFinder the message boards thread finder
1231             */
1232            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
1233                    this.mbThreadFinder = mbThreadFinder;
1234            }
1235    
1236            public void afterPropertiesSet() {
1237                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBCategory",
1238                            mbCategoryLocalService);
1239            }
1240    
1241            public void destroy() {
1242                    persistedModelLocalServiceRegistry.unregister(
1243                            "com.liferay.portlet.messageboards.model.MBCategory");
1244            }
1245    
1246            /**
1247             * Returns the Spring bean ID for this bean.
1248             *
1249             * @return the Spring bean ID for this bean
1250             */
1251            @Override
1252            public String getBeanIdentifier() {
1253                    return _beanIdentifier;
1254            }
1255    
1256            /**
1257             * Sets the Spring bean ID for this bean.
1258             *
1259             * @param beanIdentifier the Spring bean ID for this bean
1260             */
1261            @Override
1262            public void setBeanIdentifier(String beanIdentifier) {
1263                    _beanIdentifier = beanIdentifier;
1264            }
1265    
1266            protected Class<?> getModelClass() {
1267                    return MBCategory.class;
1268            }
1269    
1270            protected String getModelClassName() {
1271                    return MBCategory.class.getName();
1272            }
1273    
1274            /**
1275             * Performs a SQL query.
1276             *
1277             * @param sql the sql query
1278             */
1279            protected void runSQL(String sql) {
1280                    try {
1281                            DataSource dataSource = mbCategoryPersistence.getDataSource();
1282    
1283                            DB db = DBFactoryUtil.getDB();
1284    
1285                            sql = db.buildSQL(sql);
1286                            sql = PortalUtil.transformSQL(sql);
1287    
1288                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1289                                            sql, new int[0]);
1290    
1291                            sqlUpdate.update();
1292                    }
1293                    catch (Exception e) {
1294                            throw new SystemException(e);
1295                    }
1296            }
1297    
1298            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1299            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1300            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1301            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1302            @BeanReference(type = MBCategoryPersistence.class)
1303            protected MBCategoryPersistence mbCategoryPersistence;
1304            @BeanReference(type = MBCategoryFinder.class)
1305            protected MBCategoryFinder mbCategoryFinder;
1306            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1307            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1308            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1309            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1310            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1311            protected com.liferay.portal.service.GroupService groupService;
1312            @BeanReference(type = GroupPersistence.class)
1313            protected GroupPersistence groupPersistence;
1314            @BeanReference(type = GroupFinder.class)
1315            protected GroupFinder groupFinder;
1316            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1317            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1318            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1319            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1320            @BeanReference(type = SubscriptionPersistence.class)
1321            protected SubscriptionPersistence subscriptionPersistence;
1322            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1323            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1324            @BeanReference(type = SystemEventPersistence.class)
1325            protected SystemEventPersistence systemEventPersistence;
1326            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1327            protected com.liferay.portal.service.UserLocalService userLocalService;
1328            @BeanReference(type = com.liferay.portal.service.UserService.class)
1329            protected com.liferay.portal.service.UserService userService;
1330            @BeanReference(type = UserPersistence.class)
1331            protected UserPersistence userPersistence;
1332            @BeanReference(type = UserFinder.class)
1333            protected UserFinder userFinder;
1334            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1335            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1336            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1337            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1338            @BeanReference(type = AssetEntryPersistence.class)
1339            protected AssetEntryPersistence assetEntryPersistence;
1340            @BeanReference(type = AssetEntryFinder.class)
1341            protected AssetEntryFinder assetEntryFinder;
1342            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1343            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1344            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1345            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1346            @BeanReference(type = AssetTagPersistence.class)
1347            protected AssetTagPersistence assetTagPersistence;
1348            @BeanReference(type = AssetTagFinder.class)
1349            protected AssetTagFinder assetTagFinder;
1350            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1351            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1352            @BeanReference(type = ExpandoRowPersistence.class)
1353            protected ExpandoRowPersistence expandoRowPersistence;
1354            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1355            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1356            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1357            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1358            @BeanReference(type = TrashEntryPersistence.class)
1359            protected TrashEntryPersistence trashEntryPersistence;
1360            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1361            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1362            @BeanReference(type = TrashVersionPersistence.class)
1363            protected TrashVersionPersistence trashVersionPersistence;
1364            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1365            protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1366            @BeanReference(type = MBMailingListPersistence.class)
1367            protected MBMailingListPersistence mbMailingListPersistence;
1368            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1369            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1370            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1371            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1372            @BeanReference(type = MBMessagePersistence.class)
1373            protected MBMessagePersistence mbMessagePersistence;
1374            @BeanReference(type = MBMessageFinder.class)
1375            protected MBMessageFinder mbMessageFinder;
1376            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1377            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1378            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1379            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1380            @BeanReference(type = MBThreadPersistence.class)
1381            protected MBThreadPersistence mbThreadPersistence;
1382            @BeanReference(type = MBThreadFinder.class)
1383            protected MBThreadFinder mbThreadFinder;
1384            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1385            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1386            private String _beanIdentifier;
1387    }