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