001    /**
002     * Copyright (c) 2000-2010 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.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ImageLocalService;
027    import com.liferay.portal.service.ImageService;
028    import com.liferay.portal.service.ResourceLocalService;
029    import com.liferay.portal.service.ResourceService;
030    import com.liferay.portal.service.UserLocalService;
031    import com.liferay.portal.service.UserService;
032    import com.liferay.portal.service.WebDAVPropsLocalService;
033    import com.liferay.portal.service.persistence.ImagePersistence;
034    import com.liferay.portal.service.persistence.ResourceFinder;
035    import com.liferay.portal.service.persistence.ResourcePersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
039    
040    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
041    import com.liferay.portlet.expando.service.ExpandoValueService;
042    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
043    import com.liferay.portlet.journal.model.JournalTemplate;
044    import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
045    import com.liferay.portlet.journal.service.JournalArticleLocalService;
046    import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
047    import com.liferay.portlet.journal.service.JournalArticleService;
048    import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
049    import com.liferay.portlet.journal.service.JournalFeedLocalService;
050    import com.liferay.portlet.journal.service.JournalFeedService;
051    import com.liferay.portlet.journal.service.JournalStructureLocalService;
052    import com.liferay.portlet.journal.service.JournalStructureService;
053    import com.liferay.portlet.journal.service.JournalTemplateLocalService;
054    import com.liferay.portlet.journal.service.JournalTemplateService;
055    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
056    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
057    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
058    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
059    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
060    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
061    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
062    import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
063    import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
064    import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
065    import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
066    
067    import java.util.List;
068    
069    import javax.sql.DataSource;
070    
071    /**
072     * The base implementation of the journal template local service.
073     *
074     * <p>
075     * 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.JournalTemplateLocalServiceImpl}.
076     * </p>
077     *
078     * <p>
079     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil} to access the journal template local service.
080     * </p>
081     *
082     * @author Brian Wing Shun Chan
083     * @see com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl
084     * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil
085     * @generated
086     */
087    public abstract class JournalTemplateLocalServiceBaseImpl
088            implements JournalTemplateLocalService {
089            /**
090             * Adds the journal template to the database. Also notifies the appropriate model listeners.
091             *
092             * @param journalTemplate the journal template to add
093             * @return the journal template that was added
094             * @throws SystemException if a system exception occurred
095             */
096            public JournalTemplate addJournalTemplate(JournalTemplate journalTemplate)
097                    throws SystemException {
098                    journalTemplate.setNew(true);
099    
100                    return journalTemplatePersistence.update(journalTemplate, false);
101            }
102    
103            /**
104             * Creates a new journal template with the primary key. Does not add the journal template to the database.
105             *
106             * @param id the primary key for the new journal template
107             * @return the new journal template
108             */
109            public JournalTemplate createJournalTemplate(long id) {
110                    return journalTemplatePersistence.create(id);
111            }
112    
113            /**
114             * Deletes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
115             *
116             * @param id the primary key of the journal template to delete
117             * @throws PortalException if a journal template with the primary key could not be found
118             * @throws SystemException if a system exception occurred
119             */
120            public void deleteJournalTemplate(long id)
121                    throws PortalException, SystemException {
122                    journalTemplatePersistence.remove(id);
123            }
124    
125            /**
126             * Deletes the journal template from the database. Also notifies the appropriate model listeners.
127             *
128             * @param journalTemplate the journal template to delete
129             * @throws SystemException if a system exception occurred
130             */
131            public void deleteJournalTemplate(JournalTemplate journalTemplate)
132                    throws SystemException {
133                    journalTemplatePersistence.remove(journalTemplate);
134            }
135    
136            /**
137             * Performs a dynamic query on the database and returns the matching rows.
138             *
139             * @param dynamicQuery the dynamic query to search with
140             * @return the matching rows
141             * @throws SystemException if a system exception occurred
142             */
143            @SuppressWarnings("rawtypes")
144            public List dynamicQuery(DynamicQuery dynamicQuery)
145                    throws SystemException {
146                    return journalTemplatePersistence.findWithDynamicQuery(dynamicQuery);
147            }
148    
149            /**
150             * Performs a dynamic query on the database and returns a range of the matching rows.
151             *
152             * <p>
153             * 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.
154             * </p>
155             *
156             * @param dynamicQuery the dynamic query to search with
157             * @param start the lower bound of the range of model instances to return
158             * @param end the upper bound of the range of model instances to return (not inclusive)
159             * @return the range of matching rows
160             * @throws SystemException if a system exception occurred
161             */
162            @SuppressWarnings("rawtypes")
163            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
164                    throws SystemException {
165                    return journalTemplatePersistence.findWithDynamicQuery(dynamicQuery,
166                            start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query to search with
177             * @param start the lower bound of the range of model instances to return
178             * @param end the upper bound of the range of model instances to return (not inclusive)
179             * @param orderByComparator the comparator to order the results by
180             * @return the ordered range of matching rows
181             * @throws SystemException if a system exception occurred
182             */
183            @SuppressWarnings("rawtypes")
184            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
185                    OrderByComparator orderByComparator) throws SystemException {
186                    return journalTemplatePersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end, orderByComparator);
188            }
189    
190            /**
191             * Counts the number of rows that match the dynamic query.
192             *
193             * @param dynamicQuery the dynamic query to search with
194             * @return the number of rows that match the dynamic query
195             * @throws SystemException if a system exception occurred
196             */
197            public long dynamicQueryCount(DynamicQuery dynamicQuery)
198                    throws SystemException {
199                    return journalTemplatePersistence.countWithDynamicQuery(dynamicQuery);
200            }
201    
202            /**
203             * Gets the journal template with the primary key.
204             *
205             * @param id the primary key of the journal template to get
206             * @return the journal template
207             * @throws PortalException if a journal template with the primary key could not be found
208             * @throws SystemException if a system exception occurred
209             */
210            public JournalTemplate getJournalTemplate(long id)
211                    throws PortalException, SystemException {
212                    return journalTemplatePersistence.findByPrimaryKey(id);
213            }
214    
215            /**
216             * Gets the journal template with the UUID and group id.
217             *
218             * @param uuid the UUID of journal template to get
219             * @param groupId the group id of the journal template to get
220             * @return the journal template
221             * @throws PortalException if a journal template with the UUID and group id could not be found
222             * @throws SystemException if a system exception occurred
223             */
224            public JournalTemplate getJournalTemplateByUuidAndGroupId(String uuid,
225                    long groupId) throws PortalException, SystemException {
226                    return journalTemplatePersistence.findByUUID_G(uuid, groupId);
227            }
228    
229            /**
230             * Gets a range of all the journal templates.
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 start the lower bound of the range of journal templates to return
237             * @param end the upper bound of the range of journal templates to return (not inclusive)
238             * @return the range of journal templates
239             * @throws SystemException if a system exception occurred
240             */
241            public List<JournalTemplate> getJournalTemplates(int start, int end)
242                    throws SystemException {
243                    return journalTemplatePersistence.findAll(start, end);
244            }
245    
246            /**
247             * Gets the number of journal templates.
248             *
249             * @return the number of journal templates
250             * @throws SystemException if a system exception occurred
251             */
252            public int getJournalTemplatesCount() throws SystemException {
253                    return journalTemplatePersistence.countAll();
254            }
255    
256            /**
257             * Updates the journal template in the database. Also notifies the appropriate model listeners.
258             *
259             * @param journalTemplate the journal template to update
260             * @return the journal template that was updated
261             * @throws SystemException if a system exception occurred
262             */
263            public JournalTemplate updateJournalTemplate(
264                    JournalTemplate journalTemplate) throws SystemException {
265                    journalTemplate.setNew(false);
266    
267                    return journalTemplatePersistence.update(journalTemplate, true);
268            }
269    
270            /**
271             * Updates the journal template in the database. Also notifies the appropriate model listeners.
272             *
273             * @param journalTemplate the journal template to update
274             * @param merge whether to merge the journal template 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.
275             * @return the journal template that was updated
276             * @throws SystemException if a system exception occurred
277             */
278            public JournalTemplate updateJournalTemplate(
279                    JournalTemplate journalTemplate, boolean merge)
280                    throws SystemException {
281                    journalTemplate.setNew(false);
282    
283                    return journalTemplatePersistence.update(journalTemplate, merge);
284            }
285    
286            /**
287             * Gets the journal article local service.
288             *
289             * @return the journal article local service
290             */
291            public JournalArticleLocalService getJournalArticleLocalService() {
292                    return journalArticleLocalService;
293            }
294    
295            /**
296             * Sets the journal article local service.
297             *
298             * @param journalArticleLocalService the journal article local service
299             */
300            public void setJournalArticleLocalService(
301                    JournalArticleLocalService journalArticleLocalService) {
302                    this.journalArticleLocalService = journalArticleLocalService;
303            }
304    
305            /**
306             * Gets the journal article remote service.
307             *
308             * @return the journal article remote service
309             */
310            public JournalArticleService getJournalArticleService() {
311                    return journalArticleService;
312            }
313    
314            /**
315             * Sets the journal article remote service.
316             *
317             * @param journalArticleService the journal article remote service
318             */
319            public void setJournalArticleService(
320                    JournalArticleService journalArticleService) {
321                    this.journalArticleService = journalArticleService;
322            }
323    
324            /**
325             * Gets the journal article persistence.
326             *
327             * @return the journal article persistence
328             */
329            public JournalArticlePersistence getJournalArticlePersistence() {
330                    return journalArticlePersistence;
331            }
332    
333            /**
334             * Sets the journal article persistence.
335             *
336             * @param journalArticlePersistence the journal article persistence
337             */
338            public void setJournalArticlePersistence(
339                    JournalArticlePersistence journalArticlePersistence) {
340                    this.journalArticlePersistence = journalArticlePersistence;
341            }
342    
343            /**
344             * Gets the journal article finder.
345             *
346             * @return the journal article finder
347             */
348            public JournalArticleFinder getJournalArticleFinder() {
349                    return journalArticleFinder;
350            }
351    
352            /**
353             * Sets the journal article finder.
354             *
355             * @param journalArticleFinder the journal article finder
356             */
357            public void setJournalArticleFinder(
358                    JournalArticleFinder journalArticleFinder) {
359                    this.journalArticleFinder = journalArticleFinder;
360            }
361    
362            /**
363             * Gets the journal article image local service.
364             *
365             * @return the journal article image local service
366             */
367            public JournalArticleImageLocalService getJournalArticleImageLocalService() {
368                    return journalArticleImageLocalService;
369            }
370    
371            /**
372             * Sets the journal article image local service.
373             *
374             * @param journalArticleImageLocalService the journal article image local service
375             */
376            public void setJournalArticleImageLocalService(
377                    JournalArticleImageLocalService journalArticleImageLocalService) {
378                    this.journalArticleImageLocalService = journalArticleImageLocalService;
379            }
380    
381            /**
382             * Gets the journal article image persistence.
383             *
384             * @return the journal article image persistence
385             */
386            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
387                    return journalArticleImagePersistence;
388            }
389    
390            /**
391             * Sets the journal article image persistence.
392             *
393             * @param journalArticleImagePersistence the journal article image persistence
394             */
395            public void setJournalArticleImagePersistence(
396                    JournalArticleImagePersistence journalArticleImagePersistence) {
397                    this.journalArticleImagePersistence = journalArticleImagePersistence;
398            }
399    
400            /**
401             * Gets the journal article resource local service.
402             *
403             * @return the journal article resource local service
404             */
405            public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
406                    return journalArticleResourceLocalService;
407            }
408    
409            /**
410             * Sets the journal article resource local service.
411             *
412             * @param journalArticleResourceLocalService the journal article resource local service
413             */
414            public void setJournalArticleResourceLocalService(
415                    JournalArticleResourceLocalService journalArticleResourceLocalService) {
416                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
417            }
418    
419            /**
420             * Gets the journal article resource persistence.
421             *
422             * @return the journal article resource persistence
423             */
424            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
425                    return journalArticleResourcePersistence;
426            }
427    
428            /**
429             * Sets the journal article resource persistence.
430             *
431             * @param journalArticleResourcePersistence the journal article resource persistence
432             */
433            public void setJournalArticleResourcePersistence(
434                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
435                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
436            }
437    
438            /**
439             * Gets the journal content search local service.
440             *
441             * @return the journal content search local service
442             */
443            public JournalContentSearchLocalService getJournalContentSearchLocalService() {
444                    return journalContentSearchLocalService;
445            }
446    
447            /**
448             * Sets the journal content search local service.
449             *
450             * @param journalContentSearchLocalService the journal content search local service
451             */
452            public void setJournalContentSearchLocalService(
453                    JournalContentSearchLocalService journalContentSearchLocalService) {
454                    this.journalContentSearchLocalService = journalContentSearchLocalService;
455            }
456    
457            /**
458             * Gets the journal content search persistence.
459             *
460             * @return the journal content search persistence
461             */
462            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
463                    return journalContentSearchPersistence;
464            }
465    
466            /**
467             * Sets the journal content search persistence.
468             *
469             * @param journalContentSearchPersistence the journal content search persistence
470             */
471            public void setJournalContentSearchPersistence(
472                    JournalContentSearchPersistence journalContentSearchPersistence) {
473                    this.journalContentSearchPersistence = journalContentSearchPersistence;
474            }
475    
476            /**
477             * Gets the journal feed local service.
478             *
479             * @return the journal feed local service
480             */
481            public JournalFeedLocalService getJournalFeedLocalService() {
482                    return journalFeedLocalService;
483            }
484    
485            /**
486             * Sets the journal feed local service.
487             *
488             * @param journalFeedLocalService the journal feed local service
489             */
490            public void setJournalFeedLocalService(
491                    JournalFeedLocalService journalFeedLocalService) {
492                    this.journalFeedLocalService = journalFeedLocalService;
493            }
494    
495            /**
496             * Gets the journal feed remote service.
497             *
498             * @return the journal feed remote service
499             */
500            public JournalFeedService getJournalFeedService() {
501                    return journalFeedService;
502            }
503    
504            /**
505             * Sets the journal feed remote service.
506             *
507             * @param journalFeedService the journal feed remote service
508             */
509            public void setJournalFeedService(JournalFeedService journalFeedService) {
510                    this.journalFeedService = journalFeedService;
511            }
512    
513            /**
514             * Gets the journal feed persistence.
515             *
516             * @return the journal feed persistence
517             */
518            public JournalFeedPersistence getJournalFeedPersistence() {
519                    return journalFeedPersistence;
520            }
521    
522            /**
523             * Sets the journal feed persistence.
524             *
525             * @param journalFeedPersistence the journal feed persistence
526             */
527            public void setJournalFeedPersistence(
528                    JournalFeedPersistence journalFeedPersistence) {
529                    this.journalFeedPersistence = journalFeedPersistence;
530            }
531    
532            /**
533             * Gets the journal feed finder.
534             *
535             * @return the journal feed finder
536             */
537            public JournalFeedFinder getJournalFeedFinder() {
538                    return journalFeedFinder;
539            }
540    
541            /**
542             * Sets the journal feed finder.
543             *
544             * @param journalFeedFinder the journal feed finder
545             */
546            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
547                    this.journalFeedFinder = journalFeedFinder;
548            }
549    
550            /**
551             * Gets the journal structure local service.
552             *
553             * @return the journal structure local service
554             */
555            public JournalStructureLocalService getJournalStructureLocalService() {
556                    return journalStructureLocalService;
557            }
558    
559            /**
560             * Sets the journal structure local service.
561             *
562             * @param journalStructureLocalService the journal structure local service
563             */
564            public void setJournalStructureLocalService(
565                    JournalStructureLocalService journalStructureLocalService) {
566                    this.journalStructureLocalService = journalStructureLocalService;
567            }
568    
569            /**
570             * Gets the journal structure remote service.
571             *
572             * @return the journal structure remote service
573             */
574            public JournalStructureService getJournalStructureService() {
575                    return journalStructureService;
576            }
577    
578            /**
579             * Sets the journal structure remote service.
580             *
581             * @param journalStructureService the journal structure remote service
582             */
583            public void setJournalStructureService(
584                    JournalStructureService journalStructureService) {
585                    this.journalStructureService = journalStructureService;
586            }
587    
588            /**
589             * Gets the journal structure persistence.
590             *
591             * @return the journal structure persistence
592             */
593            public JournalStructurePersistence getJournalStructurePersistence() {
594                    return journalStructurePersistence;
595            }
596    
597            /**
598             * Sets the journal structure persistence.
599             *
600             * @param journalStructurePersistence the journal structure persistence
601             */
602            public void setJournalStructurePersistence(
603                    JournalStructurePersistence journalStructurePersistence) {
604                    this.journalStructurePersistence = journalStructurePersistence;
605            }
606    
607            /**
608             * Gets the journal structure finder.
609             *
610             * @return the journal structure finder
611             */
612            public JournalStructureFinder getJournalStructureFinder() {
613                    return journalStructureFinder;
614            }
615    
616            /**
617             * Sets the journal structure finder.
618             *
619             * @param journalStructureFinder the journal structure finder
620             */
621            public void setJournalStructureFinder(
622                    JournalStructureFinder journalStructureFinder) {
623                    this.journalStructureFinder = journalStructureFinder;
624            }
625    
626            /**
627             * Gets the journal template local service.
628             *
629             * @return the journal template local service
630             */
631            public JournalTemplateLocalService getJournalTemplateLocalService() {
632                    return journalTemplateLocalService;
633            }
634    
635            /**
636             * Sets the journal template local service.
637             *
638             * @param journalTemplateLocalService the journal template local service
639             */
640            public void setJournalTemplateLocalService(
641                    JournalTemplateLocalService journalTemplateLocalService) {
642                    this.journalTemplateLocalService = journalTemplateLocalService;
643            }
644    
645            /**
646             * Gets the journal template remote service.
647             *
648             * @return the journal template remote service
649             */
650            public JournalTemplateService getJournalTemplateService() {
651                    return journalTemplateService;
652            }
653    
654            /**
655             * Sets the journal template remote service.
656             *
657             * @param journalTemplateService the journal template remote service
658             */
659            public void setJournalTemplateService(
660                    JournalTemplateService journalTemplateService) {
661                    this.journalTemplateService = journalTemplateService;
662            }
663    
664            /**
665             * Gets the journal template persistence.
666             *
667             * @return the journal template persistence
668             */
669            public JournalTemplatePersistence getJournalTemplatePersistence() {
670                    return journalTemplatePersistence;
671            }
672    
673            /**
674             * Sets the journal template persistence.
675             *
676             * @param journalTemplatePersistence the journal template persistence
677             */
678            public void setJournalTemplatePersistence(
679                    JournalTemplatePersistence journalTemplatePersistence) {
680                    this.journalTemplatePersistence = journalTemplatePersistence;
681            }
682    
683            /**
684             * Gets the journal template finder.
685             *
686             * @return the journal template finder
687             */
688            public JournalTemplateFinder getJournalTemplateFinder() {
689                    return journalTemplateFinder;
690            }
691    
692            /**
693             * Sets the journal template finder.
694             *
695             * @param journalTemplateFinder the journal template finder
696             */
697            public void setJournalTemplateFinder(
698                    JournalTemplateFinder journalTemplateFinder) {
699                    this.journalTemplateFinder = journalTemplateFinder;
700            }
701    
702            /**
703             * Gets the counter local service.
704             *
705             * @return the counter local service
706             */
707            public CounterLocalService getCounterLocalService() {
708                    return counterLocalService;
709            }
710    
711            /**
712             * Sets the counter local service.
713             *
714             * @param counterLocalService the counter local service
715             */
716            public void setCounterLocalService(CounterLocalService counterLocalService) {
717                    this.counterLocalService = counterLocalService;
718            }
719    
720            /**
721             * Gets the image local service.
722             *
723             * @return the image local service
724             */
725            public ImageLocalService getImageLocalService() {
726                    return imageLocalService;
727            }
728    
729            /**
730             * Sets the image local service.
731             *
732             * @param imageLocalService the image local service
733             */
734            public void setImageLocalService(ImageLocalService imageLocalService) {
735                    this.imageLocalService = imageLocalService;
736            }
737    
738            /**
739             * Gets the image remote service.
740             *
741             * @return the image remote service
742             */
743            public ImageService getImageService() {
744                    return imageService;
745            }
746    
747            /**
748             * Sets the image remote service.
749             *
750             * @param imageService the image remote service
751             */
752            public void setImageService(ImageService imageService) {
753                    this.imageService = imageService;
754            }
755    
756            /**
757             * Gets the image persistence.
758             *
759             * @return the image persistence
760             */
761            public ImagePersistence getImagePersistence() {
762                    return imagePersistence;
763            }
764    
765            /**
766             * Sets the image persistence.
767             *
768             * @param imagePersistence the image persistence
769             */
770            public void setImagePersistence(ImagePersistence imagePersistence) {
771                    this.imagePersistence = imagePersistence;
772            }
773    
774            /**
775             * Gets the resource local service.
776             *
777             * @return the resource local service
778             */
779            public ResourceLocalService getResourceLocalService() {
780                    return resourceLocalService;
781            }
782    
783            /**
784             * Sets the resource local service.
785             *
786             * @param resourceLocalService the resource local service
787             */
788            public void setResourceLocalService(
789                    ResourceLocalService resourceLocalService) {
790                    this.resourceLocalService = resourceLocalService;
791            }
792    
793            /**
794             * Gets the resource remote service.
795             *
796             * @return the resource remote service
797             */
798            public ResourceService getResourceService() {
799                    return resourceService;
800            }
801    
802            /**
803             * Sets the resource remote service.
804             *
805             * @param resourceService the resource remote service
806             */
807            public void setResourceService(ResourceService resourceService) {
808                    this.resourceService = resourceService;
809            }
810    
811            /**
812             * Gets the resource persistence.
813             *
814             * @return the resource persistence
815             */
816            public ResourcePersistence getResourcePersistence() {
817                    return resourcePersistence;
818            }
819    
820            /**
821             * Sets the resource persistence.
822             *
823             * @param resourcePersistence the resource persistence
824             */
825            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
826                    this.resourcePersistence = resourcePersistence;
827            }
828    
829            /**
830             * Gets the resource finder.
831             *
832             * @return the resource finder
833             */
834            public ResourceFinder getResourceFinder() {
835                    return resourceFinder;
836            }
837    
838            /**
839             * Sets the resource finder.
840             *
841             * @param resourceFinder the resource finder
842             */
843            public void setResourceFinder(ResourceFinder resourceFinder) {
844                    this.resourceFinder = resourceFinder;
845            }
846    
847            /**
848             * Gets the user local service.
849             *
850             * @return the user local service
851             */
852            public UserLocalService getUserLocalService() {
853                    return userLocalService;
854            }
855    
856            /**
857             * Sets the user local service.
858             *
859             * @param userLocalService the user local service
860             */
861            public void setUserLocalService(UserLocalService userLocalService) {
862                    this.userLocalService = userLocalService;
863            }
864    
865            /**
866             * Gets the user remote service.
867             *
868             * @return the user remote service
869             */
870            public UserService getUserService() {
871                    return userService;
872            }
873    
874            /**
875             * Sets the user remote service.
876             *
877             * @param userService the user remote service
878             */
879            public void setUserService(UserService userService) {
880                    this.userService = userService;
881            }
882    
883            /**
884             * Gets the user persistence.
885             *
886             * @return the user persistence
887             */
888            public UserPersistence getUserPersistence() {
889                    return userPersistence;
890            }
891    
892            /**
893             * Sets the user persistence.
894             *
895             * @param userPersistence the user persistence
896             */
897            public void setUserPersistence(UserPersistence userPersistence) {
898                    this.userPersistence = userPersistence;
899            }
900    
901            /**
902             * Gets the user finder.
903             *
904             * @return the user finder
905             */
906            public UserFinder getUserFinder() {
907                    return userFinder;
908            }
909    
910            /**
911             * Sets the user finder.
912             *
913             * @param userFinder the user finder
914             */
915            public void setUserFinder(UserFinder userFinder) {
916                    this.userFinder = userFinder;
917            }
918    
919            /**
920             * Gets the web d a v props local service.
921             *
922             * @return the web d a v props local service
923             */
924            public WebDAVPropsLocalService getWebDAVPropsLocalService() {
925                    return webDAVPropsLocalService;
926            }
927    
928            /**
929             * Sets the web d a v props local service.
930             *
931             * @param webDAVPropsLocalService the web d a v props local service
932             */
933            public void setWebDAVPropsLocalService(
934                    WebDAVPropsLocalService webDAVPropsLocalService) {
935                    this.webDAVPropsLocalService = webDAVPropsLocalService;
936            }
937    
938            /**
939             * Gets the web d a v props persistence.
940             *
941             * @return the web d a v props persistence
942             */
943            public WebDAVPropsPersistence getWebDAVPropsPersistence() {
944                    return webDAVPropsPersistence;
945            }
946    
947            /**
948             * Sets the web d a v props persistence.
949             *
950             * @param webDAVPropsPersistence the web d a v props persistence
951             */
952            public void setWebDAVPropsPersistence(
953                    WebDAVPropsPersistence webDAVPropsPersistence) {
954                    this.webDAVPropsPersistence = webDAVPropsPersistence;
955            }
956    
957            /**
958             * Gets the expando value local service.
959             *
960             * @return the expando value local service
961             */
962            public ExpandoValueLocalService getExpandoValueLocalService() {
963                    return expandoValueLocalService;
964            }
965    
966            /**
967             * Sets the expando value local service.
968             *
969             * @param expandoValueLocalService the expando value local service
970             */
971            public void setExpandoValueLocalService(
972                    ExpandoValueLocalService expandoValueLocalService) {
973                    this.expandoValueLocalService = expandoValueLocalService;
974            }
975    
976            /**
977             * Gets the expando value remote service.
978             *
979             * @return the expando value remote service
980             */
981            public ExpandoValueService getExpandoValueService() {
982                    return expandoValueService;
983            }
984    
985            /**
986             * Sets the expando value remote service.
987             *
988             * @param expandoValueService the expando value remote service
989             */
990            public void setExpandoValueService(ExpandoValueService expandoValueService) {
991                    this.expandoValueService = expandoValueService;
992            }
993    
994            /**
995             * Gets the expando value persistence.
996             *
997             * @return the expando value persistence
998             */
999            public ExpandoValuePersistence getExpandoValuePersistence() {
1000                    return expandoValuePersistence;
1001            }
1002    
1003            /**
1004             * Sets the expando value persistence.
1005             *
1006             * @param expandoValuePersistence the expando value persistence
1007             */
1008            public void setExpandoValuePersistence(
1009                    ExpandoValuePersistence expandoValuePersistence) {
1010                    this.expandoValuePersistence = expandoValuePersistence;
1011            }
1012    
1013            /**
1014             * Performs an SQL query.
1015             *
1016             * @param sql the sql query to perform
1017             */
1018            protected void runSQL(String sql) throws SystemException {
1019                    try {
1020                            DataSource dataSource = journalTemplatePersistence.getDataSource();
1021    
1022                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1023                                            sql, new int[0]);
1024    
1025                            sqlUpdate.update();
1026                    }
1027                    catch (Exception e) {
1028                            throw new SystemException(e);
1029                    }
1030            }
1031    
1032            @BeanReference(type = JournalArticleLocalService.class)
1033            protected JournalArticleLocalService journalArticleLocalService;
1034            @BeanReference(type = JournalArticleService.class)
1035            protected JournalArticleService journalArticleService;
1036            @BeanReference(type = JournalArticlePersistence.class)
1037            protected JournalArticlePersistence journalArticlePersistence;
1038            @BeanReference(type = JournalArticleFinder.class)
1039            protected JournalArticleFinder journalArticleFinder;
1040            @BeanReference(type = JournalArticleImageLocalService.class)
1041            protected JournalArticleImageLocalService journalArticleImageLocalService;
1042            @BeanReference(type = JournalArticleImagePersistence.class)
1043            protected JournalArticleImagePersistence journalArticleImagePersistence;
1044            @BeanReference(type = JournalArticleResourceLocalService.class)
1045            protected JournalArticleResourceLocalService journalArticleResourceLocalService;
1046            @BeanReference(type = JournalArticleResourcePersistence.class)
1047            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1048            @BeanReference(type = JournalContentSearchLocalService.class)
1049            protected JournalContentSearchLocalService journalContentSearchLocalService;
1050            @BeanReference(type = JournalContentSearchPersistence.class)
1051            protected JournalContentSearchPersistence journalContentSearchPersistence;
1052            @BeanReference(type = JournalFeedLocalService.class)
1053            protected JournalFeedLocalService journalFeedLocalService;
1054            @BeanReference(type = JournalFeedService.class)
1055            protected JournalFeedService journalFeedService;
1056            @BeanReference(type = JournalFeedPersistence.class)
1057            protected JournalFeedPersistence journalFeedPersistence;
1058            @BeanReference(type = JournalFeedFinder.class)
1059            protected JournalFeedFinder journalFeedFinder;
1060            @BeanReference(type = JournalStructureLocalService.class)
1061            protected JournalStructureLocalService journalStructureLocalService;
1062            @BeanReference(type = JournalStructureService.class)
1063            protected JournalStructureService journalStructureService;
1064            @BeanReference(type = JournalStructurePersistence.class)
1065            protected JournalStructurePersistence journalStructurePersistence;
1066            @BeanReference(type = JournalStructureFinder.class)
1067            protected JournalStructureFinder journalStructureFinder;
1068            @BeanReference(type = JournalTemplateLocalService.class)
1069            protected JournalTemplateLocalService journalTemplateLocalService;
1070            @BeanReference(type = JournalTemplateService.class)
1071            protected JournalTemplateService journalTemplateService;
1072            @BeanReference(type = JournalTemplatePersistence.class)
1073            protected JournalTemplatePersistence journalTemplatePersistence;
1074            @BeanReference(type = JournalTemplateFinder.class)
1075            protected JournalTemplateFinder journalTemplateFinder;
1076            @BeanReference(type = CounterLocalService.class)
1077            protected CounterLocalService counterLocalService;
1078            @BeanReference(type = ImageLocalService.class)
1079            protected ImageLocalService imageLocalService;
1080            @BeanReference(type = ImageService.class)
1081            protected ImageService imageService;
1082            @BeanReference(type = ImagePersistence.class)
1083            protected ImagePersistence imagePersistence;
1084            @BeanReference(type = ResourceLocalService.class)
1085            protected ResourceLocalService resourceLocalService;
1086            @BeanReference(type = ResourceService.class)
1087            protected ResourceService resourceService;
1088            @BeanReference(type = ResourcePersistence.class)
1089            protected ResourcePersistence resourcePersistence;
1090            @BeanReference(type = ResourceFinder.class)
1091            protected ResourceFinder resourceFinder;
1092            @BeanReference(type = UserLocalService.class)
1093            protected UserLocalService userLocalService;
1094            @BeanReference(type = UserService.class)
1095            protected UserService userService;
1096            @BeanReference(type = UserPersistence.class)
1097            protected UserPersistence userPersistence;
1098            @BeanReference(type = UserFinder.class)
1099            protected UserFinder userFinder;
1100            @BeanReference(type = WebDAVPropsLocalService.class)
1101            protected WebDAVPropsLocalService webDAVPropsLocalService;
1102            @BeanReference(type = WebDAVPropsPersistence.class)
1103            protected WebDAVPropsPersistence webDAVPropsPersistence;
1104            @BeanReference(type = ExpandoValueLocalService.class)
1105            protected ExpandoValueLocalService expandoValueLocalService;
1106            @BeanReference(type = ExpandoValueService.class)
1107            protected ExpandoValueService expandoValueService;
1108            @BeanReference(type = ExpandoValuePersistence.class)
1109            protected ExpandoValuePersistence expandoValuePersistence;
1110    }