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.portal.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.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.model.Subscription;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.SubscriptionLocalService;
040    import com.liferay.portal.service.persistence.ClassNamePersistence;
041    import com.liferay.portal.service.persistence.SubscriptionPersistence;
042    import com.liferay.portal.service.persistence.UserFinder;
043    import com.liferay.portal.service.persistence.UserPersistence;
044    import com.liferay.portal.util.PortalUtil;
045    
046    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
047    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
048    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
049    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
050    
051    import java.io.Serializable;
052    
053    import java.util.List;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * Provides the base implementation for the subscription local service.
059     *
060     * <p>
061     * 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.portal.service.impl.SubscriptionLocalServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portal.service.impl.SubscriptionLocalServiceImpl
066     * @see com.liferay.portal.service.SubscriptionLocalServiceUtil
067     * @generated
068     */
069    @ProviderType
070    public abstract class SubscriptionLocalServiceBaseImpl
071            extends BaseLocalServiceImpl implements SubscriptionLocalService,
072                    IdentifiableBean {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.SubscriptionLocalServiceUtil} to access the subscription local service.
077             */
078    
079            /**
080             * Adds the subscription to the database. Also notifies the appropriate model listeners.
081             *
082             * @param subscription the subscription
083             * @return the subscription that was added
084             */
085            @Indexable(type = IndexableType.REINDEX)
086            @Override
087            public Subscription addSubscription(Subscription subscription) {
088                    subscription.setNew(true);
089    
090                    return subscriptionPersistence.update(subscription);
091            }
092    
093            /**
094             * Creates a new subscription with the primary key. Does not add the subscription to the database.
095             *
096             * @param subscriptionId the primary key for the new subscription
097             * @return the new subscription
098             */
099            @Override
100            public Subscription createSubscription(long subscriptionId) {
101                    return subscriptionPersistence.create(subscriptionId);
102            }
103    
104            /**
105             * Deletes the subscription with the primary key from the database. Also notifies the appropriate model listeners.
106             *
107             * @param subscriptionId the primary key of the subscription
108             * @return the subscription that was removed
109             * @throws PortalException if a subscription with the primary key could not be found
110             */
111            @Indexable(type = IndexableType.DELETE)
112            @Override
113            public Subscription deleteSubscription(long subscriptionId)
114                    throws PortalException {
115                    return subscriptionPersistence.remove(subscriptionId);
116            }
117    
118            /**
119             * Deletes the subscription from the database. Also notifies the appropriate model listeners.
120             *
121             * @param subscription the subscription
122             * @return the subscription that was removed
123             * @throws PortalException
124             */
125            @Indexable(type = IndexableType.DELETE)
126            @Override
127            public Subscription deleteSubscription(Subscription subscription)
128                    throws PortalException {
129                    return subscriptionPersistence.remove(subscription);
130            }
131    
132            @Override
133            public DynamicQuery dynamicQuery() {
134                    Class<?> clazz = getClass();
135    
136                    return DynamicQueryFactoryUtil.forClass(Subscription.class,
137                            clazz.getClassLoader());
138            }
139    
140            /**
141             * Performs a dynamic query on the database and returns the matching rows.
142             *
143             * @param dynamicQuery the dynamic query
144             * @return the matching rows
145             */
146            @Override
147            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
148                    return subscriptionPersistence.findWithDynamicQuery(dynamicQuery);
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns a range of the matching rows.
153             *
154             * <p>
155             * 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.portal.model.impl.SubscriptionModelImpl}. 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.
156             * </p>
157             *
158             * @param dynamicQuery the dynamic query
159             * @param start the lower bound of the range of model instances
160             * @param end the upper bound of the range of model instances (not inclusive)
161             * @return the range of matching rows
162             */
163            @Override
164            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return subscriptionPersistence.findWithDynamicQuery(dynamicQuery,
167                            start, end);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172             *
173             * <p>
174             * 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.portal.model.impl.SubscriptionModelImpl}. 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.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query
178             * @param start the lower bound of the range of model instances
179             * @param end the upper bound of the range of model instances (not inclusive)
180             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
181             * @return the ordered range of matching rows
182             */
183            @Override
184            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
185                    int end, OrderByComparator<T> orderByComparator) {
186                    return subscriptionPersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end, orderByComparator);
188            }
189    
190            /**
191             * Returns the number of rows matching the dynamic query.
192             *
193             * @param dynamicQuery the dynamic query
194             * @return the number of rows matching the dynamic query
195             */
196            @Override
197            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
198                    return subscriptionPersistence.countWithDynamicQuery(dynamicQuery);
199            }
200    
201            /**
202             * Returns the number of rows matching the dynamic query.
203             *
204             * @param dynamicQuery the dynamic query
205             * @param projection the projection to apply to the query
206             * @return the number of rows matching the dynamic query
207             */
208            @Override
209            public long dynamicQueryCount(DynamicQuery dynamicQuery,
210                    Projection projection) {
211                    return subscriptionPersistence.countWithDynamicQuery(dynamicQuery,
212                            projection);
213            }
214    
215            @Override
216            public Subscription fetchSubscription(long subscriptionId) {
217                    return subscriptionPersistence.fetchByPrimaryKey(subscriptionId);
218            }
219    
220            /**
221             * Returns the subscription with the primary key.
222             *
223             * @param subscriptionId the primary key of the subscription
224             * @return the subscription
225             * @throws PortalException if a subscription with the primary key could not be found
226             */
227            @Override
228            public Subscription getSubscription(long subscriptionId)
229                    throws PortalException {
230                    return subscriptionPersistence.findByPrimaryKey(subscriptionId);
231            }
232    
233            @Override
234            public ActionableDynamicQuery getActionableDynamicQuery() {
235                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
236    
237                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.SubscriptionLocalServiceUtil.getService());
238                    actionableDynamicQuery.setClass(Subscription.class);
239                    actionableDynamicQuery.setClassLoader(getClassLoader());
240    
241                    actionableDynamicQuery.setPrimaryKeyPropertyName("subscriptionId");
242    
243                    return actionableDynamicQuery;
244            }
245    
246            protected void initActionableDynamicQuery(
247                    ActionableDynamicQuery actionableDynamicQuery) {
248                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.SubscriptionLocalServiceUtil.getService());
249                    actionableDynamicQuery.setClass(Subscription.class);
250                    actionableDynamicQuery.setClassLoader(getClassLoader());
251    
252                    actionableDynamicQuery.setPrimaryKeyPropertyName("subscriptionId");
253            }
254    
255            /**
256             * @throws PortalException
257             */
258            @Override
259            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
260                    throws PortalException {
261                    return subscriptionLocalService.deleteSubscription((Subscription)persistedModel);
262            }
263    
264            @Override
265            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
266                    throws PortalException {
267                    return subscriptionPersistence.findByPrimaryKey(primaryKeyObj);
268            }
269    
270            /**
271             * Returns a range of all the subscriptions.
272             *
273             * <p>
274             * 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.portal.model.impl.SubscriptionModelImpl}. 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.
275             * </p>
276             *
277             * @param start the lower bound of the range of subscriptions
278             * @param end the upper bound of the range of subscriptions (not inclusive)
279             * @return the range of subscriptions
280             */
281            @Override
282            public List<Subscription> getSubscriptions(int start, int end) {
283                    return subscriptionPersistence.findAll(start, end);
284            }
285    
286            /**
287             * Returns the number of subscriptions.
288             *
289             * @return the number of subscriptions
290             */
291            @Override
292            public int getSubscriptionsCount() {
293                    return subscriptionPersistence.countAll();
294            }
295    
296            /**
297             * Updates the subscription in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
298             *
299             * @param subscription the subscription
300             * @return the subscription that was updated
301             */
302            @Indexable(type = IndexableType.REINDEX)
303            @Override
304            public Subscription updateSubscription(Subscription subscription) {
305                    return subscriptionPersistence.update(subscription);
306            }
307    
308            /**
309             * Returns the subscription local service.
310             *
311             * @return the subscription local service
312             */
313            public SubscriptionLocalService getSubscriptionLocalService() {
314                    return subscriptionLocalService;
315            }
316    
317            /**
318             * Sets the subscription local service.
319             *
320             * @param subscriptionLocalService the subscription local service
321             */
322            public void setSubscriptionLocalService(
323                    SubscriptionLocalService subscriptionLocalService) {
324                    this.subscriptionLocalService = subscriptionLocalService;
325            }
326    
327            /**
328             * Returns the subscription persistence.
329             *
330             * @return the subscription persistence
331             */
332            public SubscriptionPersistence getSubscriptionPersistence() {
333                    return subscriptionPersistence;
334            }
335    
336            /**
337             * Sets the subscription persistence.
338             *
339             * @param subscriptionPersistence the subscription persistence
340             */
341            public void setSubscriptionPersistence(
342                    SubscriptionPersistence subscriptionPersistence) {
343                    this.subscriptionPersistence = subscriptionPersistence;
344            }
345    
346            /**
347             * Returns the counter local service.
348             *
349             * @return the counter local service
350             */
351            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
352                    return counterLocalService;
353            }
354    
355            /**
356             * Sets the counter local service.
357             *
358             * @param counterLocalService the counter local service
359             */
360            public void setCounterLocalService(
361                    com.liferay.counter.service.CounterLocalService counterLocalService) {
362                    this.counterLocalService = counterLocalService;
363            }
364    
365            /**
366             * Returns the class name local service.
367             *
368             * @return the class name local service
369             */
370            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
371                    return classNameLocalService;
372            }
373    
374            /**
375             * Sets the class name local service.
376             *
377             * @param classNameLocalService the class name local service
378             */
379            public void setClassNameLocalService(
380                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
381                    this.classNameLocalService = classNameLocalService;
382            }
383    
384            /**
385             * Returns the class name remote service.
386             *
387             * @return the class name remote service
388             */
389            public com.liferay.portal.service.ClassNameService getClassNameService() {
390                    return classNameService;
391            }
392    
393            /**
394             * Sets the class name remote service.
395             *
396             * @param classNameService the class name remote service
397             */
398            public void setClassNameService(
399                    com.liferay.portal.service.ClassNameService classNameService) {
400                    this.classNameService = classNameService;
401            }
402    
403            /**
404             * Returns the class name persistence.
405             *
406             * @return the class name persistence
407             */
408            public ClassNamePersistence getClassNamePersistence() {
409                    return classNamePersistence;
410            }
411    
412            /**
413             * Sets the class name persistence.
414             *
415             * @param classNamePersistence the class name persistence
416             */
417            public void setClassNamePersistence(
418                    ClassNamePersistence classNamePersistence) {
419                    this.classNamePersistence = classNamePersistence;
420            }
421    
422            /**
423             * Returns the asset entry local service.
424             *
425             * @return the asset entry local service
426             */
427            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
428                    return assetEntryLocalService;
429            }
430    
431            /**
432             * Sets the asset entry local service.
433             *
434             * @param assetEntryLocalService the asset entry local service
435             */
436            public void setAssetEntryLocalService(
437                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
438                    this.assetEntryLocalService = assetEntryLocalService;
439            }
440    
441            /**
442             * Returns the asset entry remote service.
443             *
444             * @return the asset entry remote service
445             */
446            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
447                    return assetEntryService;
448            }
449    
450            /**
451             * Sets the asset entry remote service.
452             *
453             * @param assetEntryService the asset entry remote service
454             */
455            public void setAssetEntryService(
456                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
457                    this.assetEntryService = assetEntryService;
458            }
459    
460            /**
461             * Returns the asset entry persistence.
462             *
463             * @return the asset entry persistence
464             */
465            public AssetEntryPersistence getAssetEntryPersistence() {
466                    return assetEntryPersistence;
467            }
468    
469            /**
470             * Sets the asset entry persistence.
471             *
472             * @param assetEntryPersistence the asset entry persistence
473             */
474            public void setAssetEntryPersistence(
475                    AssetEntryPersistence assetEntryPersistence) {
476                    this.assetEntryPersistence = assetEntryPersistence;
477            }
478    
479            /**
480             * Returns the asset entry finder.
481             *
482             * @return the asset entry finder
483             */
484            public AssetEntryFinder getAssetEntryFinder() {
485                    return assetEntryFinder;
486            }
487    
488            /**
489             * Sets the asset entry finder.
490             *
491             * @param assetEntryFinder the asset entry finder
492             */
493            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
494                    this.assetEntryFinder = assetEntryFinder;
495            }
496    
497            /**
498             * Returns the message boards thread local service.
499             *
500             * @return the message boards thread local service
501             */
502            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
503                    return mbThreadLocalService;
504            }
505    
506            /**
507             * Sets the message boards thread local service.
508             *
509             * @param mbThreadLocalService the message boards thread local service
510             */
511            public void setMBThreadLocalService(
512                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
513                    this.mbThreadLocalService = mbThreadLocalService;
514            }
515    
516            /**
517             * Returns the message boards thread remote service.
518             *
519             * @return the message boards thread remote service
520             */
521            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
522                    return mbThreadService;
523            }
524    
525            /**
526             * Sets the message boards thread remote service.
527             *
528             * @param mbThreadService the message boards thread remote service
529             */
530            public void setMBThreadService(
531                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
532                    this.mbThreadService = mbThreadService;
533            }
534    
535            /**
536             * Returns the message boards thread persistence.
537             *
538             * @return the message boards thread persistence
539             */
540            public MBThreadPersistence getMBThreadPersistence() {
541                    return mbThreadPersistence;
542            }
543    
544            /**
545             * Sets the message boards thread persistence.
546             *
547             * @param mbThreadPersistence the message boards thread persistence
548             */
549            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
550                    this.mbThreadPersistence = mbThreadPersistence;
551            }
552    
553            /**
554             * Returns the message boards thread finder.
555             *
556             * @return the message boards thread finder
557             */
558            public MBThreadFinder getMBThreadFinder() {
559                    return mbThreadFinder;
560            }
561    
562            /**
563             * Sets the message boards thread finder.
564             *
565             * @param mbThreadFinder the message boards thread finder
566             */
567            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
568                    this.mbThreadFinder = mbThreadFinder;
569            }
570    
571            /**
572             * Returns the user local service.
573             *
574             * @return the user local service
575             */
576            public com.liferay.portal.service.UserLocalService getUserLocalService() {
577                    return userLocalService;
578            }
579    
580            /**
581             * Sets the user local service.
582             *
583             * @param userLocalService the user local service
584             */
585            public void setUserLocalService(
586                    com.liferay.portal.service.UserLocalService userLocalService) {
587                    this.userLocalService = userLocalService;
588            }
589    
590            /**
591             * Returns the user remote service.
592             *
593             * @return the user remote service
594             */
595            public com.liferay.portal.service.UserService getUserService() {
596                    return userService;
597            }
598    
599            /**
600             * Sets the user remote service.
601             *
602             * @param userService the user remote service
603             */
604            public void setUserService(
605                    com.liferay.portal.service.UserService userService) {
606                    this.userService = userService;
607            }
608    
609            /**
610             * Returns the user persistence.
611             *
612             * @return the user persistence
613             */
614            public UserPersistence getUserPersistence() {
615                    return userPersistence;
616            }
617    
618            /**
619             * Sets the user persistence.
620             *
621             * @param userPersistence the user persistence
622             */
623            public void setUserPersistence(UserPersistence userPersistence) {
624                    this.userPersistence = userPersistence;
625            }
626    
627            /**
628             * Returns the user finder.
629             *
630             * @return the user finder
631             */
632            public UserFinder getUserFinder() {
633                    return userFinder;
634            }
635    
636            /**
637             * Sets the user finder.
638             *
639             * @param userFinder the user finder
640             */
641            public void setUserFinder(UserFinder userFinder) {
642                    this.userFinder = userFinder;
643            }
644    
645            public void afterPropertiesSet() {
646                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Subscription",
647                            subscriptionLocalService);
648            }
649    
650            public void destroy() {
651                    persistedModelLocalServiceRegistry.unregister(
652                            "com.liferay.portal.model.Subscription");
653            }
654    
655            /**
656             * Returns the Spring bean ID for this bean.
657             *
658             * @return the Spring bean ID for this bean
659             */
660            @Override
661            public String getBeanIdentifier() {
662                    return _beanIdentifier;
663            }
664    
665            /**
666             * Sets the Spring bean ID for this bean.
667             *
668             * @param beanIdentifier the Spring bean ID for this bean
669             */
670            @Override
671            public void setBeanIdentifier(String beanIdentifier) {
672                    _beanIdentifier = beanIdentifier;
673            }
674    
675            protected Class<?> getModelClass() {
676                    return Subscription.class;
677            }
678    
679            protected String getModelClassName() {
680                    return Subscription.class.getName();
681            }
682    
683            /**
684             * Performs a SQL query.
685             *
686             * @param sql the sql query
687             */
688            protected void runSQL(String sql) {
689                    try {
690                            DataSource dataSource = subscriptionPersistence.getDataSource();
691    
692                            DB db = DBFactoryUtil.getDB();
693    
694                            sql = db.buildSQL(sql);
695                            sql = PortalUtil.transformSQL(sql);
696    
697                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
698                                            sql, new int[0]);
699    
700                            sqlUpdate.update();
701                    }
702                    catch (Exception e) {
703                            throw new SystemException(e);
704                    }
705            }
706    
707            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
708            protected SubscriptionLocalService subscriptionLocalService;
709            @BeanReference(type = SubscriptionPersistence.class)
710            protected SubscriptionPersistence subscriptionPersistence;
711            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
712            protected com.liferay.counter.service.CounterLocalService counterLocalService;
713            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
714            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
715            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
716            protected com.liferay.portal.service.ClassNameService classNameService;
717            @BeanReference(type = ClassNamePersistence.class)
718            protected ClassNamePersistence classNamePersistence;
719            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
720            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
721            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
722            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
723            @BeanReference(type = AssetEntryPersistence.class)
724            protected AssetEntryPersistence assetEntryPersistence;
725            @BeanReference(type = AssetEntryFinder.class)
726            protected AssetEntryFinder assetEntryFinder;
727            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
728            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
729            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
730            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
731            @BeanReference(type = MBThreadPersistence.class)
732            protected MBThreadPersistence mbThreadPersistence;
733            @BeanReference(type = MBThreadFinder.class)
734            protected MBThreadFinder mbThreadFinder;
735            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
736            protected com.liferay.portal.service.UserLocalService userLocalService;
737            @BeanReference(type = com.liferay.portal.service.UserService.class)
738            protected com.liferay.portal.service.UserService userService;
739            @BeanReference(type = UserPersistence.class)
740            protected UserPersistence userPersistence;
741            @BeanReference(type = UserFinder.class)
742            protected UserFinder userFinder;
743            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
744            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
745            private String _beanIdentifier;
746    }