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