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