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