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          java.lang.String templateId, boolean autoTemplateId, long plid,
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, boolean smallImage,
45          java.lang.String smallImageURL, java.io.File smallFile,
46          boolean addCommunityPermissions, boolean addGuestPermissions)
47          throws com.liferay.portal.PortalException,
48              com.liferay.portal.SystemException, java.rmi.RemoteException {
49          return _journalTemplateService.addTemplate(templateId, autoTemplateId,
50              plid, structureId, name, description, xsl, formatXsl, langType,
51              cacheable, smallImage, smallImageURL, smallFile,
52              addCommunityPermissions, addGuestPermissions);
53      }
54  
55      public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
56          java.lang.String templateId, boolean autoTemplateId, long plid,
57          java.lang.String structureId, java.lang.String name,
58          java.lang.String description, java.lang.String xsl, boolean formatXsl,
59          java.lang.String langType, boolean cacheable, boolean smallImage,
60          java.lang.String smallImageURL, java.io.File smallFile,
61          java.lang.String[] communityPermissions,
62          java.lang.String[] guestPermissions)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException, java.rmi.RemoteException {
65          return _journalTemplateService.addTemplate(templateId, autoTemplateId,
66              plid, structureId, name, description, xsl, formatXsl, langType,
67              cacheable, smallImage, smallImageURL, smallFile,
68              communityPermissions, guestPermissions);
69      }
70  
71      public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
72          long groupId, java.lang.String oldTemplateId,
73          java.lang.String newTemplateId, boolean autoTemplateId)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException, java.rmi.RemoteException {
76          return _journalTemplateService.copyTemplate(groupId, oldTemplateId,
77              newTemplateId, autoTemplateId);
78      }
79  
80      public void deleteTemplate(long groupId, java.lang.String templateId)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException, java.rmi.RemoteException {
83          _journalTemplateService.deleteTemplate(groupId, templateId);
84      }
85  
86      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
87          long groupId, java.lang.String structureId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          return _journalTemplateService.getStructureTemplates(groupId,
91              structureId);
92      }
93  
94      public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
95          long groupId, java.lang.String templateId)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException, java.rmi.RemoteException {
98          return _journalTemplateService.getTemplate(groupId, templateId);
99      }
100 
101     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
102         long groupId, java.lang.String templateId,
103         java.lang.String structureId, java.lang.String name,
104         java.lang.String description, java.lang.String xsl, boolean formatXsl,
105         java.lang.String langType, boolean cacheable, boolean smallImage,
106         java.lang.String smallImageURL, java.io.File smallFile)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException, java.rmi.RemoteException {
109         return _journalTemplateService.updateTemplate(groupId, templateId,
110             structureId, name, description, xsl, formatXsl, langType,
111             cacheable, smallImage, smallImageURL, smallFile);
112     }
113 
114     public JournalTemplateService getWrappedJournalTemplateService() {
115         return _journalTemplateService;
116     }
117 
118     private JournalTemplateService _journalTemplateService;
119 }