001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.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.exception.SystemException;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.ResourceService;
027    import com.liferay.portal.service.UserLocalService;
028    import com.liferay.portal.service.UserService;
029    import com.liferay.portal.service.persistence.ResourceFinder;
030    import com.liferay.portal.service.persistence.ResourcePersistence;
031    import com.liferay.portal.service.persistence.UserFinder;
032    import com.liferay.portal.service.persistence.UserPersistence;
033    
034    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
035    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
036    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
037    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
038    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
039    import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
040    import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
041    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
042    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
043    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
044    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
045    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
046    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
047    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
048    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
049    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
050    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
051    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
052    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * The base implementation of the d d m structure remote service.
058     *
059     * <p>
060     * 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.dynamicdatamapping.service.impl.DDMStructureServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl
065     * @see com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil
066     * @generated
067     */
068    public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
069            implements DDMStructureService, IdentifiableBean {
070            /*
071             * NOTE FOR DEVELOPERS:
072             *
073             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil} to access the d d m structure remote service.
074             */
075    
076            /**
077             * Returns the d d m content local service.
078             *
079             * @return the d d m content local service
080             */
081            public DDMContentLocalService getDDMContentLocalService() {
082                    return ddmContentLocalService;
083            }
084    
085            /**
086             * Sets the d d m content local service.
087             *
088             * @param ddmContentLocalService the d d m content local service
089             */
090            public void setDDMContentLocalService(
091                    DDMContentLocalService ddmContentLocalService) {
092                    this.ddmContentLocalService = ddmContentLocalService;
093            }
094    
095            /**
096             * Returns the d d m content persistence.
097             *
098             * @return the d d m content persistence
099             */
100            public DDMContentPersistence getDDMContentPersistence() {
101                    return ddmContentPersistence;
102            }
103    
104            /**
105             * Sets the d d m content persistence.
106             *
107             * @param ddmContentPersistence the d d m content persistence
108             */
109            public void setDDMContentPersistence(
110                    DDMContentPersistence ddmContentPersistence) {
111                    this.ddmContentPersistence = ddmContentPersistence;
112            }
113    
114            /**
115             * Returns the d d m storage link local service.
116             *
117             * @return the d d m storage link local service
118             */
119            public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
120                    return ddmStorageLinkLocalService;
121            }
122    
123            /**
124             * Sets the d d m storage link local service.
125             *
126             * @param ddmStorageLinkLocalService the d d m storage link local service
127             */
128            public void setDDMStorageLinkLocalService(
129                    DDMStorageLinkLocalService ddmStorageLinkLocalService) {
130                    this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
131            }
132    
133            /**
134             * Returns the d d m storage link persistence.
135             *
136             * @return the d d m storage link persistence
137             */
138            public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
139                    return ddmStorageLinkPersistence;
140            }
141    
142            /**
143             * Sets the d d m storage link persistence.
144             *
145             * @param ddmStorageLinkPersistence the d d m storage link persistence
146             */
147            public void setDDMStorageLinkPersistence(
148                    DDMStorageLinkPersistence ddmStorageLinkPersistence) {
149                    this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
150            }
151    
152            /**
153             * Returns the d d m structure local service.
154             *
155             * @return the d d m structure local service
156             */
157            public DDMStructureLocalService getDDMStructureLocalService() {
158                    return ddmStructureLocalService;
159            }
160    
161            /**
162             * Sets the d d m structure local service.
163             *
164             * @param ddmStructureLocalService the d d m structure local service
165             */
166            public void setDDMStructureLocalService(
167                    DDMStructureLocalService ddmStructureLocalService) {
168                    this.ddmStructureLocalService = ddmStructureLocalService;
169            }
170    
171            /**
172             * Returns the d d m structure remote service.
173             *
174             * @return the d d m structure remote service
175             */
176            public DDMStructureService getDDMStructureService() {
177                    return ddmStructureService;
178            }
179    
180            /**
181             * Sets the d d m structure remote service.
182             *
183             * @param ddmStructureService the d d m structure remote service
184             */
185            public void setDDMStructureService(DDMStructureService ddmStructureService) {
186                    this.ddmStructureService = ddmStructureService;
187            }
188    
189            /**
190             * Returns the d d m structure persistence.
191             *
192             * @return the d d m structure persistence
193             */
194            public DDMStructurePersistence getDDMStructurePersistence() {
195                    return ddmStructurePersistence;
196            }
197    
198            /**
199             * Sets the d d m structure persistence.
200             *
201             * @param ddmStructurePersistence the d d m structure persistence
202             */
203            public void setDDMStructurePersistence(
204                    DDMStructurePersistence ddmStructurePersistence) {
205                    this.ddmStructurePersistence = ddmStructurePersistence;
206            }
207    
208            /**
209             * Returns the d d m structure finder.
210             *
211             * @return the d d m structure finder
212             */
213            public DDMStructureFinder getDDMStructureFinder() {
214                    return ddmStructureFinder;
215            }
216    
217            /**
218             * Sets the d d m structure finder.
219             *
220             * @param ddmStructureFinder the d d m structure finder
221             */
222            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
223                    this.ddmStructureFinder = ddmStructureFinder;
224            }
225    
226            /**
227             * Returns the d d m structure link local service.
228             *
229             * @return the d d m structure link local service
230             */
231            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
232                    return ddmStructureLinkLocalService;
233            }
234    
235            /**
236             * Sets the d d m structure link local service.
237             *
238             * @param ddmStructureLinkLocalService the d d m structure link local service
239             */
240            public void setDDMStructureLinkLocalService(
241                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
242                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
243            }
244    
245            /**
246             * Returns the d d m structure link persistence.
247             *
248             * @return the d d m structure link persistence
249             */
250            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
251                    return ddmStructureLinkPersistence;
252            }
253    
254            /**
255             * Sets the d d m structure link persistence.
256             *
257             * @param ddmStructureLinkPersistence the d d m structure link persistence
258             */
259            public void setDDMStructureLinkPersistence(
260                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
261                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
262            }
263    
264            /**
265             * Returns the d d m template local service.
266             *
267             * @return the d d m template local service
268             */
269            public DDMTemplateLocalService getDDMTemplateLocalService() {
270                    return ddmTemplateLocalService;
271            }
272    
273            /**
274             * Sets the d d m template local service.
275             *
276             * @param ddmTemplateLocalService the d d m template local service
277             */
278            public void setDDMTemplateLocalService(
279                    DDMTemplateLocalService ddmTemplateLocalService) {
280                    this.ddmTemplateLocalService = ddmTemplateLocalService;
281            }
282    
283            /**
284             * Returns the d d m template remote service.
285             *
286             * @return the d d m template remote service
287             */
288            public DDMTemplateService getDDMTemplateService() {
289                    return ddmTemplateService;
290            }
291    
292            /**
293             * Sets the d d m template remote service.
294             *
295             * @param ddmTemplateService the d d m template remote service
296             */
297            public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
298                    this.ddmTemplateService = ddmTemplateService;
299            }
300    
301            /**
302             * Returns the d d m template persistence.
303             *
304             * @return the d d m template persistence
305             */
306            public DDMTemplatePersistence getDDMTemplatePersistence() {
307                    return ddmTemplatePersistence;
308            }
309    
310            /**
311             * Sets the d d m template persistence.
312             *
313             * @param ddmTemplatePersistence the d d m template persistence
314             */
315            public void setDDMTemplatePersistence(
316                    DDMTemplatePersistence ddmTemplatePersistence) {
317                    this.ddmTemplatePersistence = ddmTemplatePersistence;
318            }
319    
320            /**
321             * Returns the d d m template finder.
322             *
323             * @return the d d m template finder
324             */
325            public DDMTemplateFinder getDDMTemplateFinder() {
326                    return ddmTemplateFinder;
327            }
328    
329            /**
330             * Sets the d d m template finder.
331             *
332             * @param ddmTemplateFinder the d d m template finder
333             */
334            public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
335                    this.ddmTemplateFinder = ddmTemplateFinder;
336            }
337    
338            /**
339             * Returns the counter local service.
340             *
341             * @return the counter local service
342             */
343            public CounterLocalService getCounterLocalService() {
344                    return counterLocalService;
345            }
346    
347            /**
348             * Sets the counter local service.
349             *
350             * @param counterLocalService the counter local service
351             */
352            public void setCounterLocalService(CounterLocalService counterLocalService) {
353                    this.counterLocalService = counterLocalService;
354            }
355    
356            /**
357             * Returns the resource local service.
358             *
359             * @return the resource local service
360             */
361            public ResourceLocalService getResourceLocalService() {
362                    return resourceLocalService;
363            }
364    
365            /**
366             * Sets the resource local service.
367             *
368             * @param resourceLocalService the resource local service
369             */
370            public void setResourceLocalService(
371                    ResourceLocalService resourceLocalService) {
372                    this.resourceLocalService = resourceLocalService;
373            }
374    
375            /**
376             * Returns the resource remote service.
377             *
378             * @return the resource remote service
379             */
380            public ResourceService getResourceService() {
381                    return resourceService;
382            }
383    
384            /**
385             * Sets the resource remote service.
386             *
387             * @param resourceService the resource remote service
388             */
389            public void setResourceService(ResourceService resourceService) {
390                    this.resourceService = resourceService;
391            }
392    
393            /**
394             * Returns the resource persistence.
395             *
396             * @return the resource persistence
397             */
398            public ResourcePersistence getResourcePersistence() {
399                    return resourcePersistence;
400            }
401    
402            /**
403             * Sets the resource persistence.
404             *
405             * @param resourcePersistence the resource persistence
406             */
407            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
408                    this.resourcePersistence = resourcePersistence;
409            }
410    
411            /**
412             * Returns the resource finder.
413             *
414             * @return the resource finder
415             */
416            public ResourceFinder getResourceFinder() {
417                    return resourceFinder;
418            }
419    
420            /**
421             * Sets the resource finder.
422             *
423             * @param resourceFinder the resource finder
424             */
425            public void setResourceFinder(ResourceFinder resourceFinder) {
426                    this.resourceFinder = resourceFinder;
427            }
428    
429            /**
430             * Returns the user local service.
431             *
432             * @return the user local service
433             */
434            public UserLocalService getUserLocalService() {
435                    return userLocalService;
436            }
437    
438            /**
439             * Sets the user local service.
440             *
441             * @param userLocalService the user local service
442             */
443            public void setUserLocalService(UserLocalService userLocalService) {
444                    this.userLocalService = userLocalService;
445            }
446    
447            /**
448             * Returns the user remote service.
449             *
450             * @return the user remote service
451             */
452            public UserService getUserService() {
453                    return userService;
454            }
455    
456            /**
457             * Sets the user remote service.
458             *
459             * @param userService the user remote service
460             */
461            public void setUserService(UserService userService) {
462                    this.userService = userService;
463            }
464    
465            /**
466             * Returns the user persistence.
467             *
468             * @return the user persistence
469             */
470            public UserPersistence getUserPersistence() {
471                    return userPersistence;
472            }
473    
474            /**
475             * Sets the user persistence.
476             *
477             * @param userPersistence the user persistence
478             */
479            public void setUserPersistence(UserPersistence userPersistence) {
480                    this.userPersistence = userPersistence;
481            }
482    
483            /**
484             * Returns the user finder.
485             *
486             * @return the user finder
487             */
488            public UserFinder getUserFinder() {
489                    return userFinder;
490            }
491    
492            /**
493             * Sets the user finder.
494             *
495             * @param userFinder the user finder
496             */
497            public void setUserFinder(UserFinder userFinder) {
498                    this.userFinder = userFinder;
499            }
500    
501            /**
502             * Returns the document library file entry type local service.
503             *
504             * @return the document library file entry type local service
505             */
506            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
507                    return dlFileEntryTypeLocalService;
508            }
509    
510            /**
511             * Sets the document library file entry type local service.
512             *
513             * @param dlFileEntryTypeLocalService the document library file entry type local service
514             */
515            public void setDLFileEntryTypeLocalService(
516                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
517                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
518            }
519    
520            /**
521             * Returns the document library file entry type remote service.
522             *
523             * @return the document library file entry type remote service
524             */
525            public DLFileEntryTypeService getDLFileEntryTypeService() {
526                    return dlFileEntryTypeService;
527            }
528    
529            /**
530             * Sets the document library file entry type remote service.
531             *
532             * @param dlFileEntryTypeService the document library file entry type remote service
533             */
534            public void setDLFileEntryTypeService(
535                    DLFileEntryTypeService dlFileEntryTypeService) {
536                    this.dlFileEntryTypeService = dlFileEntryTypeService;
537            }
538    
539            /**
540             * Returns the document library file entry type persistence.
541             *
542             * @return the document library file entry type persistence
543             */
544            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
545                    return dlFileEntryTypePersistence;
546            }
547    
548            /**
549             * Sets the document library file entry type persistence.
550             *
551             * @param dlFileEntryTypePersistence the document library file entry type persistence
552             */
553            public void setDLFileEntryTypePersistence(
554                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
555                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
556            }
557    
558            /**
559             * Returns the document library file entry type finder.
560             *
561             * @return the document library file entry type finder
562             */
563            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
564                    return dlFileEntryTypeFinder;
565            }
566    
567            /**
568             * Sets the document library file entry type finder.
569             *
570             * @param dlFileEntryTypeFinder the document library file entry type finder
571             */
572            public void setDLFileEntryTypeFinder(
573                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
574                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
575            }
576    
577            public void afterPropertiesSet() {
578            }
579    
580            public void destroy() {
581            }
582    
583            /**
584             * Returns the Spring bean ID for this bean.
585             *
586             * @return the Spring bean ID for this bean
587             */
588            public String getBeanIdentifier() {
589                    return _beanIdentifier;
590            }
591    
592            /**
593             * Sets the Spring bean ID for this bean.
594             *
595             * @param beanIdentifier the Spring bean ID for this bean
596             */
597            public void setBeanIdentifier(String beanIdentifier) {
598                    _beanIdentifier = beanIdentifier;
599            }
600    
601            protected Class<?> getModelClass() {
602                    return DDMStructure.class;
603            }
604    
605            protected String getModelClassName() {
606                    return DDMStructure.class.getName();
607            }
608    
609            /**
610             * Performs an SQL query.
611             *
612             * @param sql the sql query
613             */
614            protected void runSQL(String sql) throws SystemException {
615                    try {
616                            DataSource dataSource = ddmStructurePersistence.getDataSource();
617    
618                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
619                                            sql, new int[0]);
620    
621                            sqlUpdate.update();
622                    }
623                    catch (Exception e) {
624                            throw new SystemException(e);
625                    }
626            }
627    
628            @BeanReference(type = DDMContentLocalService.class)
629            protected DDMContentLocalService ddmContentLocalService;
630            @BeanReference(type = DDMContentPersistence.class)
631            protected DDMContentPersistence ddmContentPersistence;
632            @BeanReference(type = DDMStorageLinkLocalService.class)
633            protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
634            @BeanReference(type = DDMStorageLinkPersistence.class)
635            protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
636            @BeanReference(type = DDMStructureLocalService.class)
637            protected DDMStructureLocalService ddmStructureLocalService;
638            @BeanReference(type = DDMStructureService.class)
639            protected DDMStructureService ddmStructureService;
640            @BeanReference(type = DDMStructurePersistence.class)
641            protected DDMStructurePersistence ddmStructurePersistence;
642            @BeanReference(type = DDMStructureFinder.class)
643            protected DDMStructureFinder ddmStructureFinder;
644            @BeanReference(type = DDMStructureLinkLocalService.class)
645            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
646            @BeanReference(type = DDMStructureLinkPersistence.class)
647            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
648            @BeanReference(type = DDMTemplateLocalService.class)
649            protected DDMTemplateLocalService ddmTemplateLocalService;
650            @BeanReference(type = DDMTemplateService.class)
651            protected DDMTemplateService ddmTemplateService;
652            @BeanReference(type = DDMTemplatePersistence.class)
653            protected DDMTemplatePersistence ddmTemplatePersistence;
654            @BeanReference(type = DDMTemplateFinder.class)
655            protected DDMTemplateFinder ddmTemplateFinder;
656            @BeanReference(type = CounterLocalService.class)
657            protected CounterLocalService counterLocalService;
658            @BeanReference(type = ResourceLocalService.class)
659            protected ResourceLocalService resourceLocalService;
660            @BeanReference(type = ResourceService.class)
661            protected ResourceService resourceService;
662            @BeanReference(type = ResourcePersistence.class)
663            protected ResourcePersistence resourcePersistence;
664            @BeanReference(type = ResourceFinder.class)
665            protected ResourceFinder resourceFinder;
666            @BeanReference(type = UserLocalService.class)
667            protected UserLocalService userLocalService;
668            @BeanReference(type = UserService.class)
669            protected UserService userService;
670            @BeanReference(type = UserPersistence.class)
671            protected UserPersistence userPersistence;
672            @BeanReference(type = UserFinder.class)
673            protected UserFinder userFinder;
674            @BeanReference(type = DLFileEntryTypeLocalService.class)
675            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
676            @BeanReference(type = DLFileEntryTypeService.class)
677            protected DLFileEntryTypeService dlFileEntryTypeService;
678            @BeanReference(type = DLFileEntryTypePersistence.class)
679            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
680            @BeanReference(type = DLFileEntryTypeFinder.class)
681            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
682            private String _beanIdentifier;
683    }