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