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