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