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