1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  
18  /**
19   * <a href="JournalTemplateServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link JournalTemplateService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       JournalTemplateService
32   * @generated
33   */
34  public class JournalTemplateServiceWrapper implements JournalTemplateService {
35      public JournalTemplateServiceWrapper(
36          JournalTemplateService journalTemplateService) {
37          _journalTemplateService = journalTemplateService;
38      }
39  
40      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
41          long groupId, java.lang.String templateId, boolean autoTemplateId,
42          java.lang.String structureId, java.lang.String name,
43          java.lang.String description, java.lang.String xsl, boolean formatXsl,
44          java.lang.String langType, boolean cacheable,
45          com.liferay.portal.service.ServiceContext serviceContext)
46          throws com.liferay.portal.kernel.exception.PortalException,
47              com.liferay.portal.kernel.exception.SystemException {
48          return _journalTemplateService.addTemplate(groupId, templateId,
49              autoTemplateId, structureId, name, description, xsl, formatXsl,
50              langType, cacheable, serviceContext);
51      }
52  
53      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
54          long groupId, java.lang.String templateId, boolean autoTemplateId,
55          java.lang.String structureId, java.lang.String name,
56          java.lang.String description, java.lang.String xsl, boolean formatXsl,
57          java.lang.String langType, boolean cacheable, boolean smallImage,
58          java.lang.String smallImageURL, java.io.File smallFile,
59          com.liferay.portal.service.ServiceContext serviceContext)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException {
62          return _journalTemplateService.addTemplate(groupId, templateId,
63              autoTemplateId, structureId, name, description, xsl, formatXsl,
64              langType, cacheable, smallImage, smallImageURL, smallFile,
65              serviceContext);
66      }
67  
68      public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
69          long groupId, java.lang.String oldTemplateId,
70          java.lang.String newTemplateId, boolean autoTemplateId)
71          throws com.liferay.portal.kernel.exception.PortalException,
72              com.liferay.portal.kernel.exception.SystemException {
73          return _journalTemplateService.copyTemplate(groupId, oldTemplateId,
74              newTemplateId, autoTemplateId);
75      }
76  
77      public void deleteTemplate(long groupId, java.lang.String templateId)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException {
80          _journalTemplateService.deleteTemplate(groupId, templateId);
81      }
82  
83      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
84          long groupId, java.lang.String structureId)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException {
87          return _journalTemplateService.getStructureTemplates(groupId,
88              structureId);
89      }
90  
91      public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
92          long groupId, java.lang.String templateId)
93          throws com.liferay.portal.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.SystemException {
95          return _journalTemplateService.getTemplate(groupId, templateId);
96      }
97  
98      public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
99          long groupId, java.lang.String templateId,
100         java.lang.String structureId, java.lang.String name,
101         java.lang.String description, java.lang.String xsl, boolean formatXsl,
102         java.lang.String langType, boolean cacheable,
103         com.liferay.portal.service.ServiceContext serviceContext)
104         throws com.liferay.portal.kernel.exception.PortalException,
105             com.liferay.portal.kernel.exception.SystemException {
106         return _journalTemplateService.updateTemplate(groupId, templateId,
107             structureId, name, description, xsl, formatXsl, langType,
108             cacheable, serviceContext);
109     }
110 
111     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
112         long groupId, java.lang.String templateId,
113         java.lang.String structureId, java.lang.String name,
114         java.lang.String description, java.lang.String xsl, boolean formatXsl,
115         java.lang.String langType, boolean cacheable, boolean smallImage,
116         java.lang.String smallImageURL, java.io.File smallFile,
117         com.liferay.portal.service.ServiceContext serviceContext)
118         throws com.liferay.portal.kernel.exception.PortalException,
119             com.liferay.portal.kernel.exception.SystemException {
120         return _journalTemplateService.updateTemplate(groupId, templateId,
121             structureId, name, description, xsl, formatXsl, langType,
122             cacheable, smallImage, smallImageURL, smallFile, serviceContext);
123     }
124 
125     public JournalTemplateService getWrappedJournalTemplateService() {
126         return _journalTemplateService;
127     }
128 
129     private JournalTemplateService _journalTemplateService;
130 }