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