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