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;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDMTemplateService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMTemplateService
026     * @generated
027     */
028    public class DDMTemplateServiceWrapper implements DDMTemplateService,
029            ServiceWrapper<DDMTemplateService> {
030            public DDMTemplateServiceWrapper(DDMTemplateService ddmTemplateService) {
031                    _ddmTemplateService = ddmTemplateService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            public java.lang.String getBeanIdentifier() {
040                    return _ddmTemplateService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _ddmTemplateService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
053                    long groupId, long structureId,
054                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
055                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
056                    java.lang.String type, java.lang.String mode,
057                    java.lang.String language, java.lang.String script,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _ddmTemplateService.addTemplate(groupId, structureId, nameMap,
062                            descriptionMap, type, mode, language, script, serviceContext);
063            }
064    
065            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
066                    long structureId, long newStructureId, java.lang.String type,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _ddmTemplateService.copyTemplates(structureId, newStructureId,
071                            type, serviceContext);
072            }
073    
074            public void deleteTemplate(long templateId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _ddmTemplateService.deleteTemplate(templateId);
078            }
079    
080            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
081                    long templateId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _ddmTemplateService.getTemplate(templateId);
085            }
086    
087            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
088                    long structureId, java.lang.String type, java.lang.String mode)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _ddmTemplateService.getTemplates(structureId, type, mode);
091            }
092    
093            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
094                    long companyId, long groupId, long structureId,
095                    java.lang.String keywords, java.lang.String type,
096                    java.lang.String mode, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return _ddmTemplateService.search(companyId, groupId, structureId,
100                            keywords, type, mode, start, end, orderByComparator);
101            }
102    
103            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
104                    long companyId, long groupId, long structureId, java.lang.String name,
105                    java.lang.String description, java.lang.String type,
106                    java.lang.String mode, java.lang.String language, boolean andOperator,
107                    int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _ddmTemplateService.search(companyId, groupId, structureId,
111                            name, description, type, mode, language, andOperator, start, end,
112                            orderByComparator);
113            }
114    
115            public int searchCount(long companyId, long groupId, long structureId,
116                    java.lang.String keywords, java.lang.String type, java.lang.String mode)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return _ddmTemplateService.searchCount(companyId, groupId, structureId,
119                            keywords, type, mode);
120            }
121    
122            public int searchCount(long companyId, long groupId, long structureId,
123                    java.lang.String name, java.lang.String description,
124                    java.lang.String type, java.lang.String mode,
125                    java.lang.String language, boolean andOperator)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return _ddmTemplateService.searchCount(companyId, groupId, structureId,
128                            name, description, type, mode, language, andOperator);
129            }
130    
131            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
132                    long templateId,
133                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
134                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135                    java.lang.String type, java.lang.String mode,
136                    java.lang.String language, java.lang.String script,
137                    com.liferay.portal.service.ServiceContext serviceContext)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    return _ddmTemplateService.updateTemplate(templateId, nameMap,
141                            descriptionMap, type, mode, language, script, serviceContext);
142            }
143    
144            /**
145             * @deprecated Renamed to {@link #getWrappedService}
146             */
147            public DDMTemplateService getWrappedDDMTemplateService() {
148                    return _ddmTemplateService;
149            }
150    
151            /**
152             * @deprecated Renamed to {@link #setWrappedService}
153             */
154            public void setWrappedDDMTemplateService(
155                    DDMTemplateService ddmTemplateService) {
156                    _ddmTemplateService = ddmTemplateService;
157            }
158    
159            public DDMTemplateService getWrappedService() {
160                    return _ddmTemplateService;
161            }
162    
163            public void setWrappedService(DDMTemplateService ddmTemplateService) {
164                    _ddmTemplateService = ddmTemplateService;
165            }
166    
167            private DDMTemplateService _ddmTemplateService;
168    }