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