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