1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  
26  /**
27   * <a href="JournalTemplateLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.journal.service.JournalTemplateLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.journal.service.JournalTemplateLocalService
50   * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory
51   *
52   */
53  public class JournalTemplateLocalServiceUtil {
54      public static com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
55          com.liferay.portlet.journal.model.JournalTemplate model)
56          throws com.liferay.portal.SystemException {
57          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
58  
59          return journalTemplateLocalService.addJournalTemplate(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
66  
67          return journalTemplateLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
74  
75          return journalTemplateLocalService.dynamicQuery(queryInitializer,
76              begin, end);
77      }
78  
79      public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
80          com.liferay.portlet.journal.model.JournalTemplate model)
81          throws com.liferay.portal.SystemException {
82          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
83  
84          return journalTemplateLocalService.updateJournalTemplate(model);
85      }
86  
87      public static com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence() {
88          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
89  
90          return journalTemplateLocalService.getJournalArticlePersistence();
91      }
92  
93      public static void setJournalArticlePersistence(
94          com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence) {
95          JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
96  
97          journalTemplateLocalService.setJournalArticlePersistence(journalArticlePersistence);
98      }
99  
100     public static com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder() {
101         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
102 
103         return journalTemplateLocalService.getJournalArticleFinder();
104     }
105 
106     public static void setJournalArticleFinder(
107         com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder) {
108         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
109 
110         journalTemplateLocalService.setJournalArticleFinder(journalArticleFinder);
111     }
112 
113     public static com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence getJournalArticleImagePersistence() {
114         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
115 
116         return journalTemplateLocalService.getJournalArticleImagePersistence();
117     }
118 
119     public static void setJournalArticleImagePersistence(
120         com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence) {
121         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
122 
123         journalTemplateLocalService.setJournalArticleImagePersistence(journalArticleImagePersistence);
124     }
125 
126     public static com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
127         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
128 
129         return journalTemplateLocalService.getJournalArticleResourcePersistence();
130     }
131 
132     public static void setJournalArticleResourcePersistence(
133         com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence) {
134         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
135 
136         journalTemplateLocalService.setJournalArticleResourcePersistence(journalArticleResourcePersistence);
137     }
138 
139     public static com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence getJournalContentSearchPersistence() {
140         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
141 
142         return journalTemplateLocalService.getJournalContentSearchPersistence();
143     }
144 
145     public static void setJournalContentSearchPersistence(
146         com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence) {
147         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
148 
149         journalTemplateLocalService.setJournalContentSearchPersistence(journalContentSearchPersistence);
150     }
151 
152     public static com.liferay.portlet.journal.service.persistence.JournalFeedPersistence getJournalFeedPersistence() {
153         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
154 
155         return journalTemplateLocalService.getJournalFeedPersistence();
156     }
157 
158     public static void setJournalFeedPersistence(
159         com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence) {
160         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
161 
162         journalTemplateLocalService.setJournalFeedPersistence(journalFeedPersistence);
163     }
164 
165     public static com.liferay.portlet.journal.service.persistence.JournalFeedFinder getJournalFeedFinder() {
166         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
167 
168         return journalTemplateLocalService.getJournalFeedFinder();
169     }
170 
171     public static void setJournalFeedFinder(
172         com.liferay.portlet.journal.service.persistence.JournalFeedFinder journalFeedFinder) {
173         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
174 
175         journalTemplateLocalService.setJournalFeedFinder(journalFeedFinder);
176     }
177 
178     public static com.liferay.portlet.journal.service.persistence.JournalStructurePersistence getJournalStructurePersistence() {
179         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
180 
181         return journalTemplateLocalService.getJournalStructurePersistence();
182     }
183 
184     public static void setJournalStructurePersistence(
185         com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence) {
186         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
187 
188         journalTemplateLocalService.setJournalStructurePersistence(journalStructurePersistence);
189     }
190 
191     public static com.liferay.portlet.journal.service.persistence.JournalStructureFinder getJournalStructureFinder() {
192         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
193 
194         return journalTemplateLocalService.getJournalStructureFinder();
195     }
196 
197     public static void setJournalStructureFinder(
198         com.liferay.portlet.journal.service.persistence.JournalStructureFinder journalStructureFinder) {
199         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
200 
201         journalTemplateLocalService.setJournalStructureFinder(journalStructureFinder);
202     }
203 
204     public static com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence getJournalTemplatePersistence() {
205         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
206 
207         return journalTemplateLocalService.getJournalTemplatePersistence();
208     }
209 
210     public static void setJournalTemplatePersistence(
211         com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence) {
212         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
213 
214         journalTemplateLocalService.setJournalTemplatePersistence(journalTemplatePersistence);
215     }
216 
217     public static com.liferay.portlet.journal.service.persistence.JournalTemplateFinder getJournalTemplateFinder() {
218         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
219 
220         return journalTemplateLocalService.getJournalTemplateFinder();
221     }
222 
223     public static void setJournalTemplateFinder(
224         com.liferay.portlet.journal.service.persistence.JournalTemplateFinder journalTemplateFinder) {
225         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
226 
227         journalTemplateLocalService.setJournalTemplateFinder(journalTemplateFinder);
228     }
229 
230     public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
231         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
232 
233         return journalTemplateLocalService.getResourcePersistence();
234     }
235 
236     public static void setResourcePersistence(
237         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
238         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
239 
240         journalTemplateLocalService.setResourcePersistence(resourcePersistence);
241     }
242 
243     public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
244         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
245 
246         return journalTemplateLocalService.getResourceFinder();
247     }
248 
249     public static void setResourceFinder(
250         com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
251         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
252 
253         journalTemplateLocalService.setResourceFinder(resourceFinder);
254     }
255 
256     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
257         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
258 
259         return journalTemplateLocalService.getUserPersistence();
260     }
261 
262     public static void setUserPersistence(
263         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
264         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
265 
266         journalTemplateLocalService.setUserPersistence(userPersistence);
267     }
268 
269     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
270         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
271 
272         return journalTemplateLocalService.getUserFinder();
273     }
274 
275     public static void setUserFinder(
276         com.liferay.portal.service.persistence.UserFinder userFinder) {
277         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
278 
279         journalTemplateLocalService.setUserFinder(userFinder);
280     }
281 
282     public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
283         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
284 
285         return journalTemplateLocalService.getWebDAVPropsPersistence();
286     }
287 
288     public static void setWebDAVPropsPersistence(
289         com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
290         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
291 
292         journalTemplateLocalService.setWebDAVPropsPersistence(webDAVPropsPersistence);
293     }
294 
295     public static void afterPropertiesSet() {
296         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
297 
298         journalTemplateLocalService.afterPropertiesSet();
299     }
300 
301     public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
302         long userId, java.lang.String templateId, boolean autoTemplateId,
303         long plid, java.lang.String structureId, java.lang.String name,
304         java.lang.String description, java.lang.String xsl, boolean formatXsl,
305         java.lang.String langType, boolean cacheable, boolean smallImage,
306         java.lang.String smallImageURL, java.io.File smallFile,
307         boolean addCommunityPermissions, boolean addGuestPermissions)
308         throws com.liferay.portal.PortalException, 
309             com.liferay.portal.SystemException {
310         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
311 
312         return journalTemplateLocalService.addTemplate(userId, templateId,
313             autoTemplateId, plid, structureId, name, description, xsl,
314             formatXsl, langType, cacheable, smallImage, smallImageURL,
315             smallFile, addCommunityPermissions, addGuestPermissions);
316     }
317 
318     public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
319         java.lang.String uuid, long userId, java.lang.String templateId,
320         boolean autoTemplateId, long plid, java.lang.String structureId,
321         java.lang.String name, java.lang.String description,
322         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
323         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
324         java.io.File smallFile, boolean addCommunityPermissions,
325         boolean addGuestPermissions)
326         throws com.liferay.portal.PortalException, 
327             com.liferay.portal.SystemException {
328         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
329 
330         return journalTemplateLocalService.addTemplate(uuid, userId,
331             templateId, autoTemplateId, plid, structureId, name, description,
332             xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
333             smallFile, addCommunityPermissions, addGuestPermissions);
334     }
335 
336     public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
337         long userId, java.lang.String templateId, boolean autoTemplateId,
338         long plid, java.lang.String structureId, java.lang.String name,
339         java.lang.String description, java.lang.String xsl, boolean formatXsl,
340         java.lang.String langType, boolean cacheable, boolean smallImage,
341         java.lang.String smallImageURL, java.io.File smallFile,
342         java.lang.String[] communityPermissions,
343         java.lang.String[] guestPermissions)
344         throws com.liferay.portal.PortalException, 
345             com.liferay.portal.SystemException {
346         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
347 
348         return journalTemplateLocalService.addTemplate(userId, templateId,
349             autoTemplateId, plid, structureId, name, description, xsl,
350             formatXsl, langType, cacheable, smallImage, smallImageURL,
351             smallFile, communityPermissions, guestPermissions);
352     }
353 
354     public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
355         java.lang.String uuid, long userId, java.lang.String templateId,
356         boolean autoTemplateId, long plid, java.lang.String structureId,
357         java.lang.String name, java.lang.String description,
358         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
359         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
360         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
361         java.lang.Boolean addGuestPermissions,
362         java.lang.String[] communityPermissions,
363         java.lang.String[] guestPermissions)
364         throws com.liferay.portal.PortalException, 
365             com.liferay.portal.SystemException {
366         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
367 
368         return journalTemplateLocalService.addTemplate(uuid, userId,
369             templateId, autoTemplateId, plid, structureId, name, description,
370             xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
371             smallFile, addCommunityPermissions, addGuestPermissions,
372             communityPermissions, guestPermissions);
373     }
374 
375     public static com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
376         java.lang.String uuid, long userId, java.lang.String templateId,
377         boolean autoTemplateId, long groupId, java.lang.String structureId,
378         java.lang.String name, java.lang.String description,
379         java.lang.String xsl, boolean formatXsl, java.lang.String langType,
380         boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
381         java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
382         java.lang.Boolean addGuestPermissions,
383         java.lang.String[] communityPermissions,
384         java.lang.String[] guestPermissions)
385         throws com.liferay.portal.PortalException, 
386             com.liferay.portal.SystemException {
387         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
388 
389         return journalTemplateLocalService.addTemplateToGroup(uuid, userId,
390             templateId, autoTemplateId, groupId, structureId, name,
391             description, xsl, formatXsl, langType, cacheable, smallImage,
392             smallImageURL, smallFile, addCommunityPermissions,
393             addGuestPermissions, communityPermissions, guestPermissions);
394     }
395 
396     public static void addTemplateResources(long groupId,
397         java.lang.String templateId, boolean addCommunityPermissions,
398         boolean addGuestPermissions)
399         throws com.liferay.portal.PortalException, 
400             com.liferay.portal.SystemException {
401         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
402 
403         journalTemplateLocalService.addTemplateResources(groupId, templateId,
404             addCommunityPermissions, addGuestPermissions);
405     }
406 
407     public static void addTemplateResources(
408         com.liferay.portlet.journal.model.JournalTemplate template,
409         boolean addCommunityPermissions, boolean addGuestPermissions)
410         throws com.liferay.portal.PortalException, 
411             com.liferay.portal.SystemException {
412         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
413 
414         journalTemplateLocalService.addTemplateResources(template,
415             addCommunityPermissions, addGuestPermissions);
416     }
417 
418     public static void addTemplateResources(long groupId,
419         java.lang.String templateId, java.lang.String[] communityPermissions,
420         java.lang.String[] guestPermissions)
421         throws com.liferay.portal.PortalException, 
422             com.liferay.portal.SystemException {
423         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
424 
425         journalTemplateLocalService.addTemplateResources(groupId, templateId,
426             communityPermissions, guestPermissions);
427     }
428 
429     public static void addTemplateResources(
430         com.liferay.portlet.journal.model.JournalTemplate template,
431         java.lang.String[] communityPermissions,
432         java.lang.String[] guestPermissions)
433         throws com.liferay.portal.PortalException, 
434             com.liferay.portal.SystemException {
435         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
436 
437         journalTemplateLocalService.addTemplateResources(template,
438             communityPermissions, guestPermissions);
439     }
440 
441     public static void checkNewLine(long groupId, java.lang.String templateId)
442         throws com.liferay.portal.PortalException, 
443             com.liferay.portal.SystemException {
444         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
445 
446         journalTemplateLocalService.checkNewLine(groupId, templateId);
447     }
448 
449     public static void deleteTemplate(long groupId, java.lang.String templateId)
450         throws com.liferay.portal.PortalException, 
451             com.liferay.portal.SystemException {
452         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
453 
454         journalTemplateLocalService.deleteTemplate(groupId, templateId);
455     }
456 
457     public static void deleteTemplate(
458         com.liferay.portlet.journal.model.JournalTemplate template)
459         throws com.liferay.portal.PortalException, 
460             com.liferay.portal.SystemException {
461         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
462 
463         journalTemplateLocalService.deleteTemplate(template);
464     }
465 
466     public static void deleteTemplates(long groupId)
467         throws com.liferay.portal.PortalException, 
468             com.liferay.portal.SystemException {
469         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
470 
471         journalTemplateLocalService.deleteTemplates(groupId);
472     }
473 
474     public static java.util.List getStructureTemplates(long groupId,
475         java.lang.String structureId) throws com.liferay.portal.SystemException {
476         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
477 
478         return journalTemplateLocalService.getStructureTemplates(groupId,
479             structureId);
480     }
481 
482     public static java.util.List getStructureTemplates(long groupId,
483         java.lang.String structureId, int begin, int end)
484         throws com.liferay.portal.SystemException {
485         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
486 
487         return journalTemplateLocalService.getStructureTemplates(groupId,
488             structureId, begin, end);
489     }
490 
491     public static int getStructureTemplatesCount(long groupId,
492         java.lang.String structureId) throws com.liferay.portal.SystemException {
493         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
494 
495         return journalTemplateLocalService.getStructureTemplatesCount(groupId,
496             structureId);
497     }
498 
499     public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
500         long id)
501         throws com.liferay.portal.PortalException, 
502             com.liferay.portal.SystemException {
503         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
504 
505         return journalTemplateLocalService.getTemplate(id);
506     }
507 
508     public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
509         long groupId, java.lang.String templateId)
510         throws com.liferay.portal.PortalException, 
511             com.liferay.portal.SystemException {
512         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
513 
514         return journalTemplateLocalService.getTemplate(groupId, templateId);
515     }
516 
517     public static com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
518         long smallImageId)
519         throws com.liferay.portal.PortalException, 
520             com.liferay.portal.SystemException {
521         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
522 
523         return journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
524     }
525 
526     public static java.util.List getTemplates()
527         throws com.liferay.portal.SystemException {
528         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
529 
530         return journalTemplateLocalService.getTemplates();
531     }
532 
533     public static java.util.List getTemplates(long groupId)
534         throws com.liferay.portal.SystemException {
535         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
536 
537         return journalTemplateLocalService.getTemplates(groupId);
538     }
539 
540     public static java.util.List getTemplates(long groupId, int begin, int end)
541         throws com.liferay.portal.SystemException {
542         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
543 
544         return journalTemplateLocalService.getTemplates(groupId, begin, end);
545     }
546 
547     public static int getTemplatesCount(long groupId)
548         throws com.liferay.portal.SystemException {
549         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
550 
551         return journalTemplateLocalService.getTemplatesCount(groupId);
552     }
553 
554     public static boolean hasTemplate(long groupId, java.lang.String templateId)
555         throws com.liferay.portal.SystemException {
556         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
557 
558         return journalTemplateLocalService.hasTemplate(groupId, templateId);
559     }
560 
561     public static java.util.List search(long companyId, long groupId,
562         java.lang.String keywords, java.lang.String structureId,
563         java.lang.String structureIdComparator, int begin, int end,
564         com.liferay.portal.kernel.util.OrderByComparator obc)
565         throws com.liferay.portal.SystemException {
566         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
567 
568         return journalTemplateLocalService.search(companyId, groupId, keywords,
569             structureId, structureIdComparator, begin, end, obc);
570     }
571 
572     public static java.util.List search(long companyId, long groupId,
573         java.lang.String templateId, java.lang.String structureId,
574         java.lang.String structureIdComparator, java.lang.String name,
575         java.lang.String description, boolean andOperator, int begin, int end,
576         com.liferay.portal.kernel.util.OrderByComparator obc)
577         throws com.liferay.portal.SystemException {
578         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
579 
580         return journalTemplateLocalService.search(companyId, groupId,
581             templateId, structureId, structureIdComparator, name, description,
582             andOperator, begin, end, obc);
583     }
584 
585     public static int searchCount(long companyId, long groupId,
586         java.lang.String keywords, java.lang.String structureId,
587         java.lang.String structureIdComparator)
588         throws com.liferay.portal.SystemException {
589         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
590 
591         return journalTemplateLocalService.searchCount(companyId, groupId,
592             keywords, structureId, structureIdComparator);
593     }
594 
595     public static int searchCount(long companyId, long groupId,
596         java.lang.String templateId, java.lang.String structureId,
597         java.lang.String structureIdComparator, java.lang.String name,
598         java.lang.String description, boolean andOperator)
599         throws com.liferay.portal.SystemException {
600         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
601 
602         return journalTemplateLocalService.searchCount(companyId, groupId,
603             templateId, structureId, structureIdComparator, name, description,
604             andOperator);
605     }
606 
607     public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
608         long groupId, java.lang.String templateId,
609         java.lang.String structureId, java.lang.String name,
610         java.lang.String description, java.lang.String xsl, boolean formatXsl,
611         java.lang.String langType, boolean cacheable, boolean smallImage,
612         java.lang.String smallImageURL, java.io.File smallFile)
613         throws com.liferay.portal.PortalException, 
614             com.liferay.portal.SystemException {
615         JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
616 
617         return journalTemplateLocalService.updateTemplate(groupId, templateId,
618             structureId, name, description, xsl, formatXsl, langType,
619             cacheable, smallImage, smallImageURL, smallFile);
620     }
621 }