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