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