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.journal.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.mail.service.MailService;
020    
021    import com.liferay.portal.kernel.bean.BeanReference;
022    import com.liferay.portal.kernel.bean.IdentifiableBean;
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.DynamicQuery;
026    import com.liferay.portal.kernel.exception.PortalException;
027    import com.liferay.portal.kernel.exception.SystemException;
028    import com.liferay.portal.kernel.log.Log;
029    import com.liferay.portal.kernel.log.LogFactoryUtil;
030    import com.liferay.portal.kernel.search.Indexer;
031    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
032    import com.liferay.portal.kernel.search.SearchException;
033    import com.liferay.portal.kernel.util.OrderByComparator;
034    import com.liferay.portal.model.PersistedModel;
035    import com.liferay.portal.service.CompanyLocalService;
036    import com.liferay.portal.service.CompanyService;
037    import com.liferay.portal.service.GroupLocalService;
038    import com.liferay.portal.service.GroupService;
039    import com.liferay.portal.service.ImageLocalService;
040    import com.liferay.portal.service.ImageService;
041    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
042    import com.liferay.portal.service.PortletPreferencesLocalService;
043    import com.liferay.portal.service.PortletPreferencesService;
044    import com.liferay.portal.service.ResourceLocalService;
045    import com.liferay.portal.service.ResourceService;
046    import com.liferay.portal.service.SubscriptionLocalService;
047    import com.liferay.portal.service.UserLocalService;
048    import com.liferay.portal.service.UserService;
049    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
050    import com.liferay.portal.service.persistence.CompanyPersistence;
051    import com.liferay.portal.service.persistence.GroupFinder;
052    import com.liferay.portal.service.persistence.GroupPersistence;
053    import com.liferay.portal.service.persistence.ImagePersistence;
054    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
055    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
056    import com.liferay.portal.service.persistence.ResourceFinder;
057    import com.liferay.portal.service.persistence.ResourcePersistence;
058    import com.liferay.portal.service.persistence.SubscriptionPersistence;
059    import com.liferay.portal.service.persistence.UserFinder;
060    import com.liferay.portal.service.persistence.UserPersistence;
061    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
062    
063    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
064    import com.liferay.portlet.asset.service.AssetCategoryService;
065    import com.liferay.portlet.asset.service.AssetEntryLocalService;
066    import com.liferay.portlet.asset.service.AssetEntryService;
067    import com.liferay.portlet.asset.service.AssetLinkLocalService;
068    import com.liferay.portlet.asset.service.AssetTagLocalService;
069    import com.liferay.portlet.asset.service.AssetTagService;
070    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
071    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
072    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
073    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
074    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
075    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
076    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
077    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
078    import com.liferay.portlet.expando.service.ExpandoValueService;
079    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
080    import com.liferay.portlet.journal.model.JournalArticle;
081    import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
082    import com.liferay.portlet.journal.service.JournalArticleLocalService;
083    import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
084    import com.liferay.portlet.journal.service.JournalArticleService;
085    import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
086    import com.liferay.portlet.journal.service.JournalFeedLocalService;
087    import com.liferay.portlet.journal.service.JournalFeedService;
088    import com.liferay.portlet.journal.service.JournalStructureLocalService;
089    import com.liferay.portlet.journal.service.JournalStructureService;
090    import com.liferay.portlet.journal.service.JournalTemplateLocalService;
091    import com.liferay.portlet.journal.service.JournalTemplateService;
092    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
093    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
094    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
095    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
096    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
097    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
098    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
099    import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
100    import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
101    import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
102    import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
103    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
104    import com.liferay.portlet.messageboards.service.MBMessageService;
105    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
106    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
107    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
108    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
109    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
110    
111    import java.io.Serializable;
112    
113    import java.util.List;
114    
115    import javax.sql.DataSource;
116    
117    /**
118     * The base implementation of the journal article local service.
119     *
120     * <p>
121     * 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.journal.service.impl.JournalArticleLocalServiceImpl}.
122     * </p>
123     *
124     * @author Brian Wing Shun Chan
125     * @see com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
126     * @see com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil
127     * @generated
128     */
129    public abstract class JournalArticleLocalServiceBaseImpl
130            implements JournalArticleLocalService, IdentifiableBean {
131            /*
132             * NOTE FOR DEVELOPERS:
133             *
134             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil} to access the journal article local service.
135             */
136    
137            /**
138             * Adds the journal article to the database. Also notifies the appropriate model listeners.
139             *
140             * @param journalArticle the journal article
141             * @return the journal article that was added
142             * @throws SystemException if a system exception occurred
143             */
144            public JournalArticle addJournalArticle(JournalArticle journalArticle)
145                    throws SystemException {
146                    journalArticle.setNew(true);
147    
148                    journalArticle = journalArticlePersistence.update(journalArticle, false);
149    
150                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
151    
152                    if (indexer != null) {
153                            try {
154                                    indexer.reindex(journalArticle);
155                            }
156                            catch (SearchException se) {
157                                    if (_log.isWarnEnabled()) {
158                                            _log.warn(se, se);
159                                    }
160                            }
161                    }
162    
163                    return journalArticle;
164            }
165    
166            /**
167             * Creates a new journal article with the primary key. Does not add the journal article to the database.
168             *
169             * @param id the primary key for the new journal article
170             * @return the new journal article
171             */
172            public JournalArticle createJournalArticle(long id) {
173                    return journalArticlePersistence.create(id);
174            }
175    
176            /**
177             * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
178             *
179             * @param id the primary key of the journal article
180             * @throws PortalException if a journal article with the primary key could not be found
181             * @throws SystemException if a system exception occurred
182             */
183            public void deleteJournalArticle(long id)
184                    throws PortalException, SystemException {
185                    JournalArticle journalArticle = journalArticlePersistence.remove(id);
186    
187                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
188    
189                    if (indexer != null) {
190                            try {
191                                    indexer.delete(journalArticle);
192                            }
193                            catch (SearchException se) {
194                                    if (_log.isWarnEnabled()) {
195                                            _log.warn(se, se);
196                                    }
197                            }
198                    }
199            }
200    
201            /**
202             * Deletes the journal article from the database. Also notifies the appropriate model listeners.
203             *
204             * @param journalArticle the journal article
205             * @throws SystemException if a system exception occurred
206             */
207            public void deleteJournalArticle(JournalArticle journalArticle)
208                    throws SystemException {
209                    journalArticlePersistence.remove(journalArticle);
210    
211                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
212    
213                    if (indexer != null) {
214                            try {
215                                    indexer.delete(journalArticle);
216                            }
217                            catch (SearchException se) {
218                                    if (_log.isWarnEnabled()) {
219                                            _log.warn(se, se);
220                                    }
221                            }
222                    }
223            }
224    
225            /**
226             * Performs a dynamic query on the database and returns the matching rows.
227             *
228             * @param dynamicQuery the dynamic query
229             * @return the matching rows
230             * @throws SystemException if a system exception occurred
231             */
232            @SuppressWarnings("rawtypes")
233            public List dynamicQuery(DynamicQuery dynamicQuery)
234                    throws SystemException {
235                    return journalArticlePersistence.findWithDynamicQuery(dynamicQuery);
236            }
237    
238            /**
239             * Performs a dynamic query on the database and returns a range of the matching rows.
240             *
241             * <p>
242             * 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.
243             * </p>
244             *
245             * @param dynamicQuery the dynamic query
246             * @param start the lower bound of the range of model instances
247             * @param end the upper bound of the range of model instances (not inclusive)
248             * @return the range of matching rows
249             * @throws SystemException if a system exception occurred
250             */
251            @SuppressWarnings("rawtypes")
252            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
253                    throws SystemException {
254                    return journalArticlePersistence.findWithDynamicQuery(dynamicQuery,
255                            start, end);
256            }
257    
258            /**
259             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
260             *
261             * <p>
262             * 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.
263             * </p>
264             *
265             * @param dynamicQuery the dynamic query
266             * @param start the lower bound of the range of model instances
267             * @param end the upper bound of the range of model instances (not inclusive)
268             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
269             * @return the ordered range of matching rows
270             * @throws SystemException if a system exception occurred
271             */
272            @SuppressWarnings("rawtypes")
273            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
274                    OrderByComparator orderByComparator) throws SystemException {
275                    return journalArticlePersistence.findWithDynamicQuery(dynamicQuery,
276                            start, end, orderByComparator);
277            }
278    
279            /**
280             * Returns the number of rows that match the dynamic query.
281             *
282             * @param dynamicQuery the dynamic query
283             * @return the number of rows that match the dynamic query
284             * @throws SystemException if a system exception occurred
285             */
286            public long dynamicQueryCount(DynamicQuery dynamicQuery)
287                    throws SystemException {
288                    return journalArticlePersistence.countWithDynamicQuery(dynamicQuery);
289            }
290    
291            public JournalArticle fetchJournalArticle(long id)
292                    throws SystemException {
293                    return journalArticlePersistence.fetchByPrimaryKey(id);
294            }
295    
296            /**
297             * Returns the journal article with the primary key.
298             *
299             * @param id the primary key of the journal article
300             * @return the journal article
301             * @throws PortalException if a journal article with the primary key could not be found
302             * @throws SystemException if a system exception occurred
303             */
304            public JournalArticle getJournalArticle(long id)
305                    throws PortalException, SystemException {
306                    return journalArticlePersistence.findByPrimaryKey(id);
307            }
308    
309            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
310                    throws PortalException, SystemException {
311                    return journalArticlePersistence.findByPrimaryKey(primaryKeyObj);
312            }
313    
314            /**
315             * Returns the journal article with the UUID in the group.
316             *
317             * @param uuid the UUID of journal article
318             * @param groupId the group id of the journal article
319             * @return the journal article
320             * @throws PortalException if a journal article with the UUID in the group could not be found
321             * @throws SystemException if a system exception occurred
322             */
323            public JournalArticle getJournalArticleByUuidAndGroupId(String uuid,
324                    long groupId) throws PortalException, SystemException {
325                    return journalArticlePersistence.findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329             * Returns a range of all the journal articles.
330             *
331             * <p>
332             * 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.
333             * </p>
334             *
335             * @param start the lower bound of the range of journal articles
336             * @param end the upper bound of the range of journal articles (not inclusive)
337             * @return the range of journal articles
338             * @throws SystemException if a system exception occurred
339             */
340            public List<JournalArticle> getJournalArticles(int start, int end)
341                    throws SystemException {
342                    return journalArticlePersistence.findAll(start, end);
343            }
344    
345            /**
346             * Returns the number of journal articles.
347             *
348             * @return the number of journal articles
349             * @throws SystemException if a system exception occurred
350             */
351            public int getJournalArticlesCount() throws SystemException {
352                    return journalArticlePersistence.countAll();
353            }
354    
355            /**
356             * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
357             *
358             * @param journalArticle the journal article
359             * @return the journal article that was updated
360             * @throws SystemException if a system exception occurred
361             */
362            public JournalArticle updateJournalArticle(JournalArticle journalArticle)
363                    throws SystemException {
364                    return updateJournalArticle(journalArticle, true);
365            }
366    
367            /**
368             * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
369             *
370             * @param journalArticle the journal article
371             * @param merge whether to merge the journal article with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
372             * @return the journal article that was updated
373             * @throws SystemException if a system exception occurred
374             */
375            public JournalArticle updateJournalArticle(JournalArticle journalArticle,
376                    boolean merge) throws SystemException {
377                    journalArticle.setNew(false);
378    
379                    journalArticle = journalArticlePersistence.update(journalArticle, merge);
380    
381                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
382    
383                    if (indexer != null) {
384                            try {
385                                    indexer.reindex(journalArticle);
386                            }
387                            catch (SearchException se) {
388                                    if (_log.isWarnEnabled()) {
389                                            _log.warn(se, se);
390                                    }
391                            }
392                    }
393    
394                    return journalArticle;
395            }
396    
397            /**
398             * Returns the journal article local service.
399             *
400             * @return the journal article local service
401             */
402            public JournalArticleLocalService getJournalArticleLocalService() {
403                    return journalArticleLocalService;
404            }
405    
406            /**
407             * Sets the journal article local service.
408             *
409             * @param journalArticleLocalService the journal article local service
410             */
411            public void setJournalArticleLocalService(
412                    JournalArticleLocalService journalArticleLocalService) {
413                    this.journalArticleLocalService = journalArticleLocalService;
414            }
415    
416            /**
417             * Returns the journal article remote service.
418             *
419             * @return the journal article remote service
420             */
421            public JournalArticleService getJournalArticleService() {
422                    return journalArticleService;
423            }
424    
425            /**
426             * Sets the journal article remote service.
427             *
428             * @param journalArticleService the journal article remote service
429             */
430            public void setJournalArticleService(
431                    JournalArticleService journalArticleService) {
432                    this.journalArticleService = journalArticleService;
433            }
434    
435            /**
436             * Returns the journal article persistence.
437             *
438             * @return the journal article persistence
439             */
440            public JournalArticlePersistence getJournalArticlePersistence() {
441                    return journalArticlePersistence;
442            }
443    
444            /**
445             * Sets the journal article persistence.
446             *
447             * @param journalArticlePersistence the journal article persistence
448             */
449            public void setJournalArticlePersistence(
450                    JournalArticlePersistence journalArticlePersistence) {
451                    this.journalArticlePersistence = journalArticlePersistence;
452            }
453    
454            /**
455             * Returns the journal article finder.
456             *
457             * @return the journal article finder
458             */
459            public JournalArticleFinder getJournalArticleFinder() {
460                    return journalArticleFinder;
461            }
462    
463            /**
464             * Sets the journal article finder.
465             *
466             * @param journalArticleFinder the journal article finder
467             */
468            public void setJournalArticleFinder(
469                    JournalArticleFinder journalArticleFinder) {
470                    this.journalArticleFinder = journalArticleFinder;
471            }
472    
473            /**
474             * Returns the journal article image local service.
475             *
476             * @return the journal article image local service
477             */
478            public JournalArticleImageLocalService getJournalArticleImageLocalService() {
479                    return journalArticleImageLocalService;
480            }
481    
482            /**
483             * Sets the journal article image local service.
484             *
485             * @param journalArticleImageLocalService the journal article image local service
486             */
487            public void setJournalArticleImageLocalService(
488                    JournalArticleImageLocalService journalArticleImageLocalService) {
489                    this.journalArticleImageLocalService = journalArticleImageLocalService;
490            }
491    
492            /**
493             * Returns the journal article image persistence.
494             *
495             * @return the journal article image persistence
496             */
497            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
498                    return journalArticleImagePersistence;
499            }
500    
501            /**
502             * Sets the journal article image persistence.
503             *
504             * @param journalArticleImagePersistence the journal article image persistence
505             */
506            public void setJournalArticleImagePersistence(
507                    JournalArticleImagePersistence journalArticleImagePersistence) {
508                    this.journalArticleImagePersistence = journalArticleImagePersistence;
509            }
510    
511            /**
512             * Returns the journal article resource local service.
513             *
514             * @return the journal article resource local service
515             */
516            public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
517                    return journalArticleResourceLocalService;
518            }
519    
520            /**
521             * Sets the journal article resource local service.
522             *
523             * @param journalArticleResourceLocalService the journal article resource local service
524             */
525            public void setJournalArticleResourceLocalService(
526                    JournalArticleResourceLocalService journalArticleResourceLocalService) {
527                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
528            }
529    
530            /**
531             * Returns the journal article resource persistence.
532             *
533             * @return the journal article resource persistence
534             */
535            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
536                    return journalArticleResourcePersistence;
537            }
538    
539            /**
540             * Sets the journal article resource persistence.
541             *
542             * @param journalArticleResourcePersistence the journal article resource persistence
543             */
544            public void setJournalArticleResourcePersistence(
545                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
546                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
547            }
548    
549            /**
550             * Returns the journal content search local service.
551             *
552             * @return the journal content search local service
553             */
554            public JournalContentSearchLocalService getJournalContentSearchLocalService() {
555                    return journalContentSearchLocalService;
556            }
557    
558            /**
559             * Sets the journal content search local service.
560             *
561             * @param journalContentSearchLocalService the journal content search local service
562             */
563            public void setJournalContentSearchLocalService(
564                    JournalContentSearchLocalService journalContentSearchLocalService) {
565                    this.journalContentSearchLocalService = journalContentSearchLocalService;
566            }
567    
568            /**
569             * Returns the journal content search persistence.
570             *
571             * @return the journal content search persistence
572             */
573            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
574                    return journalContentSearchPersistence;
575            }
576    
577            /**
578             * Sets the journal content search persistence.
579             *
580             * @param journalContentSearchPersistence the journal content search persistence
581             */
582            public void setJournalContentSearchPersistence(
583                    JournalContentSearchPersistence journalContentSearchPersistence) {
584                    this.journalContentSearchPersistence = journalContentSearchPersistence;
585            }
586    
587            /**
588             * Returns the journal feed local service.
589             *
590             * @return the journal feed local service
591             */
592            public JournalFeedLocalService getJournalFeedLocalService() {
593                    return journalFeedLocalService;
594            }
595    
596            /**
597             * Sets the journal feed local service.
598             *
599             * @param journalFeedLocalService the journal feed local service
600             */
601            public void setJournalFeedLocalService(
602                    JournalFeedLocalService journalFeedLocalService) {
603                    this.journalFeedLocalService = journalFeedLocalService;
604            }
605    
606            /**
607             * Returns the journal feed remote service.
608             *
609             * @return the journal feed remote service
610             */
611            public JournalFeedService getJournalFeedService() {
612                    return journalFeedService;
613            }
614    
615            /**
616             * Sets the journal feed remote service.
617             *
618             * @param journalFeedService the journal feed remote service
619             */
620            public void setJournalFeedService(JournalFeedService journalFeedService) {
621                    this.journalFeedService = journalFeedService;
622            }
623    
624            /**
625             * Returns the journal feed persistence.
626             *
627             * @return the journal feed persistence
628             */
629            public JournalFeedPersistence getJournalFeedPersistence() {
630                    return journalFeedPersistence;
631            }
632    
633            /**
634             * Sets the journal feed persistence.
635             *
636             * @param journalFeedPersistence the journal feed persistence
637             */
638            public void setJournalFeedPersistence(
639                    JournalFeedPersistence journalFeedPersistence) {
640                    this.journalFeedPersistence = journalFeedPersistence;
641            }
642    
643            /**
644             * Returns the journal feed finder.
645             *
646             * @return the journal feed finder
647             */
648            public JournalFeedFinder getJournalFeedFinder() {
649                    return journalFeedFinder;
650            }
651    
652            /**
653             * Sets the journal feed finder.
654             *
655             * @param journalFeedFinder the journal feed finder
656             */
657            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
658                    this.journalFeedFinder = journalFeedFinder;
659            }
660    
661            /**
662             * Returns the journal structure local service.
663             *
664             * @return the journal structure local service
665             */
666            public JournalStructureLocalService getJournalStructureLocalService() {
667                    return journalStructureLocalService;
668            }
669    
670            /**
671             * Sets the journal structure local service.
672             *
673             * @param journalStructureLocalService the journal structure local service
674             */
675            public void setJournalStructureLocalService(
676                    JournalStructureLocalService journalStructureLocalService) {
677                    this.journalStructureLocalService = journalStructureLocalService;
678            }
679    
680            /**
681             * Returns the journal structure remote service.
682             *
683             * @return the journal structure remote service
684             */
685            public JournalStructureService getJournalStructureService() {
686                    return journalStructureService;
687            }
688    
689            /**
690             * Sets the journal structure remote service.
691             *
692             * @param journalStructureService the journal structure remote service
693             */
694            public void setJournalStructureService(
695                    JournalStructureService journalStructureService) {
696                    this.journalStructureService = journalStructureService;
697            }
698    
699            /**
700             * Returns the journal structure persistence.
701             *
702             * @return the journal structure persistence
703             */
704            public JournalStructurePersistence getJournalStructurePersistence() {
705                    return journalStructurePersistence;
706            }
707    
708            /**
709             * Sets the journal structure persistence.
710             *
711             * @param journalStructurePersistence the journal structure persistence
712             */
713            public void setJournalStructurePersistence(
714                    JournalStructurePersistence journalStructurePersistence) {
715                    this.journalStructurePersistence = journalStructurePersistence;
716            }
717    
718            /**
719             * Returns the journal structure finder.
720             *
721             * @return the journal structure finder
722             */
723            public JournalStructureFinder getJournalStructureFinder() {
724                    return journalStructureFinder;
725            }
726    
727            /**
728             * Sets the journal structure finder.
729             *
730             * @param journalStructureFinder the journal structure finder
731             */
732            public void setJournalStructureFinder(
733                    JournalStructureFinder journalStructureFinder) {
734                    this.journalStructureFinder = journalStructureFinder;
735            }
736    
737            /**
738             * Returns the journal template local service.
739             *
740             * @return the journal template local service
741             */
742            public JournalTemplateLocalService getJournalTemplateLocalService() {
743                    return journalTemplateLocalService;
744            }
745    
746            /**
747             * Sets the journal template local service.
748             *
749             * @param journalTemplateLocalService the journal template local service
750             */
751            public void setJournalTemplateLocalService(
752                    JournalTemplateLocalService journalTemplateLocalService) {
753                    this.journalTemplateLocalService = journalTemplateLocalService;
754            }
755    
756            /**
757             * Returns the journal template remote service.
758             *
759             * @return the journal template remote service
760             */
761            public JournalTemplateService getJournalTemplateService() {
762                    return journalTemplateService;
763            }
764    
765            /**
766             * Sets the journal template remote service.
767             *
768             * @param journalTemplateService the journal template remote service
769             */
770            public void setJournalTemplateService(
771                    JournalTemplateService journalTemplateService) {
772                    this.journalTemplateService = journalTemplateService;
773            }
774    
775            /**
776             * Returns the journal template persistence.
777             *
778             * @return the journal template persistence
779             */
780            public JournalTemplatePersistence getJournalTemplatePersistence() {
781                    return journalTemplatePersistence;
782            }
783    
784            /**
785             * Sets the journal template persistence.
786             *
787             * @param journalTemplatePersistence the journal template persistence
788             */
789            public void setJournalTemplatePersistence(
790                    JournalTemplatePersistence journalTemplatePersistence) {
791                    this.journalTemplatePersistence = journalTemplatePersistence;
792            }
793    
794            /**
795             * Returns the journal template finder.
796             *
797             * @return the journal template finder
798             */
799            public JournalTemplateFinder getJournalTemplateFinder() {
800                    return journalTemplateFinder;
801            }
802    
803            /**
804             * Sets the journal template finder.
805             *
806             * @param journalTemplateFinder the journal template finder
807             */
808            public void setJournalTemplateFinder(
809                    JournalTemplateFinder journalTemplateFinder) {
810                    this.journalTemplateFinder = journalTemplateFinder;
811            }
812    
813            /**
814             * Returns the counter local service.
815             *
816             * @return the counter local service
817             */
818            public CounterLocalService getCounterLocalService() {
819                    return counterLocalService;
820            }
821    
822            /**
823             * Sets the counter local service.
824             *
825             * @param counterLocalService the counter local service
826             */
827            public void setCounterLocalService(CounterLocalService counterLocalService) {
828                    this.counterLocalService = counterLocalService;
829            }
830    
831            /**
832             * Returns the mail remote service.
833             *
834             * @return the mail remote service
835             */
836            public MailService getMailService() {
837                    return mailService;
838            }
839    
840            /**
841             * Sets the mail remote service.
842             *
843             * @param mailService the mail remote service
844             */
845            public void setMailService(MailService mailService) {
846                    this.mailService = mailService;
847            }
848    
849            /**
850             * Returns the company local service.
851             *
852             * @return the company local service
853             */
854            public CompanyLocalService getCompanyLocalService() {
855                    return companyLocalService;
856            }
857    
858            /**
859             * Sets the company local service.
860             *
861             * @param companyLocalService the company local service
862             */
863            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
864                    this.companyLocalService = companyLocalService;
865            }
866    
867            /**
868             * Returns the company remote service.
869             *
870             * @return the company remote service
871             */
872            public CompanyService getCompanyService() {
873                    return companyService;
874            }
875    
876            /**
877             * Sets the company remote service.
878             *
879             * @param companyService the company remote service
880             */
881            public void setCompanyService(CompanyService companyService) {
882                    this.companyService = companyService;
883            }
884    
885            /**
886             * Returns the company persistence.
887             *
888             * @return the company persistence
889             */
890            public CompanyPersistence getCompanyPersistence() {
891                    return companyPersistence;
892            }
893    
894            /**
895             * Sets the company persistence.
896             *
897             * @param companyPersistence the company persistence
898             */
899            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
900                    this.companyPersistence = companyPersistence;
901            }
902    
903            /**
904             * Returns the group local service.
905             *
906             * @return the group local service
907             */
908            public GroupLocalService getGroupLocalService() {
909                    return groupLocalService;
910            }
911    
912            /**
913             * Sets the group local service.
914             *
915             * @param groupLocalService the group local service
916             */
917            public void setGroupLocalService(GroupLocalService groupLocalService) {
918                    this.groupLocalService = groupLocalService;
919            }
920    
921            /**
922             * Returns the group remote service.
923             *
924             * @return the group remote service
925             */
926            public GroupService getGroupService() {
927                    return groupService;
928            }
929    
930            /**
931             * Sets the group remote service.
932             *
933             * @param groupService the group remote service
934             */
935            public void setGroupService(GroupService groupService) {
936                    this.groupService = groupService;
937            }
938    
939            /**
940             * Returns the group persistence.
941             *
942             * @return the group persistence
943             */
944            public GroupPersistence getGroupPersistence() {
945                    return groupPersistence;
946            }
947    
948            /**
949             * Sets the group persistence.
950             *
951             * @param groupPersistence the group persistence
952             */
953            public void setGroupPersistence(GroupPersistence groupPersistence) {
954                    this.groupPersistence = groupPersistence;
955            }
956    
957            /**
958             * Returns the group finder.
959             *
960             * @return the group finder
961             */
962            public GroupFinder getGroupFinder() {
963                    return groupFinder;
964            }
965    
966            /**
967             * Sets the group finder.
968             *
969             * @param groupFinder the group finder
970             */
971            public void setGroupFinder(GroupFinder groupFinder) {
972                    this.groupFinder = groupFinder;
973            }
974    
975            /**
976             * Returns the image local service.
977             *
978             * @return the image local service
979             */
980            public ImageLocalService getImageLocalService() {
981                    return imageLocalService;
982            }
983    
984            /**
985             * Sets the image local service.
986             *
987             * @param imageLocalService the image local service
988             */
989            public void setImageLocalService(ImageLocalService imageLocalService) {
990                    this.imageLocalService = imageLocalService;
991            }
992    
993            /**
994             * Returns the image remote service.
995             *
996             * @return the image remote service
997             */
998            public ImageService getImageService() {
999                    return imageService;
1000            }
1001    
1002            /**
1003             * Sets the image remote service.
1004             *
1005             * @param imageService the image remote service
1006             */
1007            public void setImageService(ImageService imageService) {
1008                    this.imageService = imageService;
1009            }
1010    
1011            /**
1012             * Returns the image persistence.
1013             *
1014             * @return the image persistence
1015             */
1016            public ImagePersistence getImagePersistence() {
1017                    return imagePersistence;
1018            }
1019    
1020            /**
1021             * Sets the image persistence.
1022             *
1023             * @param imagePersistence the image persistence
1024             */
1025            public void setImagePersistence(ImagePersistence imagePersistence) {
1026                    this.imagePersistence = imagePersistence;
1027            }
1028    
1029            /**
1030             * Returns the portlet preferences local service.
1031             *
1032             * @return the portlet preferences local service
1033             */
1034            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
1035                    return portletPreferencesLocalService;
1036            }
1037    
1038            /**
1039             * Sets the portlet preferences local service.
1040             *
1041             * @param portletPreferencesLocalService the portlet preferences local service
1042             */
1043            public void setPortletPreferencesLocalService(
1044                    PortletPreferencesLocalService portletPreferencesLocalService) {
1045                    this.portletPreferencesLocalService = portletPreferencesLocalService;
1046            }
1047    
1048            /**
1049             * Returns the portlet preferences remote service.
1050             *
1051             * @return the portlet preferences remote service
1052             */
1053            public PortletPreferencesService getPortletPreferencesService() {
1054                    return portletPreferencesService;
1055            }
1056    
1057            /**
1058             * Sets the portlet preferences remote service.
1059             *
1060             * @param portletPreferencesService the portlet preferences remote service
1061             */
1062            public void setPortletPreferencesService(
1063                    PortletPreferencesService portletPreferencesService) {
1064                    this.portletPreferencesService = portletPreferencesService;
1065            }
1066    
1067            /**
1068             * Returns the portlet preferences persistence.
1069             *
1070             * @return the portlet preferences persistence
1071             */
1072            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
1073                    return portletPreferencesPersistence;
1074            }
1075    
1076            /**
1077             * Sets the portlet preferences persistence.
1078             *
1079             * @param portletPreferencesPersistence the portlet preferences persistence
1080             */
1081            public void setPortletPreferencesPersistence(
1082                    PortletPreferencesPersistence portletPreferencesPersistence) {
1083                    this.portletPreferencesPersistence = portletPreferencesPersistence;
1084            }
1085    
1086            /**
1087             * Returns the portlet preferences finder.
1088             *
1089             * @return the portlet preferences finder
1090             */
1091            public PortletPreferencesFinder getPortletPreferencesFinder() {
1092                    return portletPreferencesFinder;
1093            }
1094    
1095            /**
1096             * Sets the portlet preferences finder.
1097             *
1098             * @param portletPreferencesFinder the portlet preferences finder
1099             */
1100            public void setPortletPreferencesFinder(
1101                    PortletPreferencesFinder portletPreferencesFinder) {
1102                    this.portletPreferencesFinder = portletPreferencesFinder;
1103            }
1104    
1105            /**
1106             * Returns the resource local service.
1107             *
1108             * @return the resource local service
1109             */
1110            public ResourceLocalService getResourceLocalService() {
1111                    return resourceLocalService;
1112            }
1113    
1114            /**
1115             * Sets the resource local service.
1116             *
1117             * @param resourceLocalService the resource local service
1118             */
1119            public void setResourceLocalService(
1120                    ResourceLocalService resourceLocalService) {
1121                    this.resourceLocalService = resourceLocalService;
1122            }
1123    
1124            /**
1125             * Returns the resource remote service.
1126             *
1127             * @return the resource remote service
1128             */
1129            public ResourceService getResourceService() {
1130                    return resourceService;
1131            }
1132    
1133            /**
1134             * Sets the resource remote service.
1135             *
1136             * @param resourceService the resource remote service
1137             */
1138            public void setResourceService(ResourceService resourceService) {
1139                    this.resourceService = resourceService;
1140            }
1141    
1142            /**
1143             * Returns the resource persistence.
1144             *
1145             * @return the resource persistence
1146             */
1147            public ResourcePersistence getResourcePersistence() {
1148                    return resourcePersistence;
1149            }
1150    
1151            /**
1152             * Sets the resource persistence.
1153             *
1154             * @param resourcePersistence the resource persistence
1155             */
1156            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1157                    this.resourcePersistence = resourcePersistence;
1158            }
1159    
1160            /**
1161             * Returns the resource finder.
1162             *
1163             * @return the resource finder
1164             */
1165            public ResourceFinder getResourceFinder() {
1166                    return resourceFinder;
1167            }
1168    
1169            /**
1170             * Sets the resource finder.
1171             *
1172             * @param resourceFinder the resource finder
1173             */
1174            public void setResourceFinder(ResourceFinder resourceFinder) {
1175                    this.resourceFinder = resourceFinder;
1176            }
1177    
1178            /**
1179             * Returns the subscription local service.
1180             *
1181             * @return the subscription local service
1182             */
1183            public SubscriptionLocalService getSubscriptionLocalService() {
1184                    return subscriptionLocalService;
1185            }
1186    
1187            /**
1188             * Sets the subscription local service.
1189             *
1190             * @param subscriptionLocalService the subscription local service
1191             */
1192            public void setSubscriptionLocalService(
1193                    SubscriptionLocalService subscriptionLocalService) {
1194                    this.subscriptionLocalService = subscriptionLocalService;
1195            }
1196    
1197            /**
1198             * Returns the subscription persistence.
1199             *
1200             * @return the subscription persistence
1201             */
1202            public SubscriptionPersistence getSubscriptionPersistence() {
1203                    return subscriptionPersistence;
1204            }
1205    
1206            /**
1207             * Sets the subscription persistence.
1208             *
1209             * @param subscriptionPersistence the subscription persistence
1210             */
1211            public void setSubscriptionPersistence(
1212                    SubscriptionPersistence subscriptionPersistence) {
1213                    this.subscriptionPersistence = subscriptionPersistence;
1214            }
1215    
1216            /**
1217             * Returns the user local service.
1218             *
1219             * @return the user local service
1220             */
1221            public UserLocalService getUserLocalService() {
1222                    return userLocalService;
1223            }
1224    
1225            /**
1226             * Sets the user local service.
1227             *
1228             * @param userLocalService the user local service
1229             */
1230            public void setUserLocalService(UserLocalService userLocalService) {
1231                    this.userLocalService = userLocalService;
1232            }
1233    
1234            /**
1235             * Returns the user remote service.
1236             *
1237             * @return the user remote service
1238             */
1239            public UserService getUserService() {
1240                    return userService;
1241            }
1242    
1243            /**
1244             * Sets the user remote service.
1245             *
1246             * @param userService the user remote service
1247             */
1248            public void setUserService(UserService userService) {
1249                    this.userService = userService;
1250            }
1251    
1252            /**
1253             * Returns the user persistence.
1254             *
1255             * @return the user persistence
1256             */
1257            public UserPersistence getUserPersistence() {
1258                    return userPersistence;
1259            }
1260    
1261            /**
1262             * Sets the user persistence.
1263             *
1264             * @param userPersistence the user persistence
1265             */
1266            public void setUserPersistence(UserPersistence userPersistence) {
1267                    this.userPersistence = userPersistence;
1268            }
1269    
1270            /**
1271             * Returns the user finder.
1272             *
1273             * @return the user finder
1274             */
1275            public UserFinder getUserFinder() {
1276                    return userFinder;
1277            }
1278    
1279            /**
1280             * Sets the user finder.
1281             *
1282             * @param userFinder the user finder
1283             */
1284            public void setUserFinder(UserFinder userFinder) {
1285                    this.userFinder = userFinder;
1286            }
1287    
1288            /**
1289             * Returns the workflow instance link local service.
1290             *
1291             * @return the workflow instance link local service
1292             */
1293            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1294                    return workflowInstanceLinkLocalService;
1295            }
1296    
1297            /**
1298             * Sets the workflow instance link local service.
1299             *
1300             * @param workflowInstanceLinkLocalService the workflow instance link local service
1301             */
1302            public void setWorkflowInstanceLinkLocalService(
1303                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1304                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1305            }
1306    
1307            /**
1308             * Returns the workflow instance link persistence.
1309             *
1310             * @return the workflow instance link persistence
1311             */
1312            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1313                    return workflowInstanceLinkPersistence;
1314            }
1315    
1316            /**
1317             * Sets the workflow instance link persistence.
1318             *
1319             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1320             */
1321            public void setWorkflowInstanceLinkPersistence(
1322                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1323                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1324            }
1325    
1326            /**
1327             * Returns the asset category local service.
1328             *
1329             * @return the asset category local service
1330             */
1331            public AssetCategoryLocalService getAssetCategoryLocalService() {
1332                    return assetCategoryLocalService;
1333            }
1334    
1335            /**
1336             * Sets the asset category local service.
1337             *
1338             * @param assetCategoryLocalService the asset category local service
1339             */
1340            public void setAssetCategoryLocalService(
1341                    AssetCategoryLocalService assetCategoryLocalService) {
1342                    this.assetCategoryLocalService = assetCategoryLocalService;
1343            }
1344    
1345            /**
1346             * Returns the asset category remote service.
1347             *
1348             * @return the asset category remote service
1349             */
1350            public AssetCategoryService getAssetCategoryService() {
1351                    return assetCategoryService;
1352            }
1353    
1354            /**
1355             * Sets the asset category remote service.
1356             *
1357             * @param assetCategoryService the asset category remote service
1358             */
1359            public void setAssetCategoryService(
1360                    AssetCategoryService assetCategoryService) {
1361                    this.assetCategoryService = assetCategoryService;
1362            }
1363    
1364            /**
1365             * Returns the asset category persistence.
1366             *
1367             * @return the asset category persistence
1368             */
1369            public AssetCategoryPersistence getAssetCategoryPersistence() {
1370                    return assetCategoryPersistence;
1371            }
1372    
1373            /**
1374             * Sets the asset category persistence.
1375             *
1376             * @param assetCategoryPersistence the asset category persistence
1377             */
1378            public void setAssetCategoryPersistence(
1379                    AssetCategoryPersistence assetCategoryPersistence) {
1380                    this.assetCategoryPersistence = assetCategoryPersistence;
1381            }
1382    
1383            /**
1384             * Returns the asset category finder.
1385             *
1386             * @return the asset category finder
1387             */
1388            public AssetCategoryFinder getAssetCategoryFinder() {
1389                    return assetCategoryFinder;
1390            }
1391    
1392            /**
1393             * Sets the asset category finder.
1394             *
1395             * @param assetCategoryFinder the asset category finder
1396             */
1397            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1398                    this.assetCategoryFinder = assetCategoryFinder;
1399            }
1400    
1401            /**
1402             * Returns the asset entry local service.
1403             *
1404             * @return the asset entry local service
1405             */
1406            public AssetEntryLocalService getAssetEntryLocalService() {
1407                    return assetEntryLocalService;
1408            }
1409    
1410            /**
1411             * Sets the asset entry local service.
1412             *
1413             * @param assetEntryLocalService the asset entry local service
1414             */
1415            public void setAssetEntryLocalService(
1416                    AssetEntryLocalService assetEntryLocalService) {
1417                    this.assetEntryLocalService = assetEntryLocalService;
1418            }
1419    
1420            /**
1421             * Returns the asset entry remote service.
1422             *
1423             * @return the asset entry remote service
1424             */
1425            public AssetEntryService getAssetEntryService() {
1426                    return assetEntryService;
1427            }
1428    
1429            /**
1430             * Sets the asset entry remote service.
1431             *
1432             * @param assetEntryService the asset entry remote service
1433             */
1434            public void setAssetEntryService(AssetEntryService assetEntryService) {
1435                    this.assetEntryService = assetEntryService;
1436            }
1437    
1438            /**
1439             * Returns the asset entry persistence.
1440             *
1441             * @return the asset entry persistence
1442             */
1443            public AssetEntryPersistence getAssetEntryPersistence() {
1444                    return assetEntryPersistence;
1445            }
1446    
1447            /**
1448             * Sets the asset entry persistence.
1449             *
1450             * @param assetEntryPersistence the asset entry persistence
1451             */
1452            public void setAssetEntryPersistence(
1453                    AssetEntryPersistence assetEntryPersistence) {
1454                    this.assetEntryPersistence = assetEntryPersistence;
1455            }
1456    
1457            /**
1458             * Returns the asset entry finder.
1459             *
1460             * @return the asset entry finder
1461             */
1462            public AssetEntryFinder getAssetEntryFinder() {
1463                    return assetEntryFinder;
1464            }
1465    
1466            /**
1467             * Sets the asset entry finder.
1468             *
1469             * @param assetEntryFinder the asset entry finder
1470             */
1471            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1472                    this.assetEntryFinder = assetEntryFinder;
1473            }
1474    
1475            /**
1476             * Returns the asset link local service.
1477             *
1478             * @return the asset link local service
1479             */
1480            public AssetLinkLocalService getAssetLinkLocalService() {
1481                    return assetLinkLocalService;
1482            }
1483    
1484            /**
1485             * Sets the asset link local service.
1486             *
1487             * @param assetLinkLocalService the asset link local service
1488             */
1489            public void setAssetLinkLocalService(
1490                    AssetLinkLocalService assetLinkLocalService) {
1491                    this.assetLinkLocalService = assetLinkLocalService;
1492            }
1493    
1494            /**
1495             * Returns the asset link persistence.
1496             *
1497             * @return the asset link persistence
1498             */
1499            public AssetLinkPersistence getAssetLinkPersistence() {
1500                    return assetLinkPersistence;
1501            }
1502    
1503            /**
1504             * Sets the asset link persistence.
1505             *
1506             * @param assetLinkPersistence the asset link persistence
1507             */
1508            public void setAssetLinkPersistence(
1509                    AssetLinkPersistence assetLinkPersistence) {
1510                    this.assetLinkPersistence = assetLinkPersistence;
1511            }
1512    
1513            /**
1514             * Returns the asset tag local service.
1515             *
1516             * @return the asset tag local service
1517             */
1518            public AssetTagLocalService getAssetTagLocalService() {
1519                    return assetTagLocalService;
1520            }
1521    
1522            /**
1523             * Sets the asset tag local service.
1524             *
1525             * @param assetTagLocalService the asset tag local service
1526             */
1527            public void setAssetTagLocalService(
1528                    AssetTagLocalService assetTagLocalService) {
1529                    this.assetTagLocalService = assetTagLocalService;
1530            }
1531    
1532            /**
1533             * Returns the asset tag remote service.
1534             *
1535             * @return the asset tag remote service
1536             */
1537            public AssetTagService getAssetTagService() {
1538                    return assetTagService;
1539            }
1540    
1541            /**
1542             * Sets the asset tag remote service.
1543             *
1544             * @param assetTagService the asset tag remote service
1545             */
1546            public void setAssetTagService(AssetTagService assetTagService) {
1547                    this.assetTagService = assetTagService;
1548            }
1549    
1550            /**
1551             * Returns the asset tag persistence.
1552             *
1553             * @return the asset tag persistence
1554             */
1555            public AssetTagPersistence getAssetTagPersistence() {
1556                    return assetTagPersistence;
1557            }
1558    
1559            /**
1560             * Sets the asset tag persistence.
1561             *
1562             * @param assetTagPersistence the asset tag persistence
1563             */
1564            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1565                    this.assetTagPersistence = assetTagPersistence;
1566            }
1567    
1568            /**
1569             * Returns the asset tag finder.
1570             *
1571             * @return the asset tag finder
1572             */
1573            public AssetTagFinder getAssetTagFinder() {
1574                    return assetTagFinder;
1575            }
1576    
1577            /**
1578             * Sets the asset tag finder.
1579             *
1580             * @param assetTagFinder the asset tag finder
1581             */
1582            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1583                    this.assetTagFinder = assetTagFinder;
1584            }
1585    
1586            /**
1587             * Returns the expando value local service.
1588             *
1589             * @return the expando value local service
1590             */
1591            public ExpandoValueLocalService getExpandoValueLocalService() {
1592                    return expandoValueLocalService;
1593            }
1594    
1595            /**
1596             * Sets the expando value local service.
1597             *
1598             * @param expandoValueLocalService the expando value local service
1599             */
1600            public void setExpandoValueLocalService(
1601                    ExpandoValueLocalService expandoValueLocalService) {
1602                    this.expandoValueLocalService = expandoValueLocalService;
1603            }
1604    
1605            /**
1606             * Returns the expando value remote service.
1607             *
1608             * @return the expando value remote service
1609             */
1610            public ExpandoValueService getExpandoValueService() {
1611                    return expandoValueService;
1612            }
1613    
1614            /**
1615             * Sets the expando value remote service.
1616             *
1617             * @param expandoValueService the expando value remote service
1618             */
1619            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1620                    this.expandoValueService = expandoValueService;
1621            }
1622    
1623            /**
1624             * Returns the expando value persistence.
1625             *
1626             * @return the expando value persistence
1627             */
1628            public ExpandoValuePersistence getExpandoValuePersistence() {
1629                    return expandoValuePersistence;
1630            }
1631    
1632            /**
1633             * Sets the expando value persistence.
1634             *
1635             * @param expandoValuePersistence the expando value persistence
1636             */
1637            public void setExpandoValuePersistence(
1638                    ExpandoValuePersistence expandoValuePersistence) {
1639                    this.expandoValuePersistence = expandoValuePersistence;
1640            }
1641    
1642            /**
1643             * Returns the message-boards message local service.
1644             *
1645             * @return the message-boards message local service
1646             */
1647            public MBMessageLocalService getMBMessageLocalService() {
1648                    return mbMessageLocalService;
1649            }
1650    
1651            /**
1652             * Sets the message-boards message local service.
1653             *
1654             * @param mbMessageLocalService the message-boards message local service
1655             */
1656            public void setMBMessageLocalService(
1657                    MBMessageLocalService mbMessageLocalService) {
1658                    this.mbMessageLocalService = mbMessageLocalService;
1659            }
1660    
1661            /**
1662             * Returns the message-boards message remote service.
1663             *
1664             * @return the message-boards message remote service
1665             */
1666            public MBMessageService getMBMessageService() {
1667                    return mbMessageService;
1668            }
1669    
1670            /**
1671             * Sets the message-boards message remote service.
1672             *
1673             * @param mbMessageService the message-boards message remote service
1674             */
1675            public void setMBMessageService(MBMessageService mbMessageService) {
1676                    this.mbMessageService = mbMessageService;
1677            }
1678    
1679            /**
1680             * Returns the message-boards message persistence.
1681             *
1682             * @return the message-boards message persistence
1683             */
1684            public MBMessagePersistence getMBMessagePersistence() {
1685                    return mbMessagePersistence;
1686            }
1687    
1688            /**
1689             * Sets the message-boards message persistence.
1690             *
1691             * @param mbMessagePersistence the message-boards message persistence
1692             */
1693            public void setMBMessagePersistence(
1694                    MBMessagePersistence mbMessagePersistence) {
1695                    this.mbMessagePersistence = mbMessagePersistence;
1696            }
1697    
1698            /**
1699             * Returns the message-boards message finder.
1700             *
1701             * @return the message-boards message finder
1702             */
1703            public MBMessageFinder getMBMessageFinder() {
1704                    return mbMessageFinder;
1705            }
1706    
1707            /**
1708             * Sets the message-boards message finder.
1709             *
1710             * @param mbMessageFinder the message-boards message finder
1711             */
1712            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1713                    this.mbMessageFinder = mbMessageFinder;
1714            }
1715    
1716            /**
1717             * Returns the ratings stats local service.
1718             *
1719             * @return the ratings stats local service
1720             */
1721            public RatingsStatsLocalService getRatingsStatsLocalService() {
1722                    return ratingsStatsLocalService;
1723            }
1724    
1725            /**
1726             * Sets the ratings stats local service.
1727             *
1728             * @param ratingsStatsLocalService the ratings stats local service
1729             */
1730            public void setRatingsStatsLocalService(
1731                    RatingsStatsLocalService ratingsStatsLocalService) {
1732                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1733            }
1734    
1735            /**
1736             * Returns the ratings stats persistence.
1737             *
1738             * @return the ratings stats persistence
1739             */
1740            public RatingsStatsPersistence getRatingsStatsPersistence() {
1741                    return ratingsStatsPersistence;
1742            }
1743    
1744            /**
1745             * Sets the ratings stats persistence.
1746             *
1747             * @param ratingsStatsPersistence the ratings stats persistence
1748             */
1749            public void setRatingsStatsPersistence(
1750                    RatingsStatsPersistence ratingsStatsPersistence) {
1751                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1752            }
1753    
1754            /**
1755             * Returns the ratings stats finder.
1756             *
1757             * @return the ratings stats finder
1758             */
1759            public RatingsStatsFinder getRatingsStatsFinder() {
1760                    return ratingsStatsFinder;
1761            }
1762    
1763            /**
1764             * Sets the ratings stats finder.
1765             *
1766             * @param ratingsStatsFinder the ratings stats finder
1767             */
1768            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1769                    this.ratingsStatsFinder = ratingsStatsFinder;
1770            }
1771    
1772            public void afterPropertiesSet() {
1773                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalArticle",
1774                            journalArticleLocalService);
1775            }
1776    
1777            public void destroy() {
1778                    persistedModelLocalServiceRegistry.unregister(
1779                            "com.liferay.portlet.journal.model.JournalArticle");
1780            }
1781    
1782            /**
1783             * Returns the Spring bean ID for this bean.
1784             *
1785             * @return the Spring bean ID for this bean
1786             */
1787            public String getBeanIdentifier() {
1788                    return _beanIdentifier;
1789            }
1790    
1791            /**
1792             * Sets the Spring bean ID for this bean.
1793             *
1794             * @param beanIdentifier the Spring bean ID for this bean
1795             */
1796            public void setBeanIdentifier(String beanIdentifier) {
1797                    _beanIdentifier = beanIdentifier;
1798            }
1799    
1800            protected ClassLoader getClassLoader() {
1801                    Class<?> clazz = getClass();
1802    
1803                    return clazz.getClassLoader();
1804            }
1805    
1806            protected Class<?> getModelClass() {
1807                    return JournalArticle.class;
1808            }
1809    
1810            protected String getModelClassName() {
1811                    return JournalArticle.class.getName();
1812            }
1813    
1814            /**
1815             * Performs an SQL query.
1816             *
1817             * @param sql the sql query
1818             */
1819            protected void runSQL(String sql) throws SystemException {
1820                    try {
1821                            DataSource dataSource = journalArticlePersistence.getDataSource();
1822    
1823                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1824                                            sql, new int[0]);
1825    
1826                            sqlUpdate.update();
1827                    }
1828                    catch (Exception e) {
1829                            throw new SystemException(e);
1830                    }
1831            }
1832    
1833            @BeanReference(type = JournalArticleLocalService.class)
1834            protected JournalArticleLocalService journalArticleLocalService;
1835            @BeanReference(type = JournalArticleService.class)
1836            protected JournalArticleService journalArticleService;
1837            @BeanReference(type = JournalArticlePersistence.class)
1838            protected JournalArticlePersistence journalArticlePersistence;
1839            @BeanReference(type = JournalArticleFinder.class)
1840            protected JournalArticleFinder journalArticleFinder;
1841            @BeanReference(type = JournalArticleImageLocalService.class)
1842            protected JournalArticleImageLocalService journalArticleImageLocalService;
1843            @BeanReference(type = JournalArticleImagePersistence.class)
1844            protected JournalArticleImagePersistence journalArticleImagePersistence;
1845            @BeanReference(type = JournalArticleResourceLocalService.class)
1846            protected JournalArticleResourceLocalService journalArticleResourceLocalService;
1847            @BeanReference(type = JournalArticleResourcePersistence.class)
1848            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1849            @BeanReference(type = JournalContentSearchLocalService.class)
1850            protected JournalContentSearchLocalService journalContentSearchLocalService;
1851            @BeanReference(type = JournalContentSearchPersistence.class)
1852            protected JournalContentSearchPersistence journalContentSearchPersistence;
1853            @BeanReference(type = JournalFeedLocalService.class)
1854            protected JournalFeedLocalService journalFeedLocalService;
1855            @BeanReference(type = JournalFeedService.class)
1856            protected JournalFeedService journalFeedService;
1857            @BeanReference(type = JournalFeedPersistence.class)
1858            protected JournalFeedPersistence journalFeedPersistence;
1859            @BeanReference(type = JournalFeedFinder.class)
1860            protected JournalFeedFinder journalFeedFinder;
1861            @BeanReference(type = JournalStructureLocalService.class)
1862            protected JournalStructureLocalService journalStructureLocalService;
1863            @BeanReference(type = JournalStructureService.class)
1864            protected JournalStructureService journalStructureService;
1865            @BeanReference(type = JournalStructurePersistence.class)
1866            protected JournalStructurePersistence journalStructurePersistence;
1867            @BeanReference(type = JournalStructureFinder.class)
1868            protected JournalStructureFinder journalStructureFinder;
1869            @BeanReference(type = JournalTemplateLocalService.class)
1870            protected JournalTemplateLocalService journalTemplateLocalService;
1871            @BeanReference(type = JournalTemplateService.class)
1872            protected JournalTemplateService journalTemplateService;
1873            @BeanReference(type = JournalTemplatePersistence.class)
1874            protected JournalTemplatePersistence journalTemplatePersistence;
1875            @BeanReference(type = JournalTemplateFinder.class)
1876            protected JournalTemplateFinder journalTemplateFinder;
1877            @BeanReference(type = CounterLocalService.class)
1878            protected CounterLocalService counterLocalService;
1879            @BeanReference(type = MailService.class)
1880            protected MailService mailService;
1881            @BeanReference(type = CompanyLocalService.class)
1882            protected CompanyLocalService companyLocalService;
1883            @BeanReference(type = CompanyService.class)
1884            protected CompanyService companyService;
1885            @BeanReference(type = CompanyPersistence.class)
1886            protected CompanyPersistence companyPersistence;
1887            @BeanReference(type = GroupLocalService.class)
1888            protected GroupLocalService groupLocalService;
1889            @BeanReference(type = GroupService.class)
1890            protected GroupService groupService;
1891            @BeanReference(type = GroupPersistence.class)
1892            protected GroupPersistence groupPersistence;
1893            @BeanReference(type = GroupFinder.class)
1894            protected GroupFinder groupFinder;
1895            @BeanReference(type = ImageLocalService.class)
1896            protected ImageLocalService imageLocalService;
1897            @BeanReference(type = ImageService.class)
1898            protected ImageService imageService;
1899            @BeanReference(type = ImagePersistence.class)
1900            protected ImagePersistence imagePersistence;
1901            @BeanReference(type = PortletPreferencesLocalService.class)
1902            protected PortletPreferencesLocalService portletPreferencesLocalService;
1903            @BeanReference(type = PortletPreferencesService.class)
1904            protected PortletPreferencesService portletPreferencesService;
1905            @BeanReference(type = PortletPreferencesPersistence.class)
1906            protected PortletPreferencesPersistence portletPreferencesPersistence;
1907            @BeanReference(type = PortletPreferencesFinder.class)
1908            protected PortletPreferencesFinder portletPreferencesFinder;
1909            @BeanReference(type = ResourceLocalService.class)
1910            protected ResourceLocalService resourceLocalService;
1911            @BeanReference(type = ResourceService.class)
1912            protected ResourceService resourceService;
1913            @BeanReference(type = ResourcePersistence.class)
1914            protected ResourcePersistence resourcePersistence;
1915            @BeanReference(type = ResourceFinder.class)
1916            protected ResourceFinder resourceFinder;
1917            @BeanReference(type = SubscriptionLocalService.class)
1918            protected SubscriptionLocalService subscriptionLocalService;
1919            @BeanReference(type = SubscriptionPersistence.class)
1920            protected SubscriptionPersistence subscriptionPersistence;
1921            @BeanReference(type = UserLocalService.class)
1922            protected UserLocalService userLocalService;
1923            @BeanReference(type = UserService.class)
1924            protected UserService userService;
1925            @BeanReference(type = UserPersistence.class)
1926            protected UserPersistence userPersistence;
1927            @BeanReference(type = UserFinder.class)
1928            protected UserFinder userFinder;
1929            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1930            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1931            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1932            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1933            @BeanReference(type = AssetCategoryLocalService.class)
1934            protected AssetCategoryLocalService assetCategoryLocalService;
1935            @BeanReference(type = AssetCategoryService.class)
1936            protected AssetCategoryService assetCategoryService;
1937            @BeanReference(type = AssetCategoryPersistence.class)
1938            protected AssetCategoryPersistence assetCategoryPersistence;
1939            @BeanReference(type = AssetCategoryFinder.class)
1940            protected AssetCategoryFinder assetCategoryFinder;
1941            @BeanReference(type = AssetEntryLocalService.class)
1942            protected AssetEntryLocalService assetEntryLocalService;
1943            @BeanReference(type = AssetEntryService.class)
1944            protected AssetEntryService assetEntryService;
1945            @BeanReference(type = AssetEntryPersistence.class)
1946            protected AssetEntryPersistence assetEntryPersistence;
1947            @BeanReference(type = AssetEntryFinder.class)
1948            protected AssetEntryFinder assetEntryFinder;
1949            @BeanReference(type = AssetLinkLocalService.class)
1950            protected AssetLinkLocalService assetLinkLocalService;
1951            @BeanReference(type = AssetLinkPersistence.class)
1952            protected AssetLinkPersistence assetLinkPersistence;
1953            @BeanReference(type = AssetTagLocalService.class)
1954            protected AssetTagLocalService assetTagLocalService;
1955            @BeanReference(type = AssetTagService.class)
1956            protected AssetTagService assetTagService;
1957            @BeanReference(type = AssetTagPersistence.class)
1958            protected AssetTagPersistence assetTagPersistence;
1959            @BeanReference(type = AssetTagFinder.class)
1960            protected AssetTagFinder assetTagFinder;
1961            @BeanReference(type = ExpandoValueLocalService.class)
1962            protected ExpandoValueLocalService expandoValueLocalService;
1963            @BeanReference(type = ExpandoValueService.class)
1964            protected ExpandoValueService expandoValueService;
1965            @BeanReference(type = ExpandoValuePersistence.class)
1966            protected ExpandoValuePersistence expandoValuePersistence;
1967            @BeanReference(type = MBMessageLocalService.class)
1968            protected MBMessageLocalService mbMessageLocalService;
1969            @BeanReference(type = MBMessageService.class)
1970            protected MBMessageService mbMessageService;
1971            @BeanReference(type = MBMessagePersistence.class)
1972            protected MBMessagePersistence mbMessagePersistence;
1973            @BeanReference(type = MBMessageFinder.class)
1974            protected MBMessageFinder mbMessageFinder;
1975            @BeanReference(type = RatingsStatsLocalService.class)
1976            protected RatingsStatsLocalService ratingsStatsLocalService;
1977            @BeanReference(type = RatingsStatsPersistence.class)
1978            protected RatingsStatsPersistence ratingsStatsPersistence;
1979            @BeanReference(type = RatingsStatsFinder.class)
1980            protected RatingsStatsFinder ratingsStatsFinder;
1981            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1982            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1983            private static Log _log = LogFactoryUtil.getLog(JournalArticleLocalServiceBaseImpl.class);
1984            private String _beanIdentifier;
1985    }