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="JournalTemplateLocalServiceUtil.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 JournalTemplateLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       JournalTemplateLocalService
32   * @generated
33   */
34  public class JournalTemplateLocalServiceWrapper
35      implements JournalTemplateLocalService {
36      public JournalTemplateLocalServiceWrapper(
37          JournalTemplateLocalService journalTemplateLocalService) {
38          _journalTemplateLocalService = journalTemplateLocalService;
39      }
40  
41      public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
42          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
43          throws com.liferay.portal.SystemException {
44          return _journalTemplateLocalService.addJournalTemplate(journalTemplate);
45      }
46  
47      public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
48          long id) {
49          return _journalTemplateLocalService.createJournalTemplate(id);
50      }
51  
52      public void deleteJournalTemplate(long id)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          _journalTemplateLocalService.deleteJournalTemplate(id);
56      }
57  
58      public void deleteJournalTemplate(
59          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
60          throws com.liferay.portal.SystemException {
61          _journalTemplateLocalService.deleteJournalTemplate(journalTemplate);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _journalTemplateLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
74              end);
75      }
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException {
82          return _journalTemplateLocalService.dynamicQuery(dynamicQuery, start,
83              end, orderByComparator);
84      }
85  
86      public int dynamicQueryCount(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
88          throws com.liferay.portal.SystemException {
89          return _journalTemplateLocalService.dynamicQueryCount(dynamicQuery);
90      }
91  
92      public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
93          long id)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          return _journalTemplateLocalService.getJournalTemplate(id);
97      }
98  
99      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
100         int start, int end) throws com.liferay.portal.SystemException {
101         return _journalTemplateLocalService.getJournalTemplates(start, end);
102     }
103 
104     public int getJournalTemplatesCount()
105         throws com.liferay.portal.SystemException {
106         return _journalTemplateLocalService.getJournalTemplatesCount();
107     }
108 
109     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
110         com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
111         throws com.liferay.portal.SystemException {
112         return _journalTemplateLocalService.updateJournalTemplate(journalTemplate);
113     }
114 
115     public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
116         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
117         boolean merge) throws com.liferay.portal.SystemException {
118         return _journalTemplateLocalService.updateJournalTemplate(journalTemplate,
119             merge);
120     }
121 
122     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
123         long userId, long groupId, java.lang.String templateId,
124         boolean autoTemplateId, java.lang.String structureId,
125         java.lang.String name, java.lang.String description,
126         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
127         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
128         java.io.File smallFile,
129         com.liferay.portal.service.ServiceContext serviceContext)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return _journalTemplateLocalService.addTemplate(userId, groupId,
133             templateId, autoTemplateId, structureId, name, description, xsl,
134             formatXsl, langType, cacheable, smallImage, smallImageURL,
135             smallFile, serviceContext);
136     }
137 
138     public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
139         java.lang.String uuid, long userId, long groupId,
140         java.lang.String templateId, boolean autoTemplateId,
141         java.lang.String structureId, java.lang.String name,
142         java.lang.String description, java.lang.String xsl, boolean formatXsl,
143         java.lang.String langType, boolean cacheable, boolean smallImage,
144         java.lang.String smallImageURL, java.io.File smallFile,
145         com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         return _journalTemplateLocalService.addTemplate(uuid, userId, groupId,
149             templateId, autoTemplateId, structureId, name, description, xsl,
150             formatXsl, langType, cacheable, smallImage, smallImageURL,
151             smallFile, serviceContext);
152     }
153 
154     public void addTemplateResources(long groupId, java.lang.String templateId,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         _journalTemplateLocalService.addTemplateResources(groupId, templateId,
159             addCommunityPermissions, addGuestPermissions);
160     }
161 
162     public void addTemplateResources(
163         com.liferay.portlet.journal.model.JournalTemplate template,
164         boolean addCommunityPermissions, boolean addGuestPermissions)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         _journalTemplateLocalService.addTemplateResources(template,
168             addCommunityPermissions, addGuestPermissions);
169     }
170 
171     public void addTemplateResources(long groupId, java.lang.String templateId,
172         java.lang.String[] communityPermissions,
173         java.lang.String[] guestPermissions)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         _journalTemplateLocalService.addTemplateResources(groupId, templateId,
177             communityPermissions, guestPermissions);
178     }
179 
180     public void addTemplateResources(
181         com.liferay.portlet.journal.model.JournalTemplate template,
182         java.lang.String[] communityPermissions,
183         java.lang.String[] guestPermissions)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         _journalTemplateLocalService.addTemplateResources(template,
187             communityPermissions, guestPermissions);
188     }
189 
190     public void checkNewLine(long groupId, java.lang.String templateId)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         _journalTemplateLocalService.checkNewLine(groupId, templateId);
194     }
195 
196     public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
197         long userId, long groupId, java.lang.String oldTemplateId,
198         java.lang.String newTemplateId, boolean autoTemplateId)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         return _journalTemplateLocalService.copyTemplate(userId, groupId,
202             oldTemplateId, newTemplateId, autoTemplateId);
203     }
204 
205     public void deleteTemplate(long groupId, java.lang.String templateId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         _journalTemplateLocalService.deleteTemplate(groupId, templateId);
209     }
210 
211     public void deleteTemplate(
212         com.liferay.portlet.journal.model.JournalTemplate template)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException {
215         _journalTemplateLocalService.deleteTemplate(template);
216     }
217 
218     public void deleteTemplates(long groupId)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         _journalTemplateLocalService.deleteTemplates(groupId);
222     }
223 
224     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
225         long groupId, java.lang.String structureId)
226         throws com.liferay.portal.SystemException {
227         return _journalTemplateLocalService.getStructureTemplates(groupId,
228             structureId);
229     }
230 
231     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
232         long groupId, java.lang.String structureId, int start, int end)
233         throws com.liferay.portal.SystemException {
234         return _journalTemplateLocalService.getStructureTemplates(groupId,
235             structureId, start, end);
236     }
237 
238     public int getStructureTemplatesCount(long groupId,
239         java.lang.String structureId) throws com.liferay.portal.SystemException {
240         return _journalTemplateLocalService.getStructureTemplatesCount(groupId,
241             structureId);
242     }
243 
244     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
245         long id)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException {
248         return _journalTemplateLocalService.getTemplate(id);
249     }
250 
251     public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
252         long groupId, java.lang.String templateId)
253         throws com.liferay.portal.PortalException,
254             com.liferay.portal.SystemException {
255         return _journalTemplateLocalService.getTemplate(groupId, templateId);
256     }
257 
258     public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
259         long smallImageId)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         return _journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
263     }
264 
265     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
266         throws com.liferay.portal.SystemException {
267         return _journalTemplateLocalService.getTemplates();
268     }
269 
270     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
271         long groupId) throws com.liferay.portal.SystemException {
272         return _journalTemplateLocalService.getTemplates(groupId);
273     }
274 
275     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
276         long groupId, int start, int end)
277         throws com.liferay.portal.SystemException {
278         return _journalTemplateLocalService.getTemplates(groupId, start, end);
279     }
280 
281     public int getTemplatesCount(long groupId)
282         throws com.liferay.portal.SystemException {
283         return _journalTemplateLocalService.getTemplatesCount(groupId);
284     }
285 
286     public boolean hasTemplate(long groupId, java.lang.String templateId)
287         throws com.liferay.portal.SystemException {
288         return _journalTemplateLocalService.hasTemplate(groupId, templateId);
289     }
290 
291     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
292         long companyId, long groupId, java.lang.String keywords,
293         java.lang.String structureId, java.lang.String structureIdComparator,
294         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException {
296         return _journalTemplateLocalService.search(companyId, groupId,
297             keywords, structureId, structureIdComparator, start, end, obc);
298     }
299 
300     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
301         long companyId, long groupId, java.lang.String templateId,
302         java.lang.String structureId, java.lang.String structureIdComparator,
303         java.lang.String name, java.lang.String description,
304         boolean andOperator, int start, int end,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException {
307         return _journalTemplateLocalService.search(companyId, groupId,
308             templateId, structureId, structureIdComparator, name, description,
309             andOperator, start, end, obc);
310     }
311 
312     public int searchCount(long companyId, long groupId,
313         java.lang.String keywords, java.lang.String structureId,
314         java.lang.String structureIdComparator)
315         throws com.liferay.portal.SystemException {
316         return _journalTemplateLocalService.searchCount(companyId, groupId,
317             keywords, structureId, structureIdComparator);
318     }
319 
320     public int searchCount(long companyId, long groupId,
321         java.lang.String templateId, java.lang.String structureId,
322         java.lang.String structureIdComparator, java.lang.String name,
323         java.lang.String description, boolean andOperator)
324         throws com.liferay.portal.SystemException {
325         return _journalTemplateLocalService.searchCount(companyId, groupId,
326             templateId, structureId, structureIdComparator, name, description,
327             andOperator);
328     }
329 
330     public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
331         long groupId, java.lang.String templateId,
332         java.lang.String structureId, java.lang.String name,
333         java.lang.String description, java.lang.String xsl, boolean formatXsl,
334         java.lang.String langType, boolean cacheable, boolean smallImage,
335         java.lang.String smallImageURL, java.io.File smallFile,
336         com.liferay.portal.service.ServiceContext serviceContext)
337         throws com.liferay.portal.PortalException,
338             com.liferay.portal.SystemException {
339         return _journalTemplateLocalService.updateTemplate(groupId, templateId,
340             structureId, name, description, xsl, formatXsl, langType,
341             cacheable, smallImage, smallImageURL, smallFile, serviceContext);
342     }
343 
344     public JournalTemplateLocalService getWrappedJournalTemplateLocalService() {
345         return _journalTemplateLocalService;
346     }
347 
348     private JournalTemplateLocalService _journalTemplateLocalService;
349 }