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.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link JournalTemplateService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see JournalTemplateService
024     * @deprecated As of 6.2.0, since Web Content Administration now uses the
025    Dynamic Data Mapping framework to handle templates
026     * @generated
027     */
028    public class JournalTemplateServiceWrapper implements JournalTemplateService,
029            ServiceWrapper<JournalTemplateService> {
030            public JournalTemplateServiceWrapper(
031                    JournalTemplateService journalTemplateService) {
032                    _journalTemplateService = journalTemplateService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            @Override
041            public java.lang.String getBeanIdentifier() {
042                    return _journalTemplateService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            @Override
051            public void setBeanIdentifier(java.lang.String beanIdentifier) {
052                    _journalTemplateService.setBeanIdentifier(beanIdentifier);
053            }
054    
055            @Override
056            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
057                    long groupId, java.lang.String templateId, boolean autoTemplateId,
058                    java.lang.String structureId,
059                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
062                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
063                    java.io.File smallFile,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _journalTemplateService.addTemplate(groupId, templateId,
068                            autoTemplateId, structureId, nameMap, descriptionMap, xsl,
069                            formatXsl, langType, cacheable, smallImage, smallImageURL,
070                            smallFile, serviceContext);
071            }
072    
073            @Override
074            public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
075                    long groupId, java.lang.String templateId, boolean autoTemplateId,
076                    java.lang.String structureId,
077                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
078                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
080                    boolean cacheable,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _journalTemplateService.addTemplate(groupId, templateId,
085                            autoTemplateId, structureId, nameMap, descriptionMap, xsl,
086                            formatXsl, langType, cacheable, serviceContext);
087            }
088    
089            @Override
090            public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
091                    long groupId, java.lang.String oldTemplateId,
092                    java.lang.String newTemplateId, boolean autoTemplateId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return _journalTemplateService.copyTemplate(groupId, oldTemplateId,
096                            newTemplateId, autoTemplateId);
097            }
098    
099            @Override
100            public void deleteTemplate(long groupId, java.lang.String templateId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    _journalTemplateService.deleteTemplate(groupId, templateId);
104            }
105    
106            @Override
107            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
108                    long groupId, java.lang.String structureId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return _journalTemplateService.getStructureTemplates(groupId,
112                            structureId);
113            }
114    
115            @Override
116            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
117                    long groupId, java.lang.String templateId)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return _journalTemplateService.getTemplate(groupId, templateId);
121            }
122    
123            @Override
124            public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
125                    long groupId, java.lang.String templateId,
126                    boolean includeGlobalTemplates)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return _journalTemplateService.getTemplate(groupId, templateId,
130                            includeGlobalTemplates);
131            }
132    
133            @Override
134            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
135                    long companyId, long[] groupIds, java.lang.String keywords,
136                    java.lang.String structureId, java.lang.String structureIdComparator,
137                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _journalTemplateService.search(companyId, groupIds, keywords,
140                            structureId, structureIdComparator, start, end, obc);
141            }
142    
143            @Override
144            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
145                    long companyId, long[] groupIds, java.lang.String templateId,
146                    java.lang.String structureId, java.lang.String structureIdComparator,
147                    java.lang.String name, java.lang.String description,
148                    boolean andOperator, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator obc)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _journalTemplateService.search(companyId, groupIds, templateId,
152                            structureId, structureIdComparator, name, description, andOperator,
153                            start, end, obc);
154            }
155    
156            @Override
157            public int searchCount(long companyId, long[] groupIds,
158                    java.lang.String keywords, java.lang.String structureId,
159                    java.lang.String structureIdComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _journalTemplateService.searchCount(companyId, groupIds,
162                            keywords, structureId, structureIdComparator);
163            }
164    
165            @Override
166            public int searchCount(long companyId, long[] groupIds,
167                    java.lang.String templateId, java.lang.String structureId,
168                    java.lang.String structureIdComparator, java.lang.String name,
169                    java.lang.String description, boolean andOperator)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return _journalTemplateService.searchCount(companyId, groupIds,
172                            templateId, structureId, structureIdComparator, name, description,
173                            andOperator);
174            }
175    
176            @Override
177            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
178                    long groupId, java.lang.String templateId,
179                    java.lang.String structureId,
180                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
181                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
182                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
183                    boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
184                    java.io.File smallFile,
185                    com.liferay.portal.service.ServiceContext serviceContext)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _journalTemplateService.updateTemplate(groupId, templateId,
189                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
190                            cacheable, smallImage, smallImageURL, smallFile, serviceContext);
191            }
192    
193            @Override
194            public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
195                    long groupId, java.lang.String templateId,
196                    java.lang.String structureId,
197                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
198                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
199                    java.lang.String xsl, boolean formatXsl, java.lang.String langType,
200                    boolean cacheable,
201                    com.liferay.portal.service.ServiceContext serviceContext)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _journalTemplateService.updateTemplate(groupId, templateId,
205                            structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
206                            cacheable, serviceContext);
207            }
208    
209            /**
210             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
211             */
212            public JournalTemplateService getWrappedJournalTemplateService() {
213                    return _journalTemplateService;
214            }
215    
216            /**
217             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
218             */
219            public void setWrappedJournalTemplateService(
220                    JournalTemplateService journalTemplateService) {
221                    _journalTemplateService = journalTemplateService;
222            }
223    
224            @Override
225            public JournalTemplateService getWrappedService() {
226                    return _journalTemplateService;
227            }
228    
229            @Override
230            public void setWrappedService(JournalTemplateService journalTemplateService) {
231                    _journalTemplateService = journalTemplateService;
232            }
233    
234            private JournalTemplateService _journalTemplateService;
235    }