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