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