001    /**
002     * Copyright (c) 2000-2012 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.blogs.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.CompanyLocalService;
033    import com.liferay.portal.service.CompanyService;
034    import com.liferay.portal.service.GroupLocalService;
035    import com.liferay.portal.service.GroupService;
036    import com.liferay.portal.service.ImageLocalService;
037    import com.liferay.portal.service.ImageService;
038    import com.liferay.portal.service.OrganizationLocalService;
039    import com.liferay.portal.service.OrganizationService;
040    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041    import com.liferay.portal.service.PortletPreferencesLocalService;
042    import com.liferay.portal.service.PortletPreferencesService;
043    import com.liferay.portal.service.ResourceLocalService;
044    import com.liferay.portal.service.SubscriptionLocalService;
045    import com.liferay.portal.service.UserLocalService;
046    import com.liferay.portal.service.UserService;
047    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
048    import com.liferay.portal.service.persistence.CompanyPersistence;
049    import com.liferay.portal.service.persistence.GroupFinder;
050    import com.liferay.portal.service.persistence.GroupPersistence;
051    import com.liferay.portal.service.persistence.ImagePersistence;
052    import com.liferay.portal.service.persistence.OrganizationFinder;
053    import com.liferay.portal.service.persistence.OrganizationPersistence;
054    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
055    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
056    import com.liferay.portal.service.persistence.SubscriptionPersistence;
057    import com.liferay.portal.service.persistence.UserFinder;
058    import com.liferay.portal.service.persistence.UserPersistence;
059    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
060    
061    import com.liferay.portlet.asset.service.AssetEntryLocalService;
062    import com.liferay.portlet.asset.service.AssetEntryService;
063    import com.liferay.portlet.asset.service.AssetLinkLocalService;
064    import com.liferay.portlet.asset.service.AssetTagLocalService;
065    import com.liferay.portlet.asset.service.AssetTagService;
066    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
068    import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
069    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
070    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
071    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
072    import com.liferay.portlet.blogs.model.BlogsEntry;
073    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
074    import com.liferay.portlet.blogs.service.BlogsEntryService;
075    import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
076    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
077    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
078    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
079    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
080    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
081    import com.liferay.portlet.expando.service.ExpandoValueService;
082    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
083    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
084    import com.liferay.portlet.messageboards.service.MBMessageService;
085    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
086    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
087    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
088    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
089    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
090    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
091    import com.liferay.portlet.social.service.SocialActivityLocalService;
092    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
093    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
094    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
095    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
096    import com.liferay.portlet.trash.service.TrashEntryLocalService;
097    import com.liferay.portlet.trash.service.TrashEntryService;
098    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
099    
100    import java.io.Serializable;
101    
102    import java.util.List;
103    
104    import javax.sql.DataSource;
105    
106    /**
107     * The base implementation of the blogs entry local service.
108     *
109     * <p>
110     * 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.blogs.service.impl.BlogsEntryLocalServiceImpl}.
111     * </p>
112     *
113     * @author Brian Wing Shun Chan
114     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
115     * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
116     * @generated
117     */
118    public abstract class BlogsEntryLocalServiceBaseImpl
119            extends BaseLocalServiceImpl implements BlogsEntryLocalService,
120                    IdentifiableBean {
121            /*
122             * NOTE FOR DEVELOPERS:
123             *
124             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil} to access the blogs entry local service.
125             */
126    
127            /**
128             * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
129             *
130             * @param blogsEntry the blogs entry
131             * @return the blogs entry that was added
132             * @throws SystemException if a system exception occurred
133             */
134            @Indexable(type = IndexableType.REINDEX)
135            public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
136                    throws SystemException {
137                    blogsEntry.setNew(true);
138    
139                    return blogsEntryPersistence.update(blogsEntry);
140            }
141    
142            /**
143             * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
144             *
145             * @param entryId the primary key for the new blogs entry
146             * @return the new blogs entry
147             */
148            public BlogsEntry createBlogsEntry(long entryId) {
149                    return blogsEntryPersistence.create(entryId);
150            }
151    
152            /**
153             * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
154             *
155             * @param entryId the primary key of the blogs entry
156             * @return the blogs entry that was removed
157             * @throws PortalException if a blogs entry with the primary key could not be found
158             * @throws SystemException if a system exception occurred
159             */
160            @Indexable(type = IndexableType.DELETE)
161            public BlogsEntry deleteBlogsEntry(long entryId)
162                    throws PortalException, SystemException {
163                    return blogsEntryPersistence.remove(entryId);
164            }
165    
166            /**
167             * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
168             *
169             * @param blogsEntry the blogs entry
170             * @return the blogs entry that was removed
171             * @throws SystemException if a system exception occurred
172             */
173            @Indexable(type = IndexableType.DELETE)
174            public BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
175                    throws SystemException {
176                    return blogsEntryPersistence.remove(blogsEntry);
177            }
178    
179            public DynamicQuery dynamicQuery() {
180                    Class<?> clazz = getClass();
181    
182                    return DynamicQueryFactoryUtil.forClass(BlogsEntry.class,
183                            clazz.getClassLoader());
184            }
185    
186            /**
187             * Performs a dynamic query on the database and returns the matching rows.
188             *
189             * @param dynamicQuery the dynamic query
190             * @return the matching rows
191             * @throws SystemException if a system exception occurred
192             */
193            @SuppressWarnings("rawtypes")
194            public List dynamicQuery(DynamicQuery dynamicQuery)
195                    throws SystemException {
196                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
197            }
198    
199            /**
200             * Performs a dynamic query on the database and returns a range of the matching rows.
201             *
202             * <p>
203             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
204             * </p>
205             *
206             * @param dynamicQuery the dynamic query
207             * @param start the lower bound of the range of model instances
208             * @param end the upper bound of the range of model instances (not inclusive)
209             * @return the range of matching rows
210             * @throws SystemException if a system exception occurred
211             */
212            @SuppressWarnings("rawtypes")
213            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
214                    throws SystemException {
215                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
216                            end);
217            }
218    
219            /**
220             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
221             *
222             * <p>
223             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
224             * </p>
225             *
226             * @param dynamicQuery the dynamic query
227             * @param start the lower bound of the range of model instances
228             * @param end the upper bound of the range of model instances (not inclusive)
229             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
230             * @return the ordered range of matching rows
231             * @throws SystemException if a system exception occurred
232             */
233            @SuppressWarnings("rawtypes")
234            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
235                    OrderByComparator orderByComparator) throws SystemException {
236                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
237                            end, orderByComparator);
238            }
239    
240            /**
241             * Returns the number of rows that match the dynamic query.
242             *
243             * @param dynamicQuery the dynamic query
244             * @return the number of rows that match the dynamic query
245             * @throws SystemException if a system exception occurred
246             */
247            public long dynamicQueryCount(DynamicQuery dynamicQuery)
248                    throws SystemException {
249                    return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery);
250            }
251    
252            public BlogsEntry fetchBlogsEntry(long entryId) throws SystemException {
253                    return blogsEntryPersistence.fetchByPrimaryKey(entryId);
254            }
255    
256            /**
257             * Returns the blogs entry with the primary key.
258             *
259             * @param entryId the primary key of the blogs entry
260             * @return the blogs entry
261             * @throws PortalException if a blogs entry with the primary key could not be found
262             * @throws SystemException if a system exception occurred
263             */
264            public BlogsEntry getBlogsEntry(long entryId)
265                    throws PortalException, SystemException {
266                    return blogsEntryPersistence.findByPrimaryKey(entryId);
267            }
268    
269            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
270                    throws PortalException, SystemException {
271                    return blogsEntryPersistence.findByPrimaryKey(primaryKeyObj);
272            }
273    
274            /**
275             * Returns the blogs entry with the UUID in the group.
276             *
277             * @param uuid the UUID of blogs entry
278             * @param groupId the group id of the blogs entry
279             * @return the blogs entry
280             * @throws PortalException if a blogs entry with the UUID in the group could not be found
281             * @throws SystemException if a system exception occurred
282             */
283            public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
284                    throws PortalException, SystemException {
285                    return blogsEntryPersistence.findByUUID_G(uuid, groupId);
286            }
287    
288            /**
289             * Returns a range of all the blogs entries.
290             *
291             * <p>
292             * 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.blogs.model.impl.BlogsEntryModelImpl}. 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.
293             * </p>
294             *
295             * @param start the lower bound of the range of blogs entries
296             * @param end the upper bound of the range of blogs entries (not inclusive)
297             * @return the range of blogs entries
298             * @throws SystemException if a system exception occurred
299             */
300            public List<BlogsEntry> getBlogsEntries(int start, int end)
301                    throws SystemException {
302                    return blogsEntryPersistence.findAll(start, end);
303            }
304    
305            /**
306             * Returns the number of blogs entries.
307             *
308             * @return the number of blogs entries
309             * @throws SystemException if a system exception occurred
310             */
311            public int getBlogsEntriesCount() throws SystemException {
312                    return blogsEntryPersistence.countAll();
313            }
314    
315            /**
316             * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
317             *
318             * @param blogsEntry the blogs entry
319             * @return the blogs entry that was updated
320             * @throws SystemException if a system exception occurred
321             */
322            @Indexable(type = IndexableType.REINDEX)
323            public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
324                    throws SystemException {
325                    return blogsEntryPersistence.update(blogsEntry);
326            }
327    
328            /**
329             * Returns the blogs entry local service.
330             *
331             * @return the blogs entry local service
332             */
333            public BlogsEntryLocalService getBlogsEntryLocalService() {
334                    return blogsEntryLocalService;
335            }
336    
337            /**
338             * Sets the blogs entry local service.
339             *
340             * @param blogsEntryLocalService the blogs entry local service
341             */
342            public void setBlogsEntryLocalService(
343                    BlogsEntryLocalService blogsEntryLocalService) {
344                    this.blogsEntryLocalService = blogsEntryLocalService;
345            }
346    
347            /**
348             * Returns the blogs entry remote service.
349             *
350             * @return the blogs entry remote service
351             */
352            public BlogsEntryService getBlogsEntryService() {
353                    return blogsEntryService;
354            }
355    
356            /**
357             * Sets the blogs entry remote service.
358             *
359             * @param blogsEntryService the blogs entry remote service
360             */
361            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
362                    this.blogsEntryService = blogsEntryService;
363            }
364    
365            /**
366             * Returns the blogs entry persistence.
367             *
368             * @return the blogs entry persistence
369             */
370            public BlogsEntryPersistence getBlogsEntryPersistence() {
371                    return blogsEntryPersistence;
372            }
373    
374            /**
375             * Sets the blogs entry persistence.
376             *
377             * @param blogsEntryPersistence the blogs entry persistence
378             */
379            public void setBlogsEntryPersistence(
380                    BlogsEntryPersistence blogsEntryPersistence) {
381                    this.blogsEntryPersistence = blogsEntryPersistence;
382            }
383    
384            /**
385             * Returns the blogs entry finder.
386             *
387             * @return the blogs entry finder
388             */
389            public BlogsEntryFinder getBlogsEntryFinder() {
390                    return blogsEntryFinder;
391            }
392    
393            /**
394             * Sets the blogs entry finder.
395             *
396             * @param blogsEntryFinder the blogs entry finder
397             */
398            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
399                    this.blogsEntryFinder = blogsEntryFinder;
400            }
401    
402            /**
403             * Returns the blogs stats user local service.
404             *
405             * @return the blogs stats user local service
406             */
407            public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
408                    return blogsStatsUserLocalService;
409            }
410    
411            /**
412             * Sets the blogs stats user local service.
413             *
414             * @param blogsStatsUserLocalService the blogs stats user local service
415             */
416            public void setBlogsStatsUserLocalService(
417                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
418                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
419            }
420    
421            /**
422             * Returns the blogs stats user persistence.
423             *
424             * @return the blogs stats user persistence
425             */
426            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
427                    return blogsStatsUserPersistence;
428            }
429    
430            /**
431             * Sets the blogs stats user persistence.
432             *
433             * @param blogsStatsUserPersistence the blogs stats user persistence
434             */
435            public void setBlogsStatsUserPersistence(
436                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
437                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
438            }
439    
440            /**
441             * Returns the blogs stats user finder.
442             *
443             * @return the blogs stats user finder
444             */
445            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
446                    return blogsStatsUserFinder;
447            }
448    
449            /**
450             * Sets the blogs stats user finder.
451             *
452             * @param blogsStatsUserFinder the blogs stats user finder
453             */
454            public void setBlogsStatsUserFinder(
455                    BlogsStatsUserFinder blogsStatsUserFinder) {
456                    this.blogsStatsUserFinder = blogsStatsUserFinder;
457            }
458    
459            /**
460             * Returns the counter local service.
461             *
462             * @return the counter local service
463             */
464            public CounterLocalService getCounterLocalService() {
465                    return counterLocalService;
466            }
467    
468            /**
469             * Sets the counter local service.
470             *
471             * @param counterLocalService the counter local service
472             */
473            public void setCounterLocalService(CounterLocalService counterLocalService) {
474                    this.counterLocalService = counterLocalService;
475            }
476    
477            /**
478             * Returns the company local service.
479             *
480             * @return the company local service
481             */
482            public CompanyLocalService getCompanyLocalService() {
483                    return companyLocalService;
484            }
485    
486            /**
487             * Sets the company local service.
488             *
489             * @param companyLocalService the company local service
490             */
491            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
492                    this.companyLocalService = companyLocalService;
493            }
494    
495            /**
496             * Returns the company remote service.
497             *
498             * @return the company remote service
499             */
500            public CompanyService getCompanyService() {
501                    return companyService;
502            }
503    
504            /**
505             * Sets the company remote service.
506             *
507             * @param companyService the company remote service
508             */
509            public void setCompanyService(CompanyService companyService) {
510                    this.companyService = companyService;
511            }
512    
513            /**
514             * Returns the company persistence.
515             *
516             * @return the company persistence
517             */
518            public CompanyPersistence getCompanyPersistence() {
519                    return companyPersistence;
520            }
521    
522            /**
523             * Sets the company persistence.
524             *
525             * @param companyPersistence the company persistence
526             */
527            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
528                    this.companyPersistence = companyPersistence;
529            }
530    
531            /**
532             * Returns the group local service.
533             *
534             * @return the group local service
535             */
536            public GroupLocalService getGroupLocalService() {
537                    return groupLocalService;
538            }
539    
540            /**
541             * Sets the group local service.
542             *
543             * @param groupLocalService the group local service
544             */
545            public void setGroupLocalService(GroupLocalService groupLocalService) {
546                    this.groupLocalService = groupLocalService;
547            }
548    
549            /**
550             * Returns the group remote service.
551             *
552             * @return the group remote service
553             */
554            public GroupService getGroupService() {
555                    return groupService;
556            }
557    
558            /**
559             * Sets the group remote service.
560             *
561             * @param groupService the group remote service
562             */
563            public void setGroupService(GroupService groupService) {
564                    this.groupService = groupService;
565            }
566    
567            /**
568             * Returns the group persistence.
569             *
570             * @return the group persistence
571             */
572            public GroupPersistence getGroupPersistence() {
573                    return groupPersistence;
574            }
575    
576            /**
577             * Sets the group persistence.
578             *
579             * @param groupPersistence the group persistence
580             */
581            public void setGroupPersistence(GroupPersistence groupPersistence) {
582                    this.groupPersistence = groupPersistence;
583            }
584    
585            /**
586             * Returns the group finder.
587             *
588             * @return the group finder
589             */
590            public GroupFinder getGroupFinder() {
591                    return groupFinder;
592            }
593    
594            /**
595             * Sets the group finder.
596             *
597             * @param groupFinder the group finder
598             */
599            public void setGroupFinder(GroupFinder groupFinder) {
600                    this.groupFinder = groupFinder;
601            }
602    
603            /**
604             * Returns the image local service.
605             *
606             * @return the image local service
607             */
608            public ImageLocalService getImageLocalService() {
609                    return imageLocalService;
610            }
611    
612            /**
613             * Sets the image local service.
614             *
615             * @param imageLocalService the image local service
616             */
617            public void setImageLocalService(ImageLocalService imageLocalService) {
618                    this.imageLocalService = imageLocalService;
619            }
620    
621            /**
622             * Returns the image remote service.
623             *
624             * @return the image remote service
625             */
626            public ImageService getImageService() {
627                    return imageService;
628            }
629    
630            /**
631             * Sets the image remote service.
632             *
633             * @param imageService the image remote service
634             */
635            public void setImageService(ImageService imageService) {
636                    this.imageService = imageService;
637            }
638    
639            /**
640             * Returns the image persistence.
641             *
642             * @return the image persistence
643             */
644            public ImagePersistence getImagePersistence() {
645                    return imagePersistence;
646            }
647    
648            /**
649             * Sets the image persistence.
650             *
651             * @param imagePersistence the image persistence
652             */
653            public void setImagePersistence(ImagePersistence imagePersistence) {
654                    this.imagePersistence = imagePersistence;
655            }
656    
657            /**
658             * Returns the organization local service.
659             *
660             * @return the organization local service
661             */
662            public OrganizationLocalService getOrganizationLocalService() {
663                    return organizationLocalService;
664            }
665    
666            /**
667             * Sets the organization local service.
668             *
669             * @param organizationLocalService the organization local service
670             */
671            public void setOrganizationLocalService(
672                    OrganizationLocalService organizationLocalService) {
673                    this.organizationLocalService = organizationLocalService;
674            }
675    
676            /**
677             * Returns the organization remote service.
678             *
679             * @return the organization remote service
680             */
681            public OrganizationService getOrganizationService() {
682                    return organizationService;
683            }
684    
685            /**
686             * Sets the organization remote service.
687             *
688             * @param organizationService the organization remote service
689             */
690            public void setOrganizationService(OrganizationService organizationService) {
691                    this.organizationService = organizationService;
692            }
693    
694            /**
695             * Returns the organization persistence.
696             *
697             * @return the organization persistence
698             */
699            public OrganizationPersistence getOrganizationPersistence() {
700                    return organizationPersistence;
701            }
702    
703            /**
704             * Sets the organization persistence.
705             *
706             * @param organizationPersistence the organization persistence
707             */
708            public void setOrganizationPersistence(
709                    OrganizationPersistence organizationPersistence) {
710                    this.organizationPersistence = organizationPersistence;
711            }
712    
713            /**
714             * Returns the organization finder.
715             *
716             * @return the organization finder
717             */
718            public OrganizationFinder getOrganizationFinder() {
719                    return organizationFinder;
720            }
721    
722            /**
723             * Sets the organization finder.
724             *
725             * @param organizationFinder the organization finder
726             */
727            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
728                    this.organizationFinder = organizationFinder;
729            }
730    
731            /**
732             * Returns the portlet preferences local service.
733             *
734             * @return the portlet preferences local service
735             */
736            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
737                    return portletPreferencesLocalService;
738            }
739    
740            /**
741             * Sets the portlet preferences local service.
742             *
743             * @param portletPreferencesLocalService the portlet preferences local service
744             */
745            public void setPortletPreferencesLocalService(
746                    PortletPreferencesLocalService portletPreferencesLocalService) {
747                    this.portletPreferencesLocalService = portletPreferencesLocalService;
748            }
749    
750            /**
751             * Returns the portlet preferences remote service.
752             *
753             * @return the portlet preferences remote service
754             */
755            public PortletPreferencesService getPortletPreferencesService() {
756                    return portletPreferencesService;
757            }
758    
759            /**
760             * Sets the portlet preferences remote service.
761             *
762             * @param portletPreferencesService the portlet preferences remote service
763             */
764            public void setPortletPreferencesService(
765                    PortletPreferencesService portletPreferencesService) {
766                    this.portletPreferencesService = portletPreferencesService;
767            }
768    
769            /**
770             * Returns the portlet preferences persistence.
771             *
772             * @return the portlet preferences persistence
773             */
774            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
775                    return portletPreferencesPersistence;
776            }
777    
778            /**
779             * Sets the portlet preferences persistence.
780             *
781             * @param portletPreferencesPersistence the portlet preferences persistence
782             */
783            public void setPortletPreferencesPersistence(
784                    PortletPreferencesPersistence portletPreferencesPersistence) {
785                    this.portletPreferencesPersistence = portletPreferencesPersistence;
786            }
787    
788            /**
789             * Returns the portlet preferences finder.
790             *
791             * @return the portlet preferences finder
792             */
793            public PortletPreferencesFinder getPortletPreferencesFinder() {
794                    return portletPreferencesFinder;
795            }
796    
797            /**
798             * Sets the portlet preferences finder.
799             *
800             * @param portletPreferencesFinder the portlet preferences finder
801             */
802            public void setPortletPreferencesFinder(
803                    PortletPreferencesFinder portletPreferencesFinder) {
804                    this.portletPreferencesFinder = portletPreferencesFinder;
805            }
806    
807            /**
808             * Returns the resource local service.
809             *
810             * @return the resource local service
811             */
812            public ResourceLocalService getResourceLocalService() {
813                    return resourceLocalService;
814            }
815    
816            /**
817             * Sets the resource local service.
818             *
819             * @param resourceLocalService the resource local service
820             */
821            public void setResourceLocalService(
822                    ResourceLocalService resourceLocalService) {
823                    this.resourceLocalService = resourceLocalService;
824            }
825    
826            /**
827             * Returns the subscription local service.
828             *
829             * @return the subscription local service
830             */
831            public SubscriptionLocalService getSubscriptionLocalService() {
832                    return subscriptionLocalService;
833            }
834    
835            /**
836             * Sets the subscription local service.
837             *
838             * @param subscriptionLocalService the subscription local service
839             */
840            public void setSubscriptionLocalService(
841                    SubscriptionLocalService subscriptionLocalService) {
842                    this.subscriptionLocalService = subscriptionLocalService;
843            }
844    
845            /**
846             * Returns the subscription persistence.
847             *
848             * @return the subscription persistence
849             */
850            public SubscriptionPersistence getSubscriptionPersistence() {
851                    return subscriptionPersistence;
852            }
853    
854            /**
855             * Sets the subscription persistence.
856             *
857             * @param subscriptionPersistence the subscription persistence
858             */
859            public void setSubscriptionPersistence(
860                    SubscriptionPersistence subscriptionPersistence) {
861                    this.subscriptionPersistence = subscriptionPersistence;
862            }
863    
864            /**
865             * Returns the user local service.
866             *
867             * @return the user local service
868             */
869            public UserLocalService getUserLocalService() {
870                    return userLocalService;
871            }
872    
873            /**
874             * Sets the user local service.
875             *
876             * @param userLocalService the user local service
877             */
878            public void setUserLocalService(UserLocalService userLocalService) {
879                    this.userLocalService = userLocalService;
880            }
881    
882            /**
883             * Returns the user remote service.
884             *
885             * @return the user remote service
886             */
887            public UserService getUserService() {
888                    return userService;
889            }
890    
891            /**
892             * Sets the user remote service.
893             *
894             * @param userService the user remote service
895             */
896            public void setUserService(UserService userService) {
897                    this.userService = userService;
898            }
899    
900            /**
901             * Returns the user persistence.
902             *
903             * @return the user persistence
904             */
905            public UserPersistence getUserPersistence() {
906                    return userPersistence;
907            }
908    
909            /**
910             * Sets the user persistence.
911             *
912             * @param userPersistence the user persistence
913             */
914            public void setUserPersistence(UserPersistence userPersistence) {
915                    this.userPersistence = userPersistence;
916            }
917    
918            /**
919             * Returns the user finder.
920             *
921             * @return the user finder
922             */
923            public UserFinder getUserFinder() {
924                    return userFinder;
925            }
926    
927            /**
928             * Sets the user finder.
929             *
930             * @param userFinder the user finder
931             */
932            public void setUserFinder(UserFinder userFinder) {
933                    this.userFinder = userFinder;
934            }
935    
936            /**
937             * Returns the workflow instance link local service.
938             *
939             * @return the workflow instance link local service
940             */
941            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
942                    return workflowInstanceLinkLocalService;
943            }
944    
945            /**
946             * Sets the workflow instance link local service.
947             *
948             * @param workflowInstanceLinkLocalService the workflow instance link local service
949             */
950            public void setWorkflowInstanceLinkLocalService(
951                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
952                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
953            }
954    
955            /**
956             * Returns the workflow instance link persistence.
957             *
958             * @return the workflow instance link persistence
959             */
960            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
961                    return workflowInstanceLinkPersistence;
962            }
963    
964            /**
965             * Sets the workflow instance link persistence.
966             *
967             * @param workflowInstanceLinkPersistence the workflow instance link persistence
968             */
969            public void setWorkflowInstanceLinkPersistence(
970                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
971                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
972            }
973    
974            /**
975             * Returns the asset entry local service.
976             *
977             * @return the asset entry local service
978             */
979            public AssetEntryLocalService getAssetEntryLocalService() {
980                    return assetEntryLocalService;
981            }
982    
983            /**
984             * Sets the asset entry local service.
985             *
986             * @param assetEntryLocalService the asset entry local service
987             */
988            public void setAssetEntryLocalService(
989                    AssetEntryLocalService assetEntryLocalService) {
990                    this.assetEntryLocalService = assetEntryLocalService;
991            }
992    
993            /**
994             * Returns the asset entry remote service.
995             *
996             * @return the asset entry remote service
997             */
998            public AssetEntryService getAssetEntryService() {
999                    return assetEntryService;
1000            }
1001    
1002            /**
1003             * Sets the asset entry remote service.
1004             *
1005             * @param assetEntryService the asset entry remote service
1006             */
1007            public void setAssetEntryService(AssetEntryService assetEntryService) {
1008                    this.assetEntryService = assetEntryService;
1009            }
1010    
1011            /**
1012             * Returns the asset entry persistence.
1013             *
1014             * @return the asset entry persistence
1015             */
1016            public AssetEntryPersistence getAssetEntryPersistence() {
1017                    return assetEntryPersistence;
1018            }
1019    
1020            /**
1021             * Sets the asset entry persistence.
1022             *
1023             * @param assetEntryPersistence the asset entry persistence
1024             */
1025            public void setAssetEntryPersistence(
1026                    AssetEntryPersistence assetEntryPersistence) {
1027                    this.assetEntryPersistence = assetEntryPersistence;
1028            }
1029    
1030            /**
1031             * Returns the asset entry finder.
1032             *
1033             * @return the asset entry finder
1034             */
1035            public AssetEntryFinder getAssetEntryFinder() {
1036                    return assetEntryFinder;
1037            }
1038    
1039            /**
1040             * Sets the asset entry finder.
1041             *
1042             * @param assetEntryFinder the asset entry finder
1043             */
1044            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1045                    this.assetEntryFinder = assetEntryFinder;
1046            }
1047    
1048            /**
1049             * Returns the asset link local service.
1050             *
1051             * @return the asset link local service
1052             */
1053            public AssetLinkLocalService getAssetLinkLocalService() {
1054                    return assetLinkLocalService;
1055            }
1056    
1057            /**
1058             * Sets the asset link local service.
1059             *
1060             * @param assetLinkLocalService the asset link local service
1061             */
1062            public void setAssetLinkLocalService(
1063                    AssetLinkLocalService assetLinkLocalService) {
1064                    this.assetLinkLocalService = assetLinkLocalService;
1065            }
1066    
1067            /**
1068             * Returns the asset link persistence.
1069             *
1070             * @return the asset link persistence
1071             */
1072            public AssetLinkPersistence getAssetLinkPersistence() {
1073                    return assetLinkPersistence;
1074            }
1075    
1076            /**
1077             * Sets the asset link persistence.
1078             *
1079             * @param assetLinkPersistence the asset link persistence
1080             */
1081            public void setAssetLinkPersistence(
1082                    AssetLinkPersistence assetLinkPersistence) {
1083                    this.assetLinkPersistence = assetLinkPersistence;
1084            }
1085    
1086            /**
1087             * Returns the asset link finder.
1088             *
1089             * @return the asset link finder
1090             */
1091            public AssetLinkFinder getAssetLinkFinder() {
1092                    return assetLinkFinder;
1093            }
1094    
1095            /**
1096             * Sets the asset link finder.
1097             *
1098             * @param assetLinkFinder the asset link finder
1099             */
1100            public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
1101                    this.assetLinkFinder = assetLinkFinder;
1102            }
1103    
1104            /**
1105             * Returns the asset tag local service.
1106             *
1107             * @return the asset tag local service
1108             */
1109            public AssetTagLocalService getAssetTagLocalService() {
1110                    return assetTagLocalService;
1111            }
1112    
1113            /**
1114             * Sets the asset tag local service.
1115             *
1116             * @param assetTagLocalService the asset tag local service
1117             */
1118            public void setAssetTagLocalService(
1119                    AssetTagLocalService assetTagLocalService) {
1120                    this.assetTagLocalService = assetTagLocalService;
1121            }
1122    
1123            /**
1124             * Returns the asset tag remote service.
1125             *
1126             * @return the asset tag remote service
1127             */
1128            public AssetTagService getAssetTagService() {
1129                    return assetTagService;
1130            }
1131    
1132            /**
1133             * Sets the asset tag remote service.
1134             *
1135             * @param assetTagService the asset tag remote service
1136             */
1137            public void setAssetTagService(AssetTagService assetTagService) {
1138                    this.assetTagService = assetTagService;
1139            }
1140    
1141            /**
1142             * Returns the asset tag persistence.
1143             *
1144             * @return the asset tag persistence
1145             */
1146            public AssetTagPersistence getAssetTagPersistence() {
1147                    return assetTagPersistence;
1148            }
1149    
1150            /**
1151             * Sets the asset tag persistence.
1152             *
1153             * @param assetTagPersistence the asset tag persistence
1154             */
1155            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1156                    this.assetTagPersistence = assetTagPersistence;
1157            }
1158    
1159            /**
1160             * Returns the asset tag finder.
1161             *
1162             * @return the asset tag finder
1163             */
1164            public AssetTagFinder getAssetTagFinder() {
1165                    return assetTagFinder;
1166            }
1167    
1168            /**
1169             * Sets the asset tag finder.
1170             *
1171             * @param assetTagFinder the asset tag finder
1172             */
1173            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1174                    this.assetTagFinder = assetTagFinder;
1175            }
1176    
1177            /**
1178             * Returns the expando value local service.
1179             *
1180             * @return the expando value local service
1181             */
1182            public ExpandoValueLocalService getExpandoValueLocalService() {
1183                    return expandoValueLocalService;
1184            }
1185    
1186            /**
1187             * Sets the expando value local service.
1188             *
1189             * @param expandoValueLocalService the expando value local service
1190             */
1191            public void setExpandoValueLocalService(
1192                    ExpandoValueLocalService expandoValueLocalService) {
1193                    this.expandoValueLocalService = expandoValueLocalService;
1194            }
1195    
1196            /**
1197             * Returns the expando value remote service.
1198             *
1199             * @return the expando value remote service
1200             */
1201            public ExpandoValueService getExpandoValueService() {
1202                    return expandoValueService;
1203            }
1204    
1205            /**
1206             * Sets the expando value remote service.
1207             *
1208             * @param expandoValueService the expando value remote service
1209             */
1210            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1211                    this.expandoValueService = expandoValueService;
1212            }
1213    
1214            /**
1215             * Returns the expando value persistence.
1216             *
1217             * @return the expando value persistence
1218             */
1219            public ExpandoValuePersistence getExpandoValuePersistence() {
1220                    return expandoValuePersistence;
1221            }
1222    
1223            /**
1224             * Sets the expando value persistence.
1225             *
1226             * @param expandoValuePersistence the expando value persistence
1227             */
1228            public void setExpandoValuePersistence(
1229                    ExpandoValuePersistence expandoValuePersistence) {
1230                    this.expandoValuePersistence = expandoValuePersistence;
1231            }
1232    
1233            /**
1234             * Returns the message-boards message local service.
1235             *
1236             * @return the message-boards message local service
1237             */
1238            public MBMessageLocalService getMBMessageLocalService() {
1239                    return mbMessageLocalService;
1240            }
1241    
1242            /**
1243             * Sets the message-boards message local service.
1244             *
1245             * @param mbMessageLocalService the message-boards message local service
1246             */
1247            public void setMBMessageLocalService(
1248                    MBMessageLocalService mbMessageLocalService) {
1249                    this.mbMessageLocalService = mbMessageLocalService;
1250            }
1251    
1252            /**
1253             * Returns the message-boards message remote service.
1254             *
1255             * @return the message-boards message remote service
1256             */
1257            public MBMessageService getMBMessageService() {
1258                    return mbMessageService;
1259            }
1260    
1261            /**
1262             * Sets the message-boards message remote service.
1263             *
1264             * @param mbMessageService the message-boards message remote service
1265             */
1266            public void setMBMessageService(MBMessageService mbMessageService) {
1267                    this.mbMessageService = mbMessageService;
1268            }
1269    
1270            /**
1271             * Returns the message-boards message persistence.
1272             *
1273             * @return the message-boards message persistence
1274             */
1275            public MBMessagePersistence getMBMessagePersistence() {
1276                    return mbMessagePersistence;
1277            }
1278    
1279            /**
1280             * Sets the message-boards message persistence.
1281             *
1282             * @param mbMessagePersistence the message-boards message persistence
1283             */
1284            public void setMBMessagePersistence(
1285                    MBMessagePersistence mbMessagePersistence) {
1286                    this.mbMessagePersistence = mbMessagePersistence;
1287            }
1288    
1289            /**
1290             * Returns the message-boards message finder.
1291             *
1292             * @return the message-boards message finder
1293             */
1294            public MBMessageFinder getMBMessageFinder() {
1295                    return mbMessageFinder;
1296            }
1297    
1298            /**
1299             * Sets the message-boards message finder.
1300             *
1301             * @param mbMessageFinder the message-boards message finder
1302             */
1303            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1304                    this.mbMessageFinder = mbMessageFinder;
1305            }
1306    
1307            /**
1308             * Returns the ratings stats local service.
1309             *
1310             * @return the ratings stats local service
1311             */
1312            public RatingsStatsLocalService getRatingsStatsLocalService() {
1313                    return ratingsStatsLocalService;
1314            }
1315    
1316            /**
1317             * Sets the ratings stats local service.
1318             *
1319             * @param ratingsStatsLocalService the ratings stats local service
1320             */
1321            public void setRatingsStatsLocalService(
1322                    RatingsStatsLocalService ratingsStatsLocalService) {
1323                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1324            }
1325    
1326            /**
1327             * Returns the ratings stats persistence.
1328             *
1329             * @return the ratings stats persistence
1330             */
1331            public RatingsStatsPersistence getRatingsStatsPersistence() {
1332                    return ratingsStatsPersistence;
1333            }
1334    
1335            /**
1336             * Sets the ratings stats persistence.
1337             *
1338             * @param ratingsStatsPersistence the ratings stats persistence
1339             */
1340            public void setRatingsStatsPersistence(
1341                    RatingsStatsPersistence ratingsStatsPersistence) {
1342                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1343            }
1344    
1345            /**
1346             * Returns the ratings stats finder.
1347             *
1348             * @return the ratings stats finder
1349             */
1350            public RatingsStatsFinder getRatingsStatsFinder() {
1351                    return ratingsStatsFinder;
1352            }
1353    
1354            /**
1355             * Sets the ratings stats finder.
1356             *
1357             * @param ratingsStatsFinder the ratings stats finder
1358             */
1359            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1360                    this.ratingsStatsFinder = ratingsStatsFinder;
1361            }
1362    
1363            /**
1364             * Returns the social activity local service.
1365             *
1366             * @return the social activity local service
1367             */
1368            public SocialActivityLocalService getSocialActivityLocalService() {
1369                    return socialActivityLocalService;
1370            }
1371    
1372            /**
1373             * Sets the social activity local service.
1374             *
1375             * @param socialActivityLocalService the social activity local service
1376             */
1377            public void setSocialActivityLocalService(
1378                    SocialActivityLocalService socialActivityLocalService) {
1379                    this.socialActivityLocalService = socialActivityLocalService;
1380            }
1381    
1382            /**
1383             * Returns the social activity persistence.
1384             *
1385             * @return the social activity persistence
1386             */
1387            public SocialActivityPersistence getSocialActivityPersistence() {
1388                    return socialActivityPersistence;
1389            }
1390    
1391            /**
1392             * Sets the social activity persistence.
1393             *
1394             * @param socialActivityPersistence the social activity persistence
1395             */
1396            public void setSocialActivityPersistence(
1397                    SocialActivityPersistence socialActivityPersistence) {
1398                    this.socialActivityPersistence = socialActivityPersistence;
1399            }
1400    
1401            /**
1402             * Returns the social activity finder.
1403             *
1404             * @return the social activity finder
1405             */
1406            public SocialActivityFinder getSocialActivityFinder() {
1407                    return socialActivityFinder;
1408            }
1409    
1410            /**
1411             * Sets the social activity finder.
1412             *
1413             * @param socialActivityFinder the social activity finder
1414             */
1415            public void setSocialActivityFinder(
1416                    SocialActivityFinder socialActivityFinder) {
1417                    this.socialActivityFinder = socialActivityFinder;
1418            }
1419    
1420            /**
1421             * Returns the social activity counter local service.
1422             *
1423             * @return the social activity counter local service
1424             */
1425            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
1426                    return socialActivityCounterLocalService;
1427            }
1428    
1429            /**
1430             * Sets the social activity counter local service.
1431             *
1432             * @param socialActivityCounterLocalService the social activity counter local service
1433             */
1434            public void setSocialActivityCounterLocalService(
1435                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
1436                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
1437            }
1438    
1439            /**
1440             * Returns the social activity counter persistence.
1441             *
1442             * @return the social activity counter persistence
1443             */
1444            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
1445                    return socialActivityCounterPersistence;
1446            }
1447    
1448            /**
1449             * Sets the social activity counter persistence.
1450             *
1451             * @param socialActivityCounterPersistence the social activity counter persistence
1452             */
1453            public void setSocialActivityCounterPersistence(
1454                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
1455                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
1456            }
1457    
1458            /**
1459             * Returns the social activity counter finder.
1460             *
1461             * @return the social activity counter finder
1462             */
1463            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
1464                    return socialActivityCounterFinder;
1465            }
1466    
1467            /**
1468             * Sets the social activity counter finder.
1469             *
1470             * @param socialActivityCounterFinder the social activity counter finder
1471             */
1472            public void setSocialActivityCounterFinder(
1473                    SocialActivityCounterFinder socialActivityCounterFinder) {
1474                    this.socialActivityCounterFinder = socialActivityCounterFinder;
1475            }
1476    
1477            /**
1478             * Returns the trash entry local service.
1479             *
1480             * @return the trash entry local service
1481             */
1482            public TrashEntryLocalService getTrashEntryLocalService() {
1483                    return trashEntryLocalService;
1484            }
1485    
1486            /**
1487             * Sets the trash entry local service.
1488             *
1489             * @param trashEntryLocalService the trash entry local service
1490             */
1491            public void setTrashEntryLocalService(
1492                    TrashEntryLocalService trashEntryLocalService) {
1493                    this.trashEntryLocalService = trashEntryLocalService;
1494            }
1495    
1496            /**
1497             * Returns the trash entry remote service.
1498             *
1499             * @return the trash entry remote service
1500             */
1501            public TrashEntryService getTrashEntryService() {
1502                    return trashEntryService;
1503            }
1504    
1505            /**
1506             * Sets the trash entry remote service.
1507             *
1508             * @param trashEntryService the trash entry remote service
1509             */
1510            public void setTrashEntryService(TrashEntryService trashEntryService) {
1511                    this.trashEntryService = trashEntryService;
1512            }
1513    
1514            /**
1515             * Returns the trash entry persistence.
1516             *
1517             * @return the trash entry persistence
1518             */
1519            public TrashEntryPersistence getTrashEntryPersistence() {
1520                    return trashEntryPersistence;
1521            }
1522    
1523            /**
1524             * Sets the trash entry persistence.
1525             *
1526             * @param trashEntryPersistence the trash entry persistence
1527             */
1528            public void setTrashEntryPersistence(
1529                    TrashEntryPersistence trashEntryPersistence) {
1530                    this.trashEntryPersistence = trashEntryPersistence;
1531            }
1532    
1533            public void afterPropertiesSet() {
1534                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.blogs.model.BlogsEntry",
1535                            blogsEntryLocalService);
1536            }
1537    
1538            public void destroy() {
1539                    persistedModelLocalServiceRegistry.unregister(
1540                            "com.liferay.portlet.blogs.model.BlogsEntry");
1541            }
1542    
1543            /**
1544             * Returns the Spring bean ID for this bean.
1545             *
1546             * @return the Spring bean ID for this bean
1547             */
1548            public String getBeanIdentifier() {
1549                    return _beanIdentifier;
1550            }
1551    
1552            /**
1553             * Sets the Spring bean ID for this bean.
1554             *
1555             * @param beanIdentifier the Spring bean ID for this bean
1556             */
1557            public void setBeanIdentifier(String beanIdentifier) {
1558                    _beanIdentifier = beanIdentifier;
1559            }
1560    
1561            protected Class<?> getModelClass() {
1562                    return BlogsEntry.class;
1563            }
1564    
1565            protected String getModelClassName() {
1566                    return BlogsEntry.class.getName();
1567            }
1568    
1569            /**
1570             * Performs an SQL query.
1571             *
1572             * @param sql the sql query
1573             */
1574            protected void runSQL(String sql) throws SystemException {
1575                    try {
1576                            DataSource dataSource = blogsEntryPersistence.getDataSource();
1577    
1578                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1579                                            sql, new int[0]);
1580    
1581                            sqlUpdate.update();
1582                    }
1583                    catch (Exception e) {
1584                            throw new SystemException(e);
1585                    }
1586            }
1587    
1588            @BeanReference(type = BlogsEntryLocalService.class)
1589            protected BlogsEntryLocalService blogsEntryLocalService;
1590            @BeanReference(type = BlogsEntryService.class)
1591            protected BlogsEntryService blogsEntryService;
1592            @BeanReference(type = BlogsEntryPersistence.class)
1593            protected BlogsEntryPersistence blogsEntryPersistence;
1594            @BeanReference(type = BlogsEntryFinder.class)
1595            protected BlogsEntryFinder blogsEntryFinder;
1596            @BeanReference(type = BlogsStatsUserLocalService.class)
1597            protected BlogsStatsUserLocalService blogsStatsUserLocalService;
1598            @BeanReference(type = BlogsStatsUserPersistence.class)
1599            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1600            @BeanReference(type = BlogsStatsUserFinder.class)
1601            protected BlogsStatsUserFinder blogsStatsUserFinder;
1602            @BeanReference(type = CounterLocalService.class)
1603            protected CounterLocalService counterLocalService;
1604            @BeanReference(type = CompanyLocalService.class)
1605            protected CompanyLocalService companyLocalService;
1606            @BeanReference(type = CompanyService.class)
1607            protected CompanyService companyService;
1608            @BeanReference(type = CompanyPersistence.class)
1609            protected CompanyPersistence companyPersistence;
1610            @BeanReference(type = GroupLocalService.class)
1611            protected GroupLocalService groupLocalService;
1612            @BeanReference(type = GroupService.class)
1613            protected GroupService groupService;
1614            @BeanReference(type = GroupPersistence.class)
1615            protected GroupPersistence groupPersistence;
1616            @BeanReference(type = GroupFinder.class)
1617            protected GroupFinder groupFinder;
1618            @BeanReference(type = ImageLocalService.class)
1619            protected ImageLocalService imageLocalService;
1620            @BeanReference(type = ImageService.class)
1621            protected ImageService imageService;
1622            @BeanReference(type = ImagePersistence.class)
1623            protected ImagePersistence imagePersistence;
1624            @BeanReference(type = OrganizationLocalService.class)
1625            protected OrganizationLocalService organizationLocalService;
1626            @BeanReference(type = OrganizationService.class)
1627            protected OrganizationService organizationService;
1628            @BeanReference(type = OrganizationPersistence.class)
1629            protected OrganizationPersistence organizationPersistence;
1630            @BeanReference(type = OrganizationFinder.class)
1631            protected OrganizationFinder organizationFinder;
1632            @BeanReference(type = PortletPreferencesLocalService.class)
1633            protected PortletPreferencesLocalService portletPreferencesLocalService;
1634            @BeanReference(type = PortletPreferencesService.class)
1635            protected PortletPreferencesService portletPreferencesService;
1636            @BeanReference(type = PortletPreferencesPersistence.class)
1637            protected PortletPreferencesPersistence portletPreferencesPersistence;
1638            @BeanReference(type = PortletPreferencesFinder.class)
1639            protected PortletPreferencesFinder portletPreferencesFinder;
1640            @BeanReference(type = ResourceLocalService.class)
1641            protected ResourceLocalService resourceLocalService;
1642            @BeanReference(type = SubscriptionLocalService.class)
1643            protected SubscriptionLocalService subscriptionLocalService;
1644            @BeanReference(type = SubscriptionPersistence.class)
1645            protected SubscriptionPersistence subscriptionPersistence;
1646            @BeanReference(type = UserLocalService.class)
1647            protected UserLocalService userLocalService;
1648            @BeanReference(type = UserService.class)
1649            protected UserService userService;
1650            @BeanReference(type = UserPersistence.class)
1651            protected UserPersistence userPersistence;
1652            @BeanReference(type = UserFinder.class)
1653            protected UserFinder userFinder;
1654            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1655            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1656            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1657            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1658            @BeanReference(type = AssetEntryLocalService.class)
1659            protected AssetEntryLocalService assetEntryLocalService;
1660            @BeanReference(type = AssetEntryService.class)
1661            protected AssetEntryService assetEntryService;
1662            @BeanReference(type = AssetEntryPersistence.class)
1663            protected AssetEntryPersistence assetEntryPersistence;
1664            @BeanReference(type = AssetEntryFinder.class)
1665            protected AssetEntryFinder assetEntryFinder;
1666            @BeanReference(type = AssetLinkLocalService.class)
1667            protected AssetLinkLocalService assetLinkLocalService;
1668            @BeanReference(type = AssetLinkPersistence.class)
1669            protected AssetLinkPersistence assetLinkPersistence;
1670            @BeanReference(type = AssetLinkFinder.class)
1671            protected AssetLinkFinder assetLinkFinder;
1672            @BeanReference(type = AssetTagLocalService.class)
1673            protected AssetTagLocalService assetTagLocalService;
1674            @BeanReference(type = AssetTagService.class)
1675            protected AssetTagService assetTagService;
1676            @BeanReference(type = AssetTagPersistence.class)
1677            protected AssetTagPersistence assetTagPersistence;
1678            @BeanReference(type = AssetTagFinder.class)
1679            protected AssetTagFinder assetTagFinder;
1680            @BeanReference(type = ExpandoValueLocalService.class)
1681            protected ExpandoValueLocalService expandoValueLocalService;
1682            @BeanReference(type = ExpandoValueService.class)
1683            protected ExpandoValueService expandoValueService;
1684            @BeanReference(type = ExpandoValuePersistence.class)
1685            protected ExpandoValuePersistence expandoValuePersistence;
1686            @BeanReference(type = MBMessageLocalService.class)
1687            protected MBMessageLocalService mbMessageLocalService;
1688            @BeanReference(type = MBMessageService.class)
1689            protected MBMessageService mbMessageService;
1690            @BeanReference(type = MBMessagePersistence.class)
1691            protected MBMessagePersistence mbMessagePersistence;
1692            @BeanReference(type = MBMessageFinder.class)
1693            protected MBMessageFinder mbMessageFinder;
1694            @BeanReference(type = RatingsStatsLocalService.class)
1695            protected RatingsStatsLocalService ratingsStatsLocalService;
1696            @BeanReference(type = RatingsStatsPersistence.class)
1697            protected RatingsStatsPersistence ratingsStatsPersistence;
1698            @BeanReference(type = RatingsStatsFinder.class)
1699            protected RatingsStatsFinder ratingsStatsFinder;
1700            @BeanReference(type = SocialActivityLocalService.class)
1701            protected SocialActivityLocalService socialActivityLocalService;
1702            @BeanReference(type = SocialActivityPersistence.class)
1703            protected SocialActivityPersistence socialActivityPersistence;
1704            @BeanReference(type = SocialActivityFinder.class)
1705            protected SocialActivityFinder socialActivityFinder;
1706            @BeanReference(type = SocialActivityCounterLocalService.class)
1707            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
1708            @BeanReference(type = SocialActivityCounterPersistence.class)
1709            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1710            @BeanReference(type = SocialActivityCounterFinder.class)
1711            protected SocialActivityCounterFinder socialActivityCounterFinder;
1712            @BeanReference(type = TrashEntryLocalService.class)
1713            protected TrashEntryLocalService trashEntryLocalService;
1714            @BeanReference(type = TrashEntryService.class)
1715            protected TrashEntryService trashEntryService;
1716            @BeanReference(type = TrashEntryPersistence.class)
1717            protected TrashEntryPersistence trashEntryPersistence;
1718            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1719            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1720            private String _beanIdentifier;
1721    }