1
22
23 package com.liferay.portlet.journal.service;
24
25
26
53 public class JournalTemplateServiceUtil {
54 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
55 java.lang.String templateId, boolean autoTemplateId, long plid,
56 java.lang.String structureId, java.lang.String name,
57 java.lang.String description, java.lang.String xsl, boolean formatXsl,
58 java.lang.String langType, boolean cacheable, boolean smallImage,
59 java.lang.String smallImageURL, java.io.File smallFile,
60 boolean addCommunityPermissions, boolean addGuestPermissions)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException, java.rmi.RemoteException {
63 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
64
65 return journalTemplateService.addTemplate(templateId, autoTemplateId,
66 plid, structureId, name, description, xsl, formatXsl, langType,
67 cacheable, smallImage, smallImageURL, smallFile,
68 addCommunityPermissions, addGuestPermissions);
69 }
70
71 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
72 java.lang.String templateId, boolean autoTemplateId, long plid,
73 java.lang.String structureId, java.lang.String name,
74 java.lang.String description, java.lang.String xsl, boolean formatXsl,
75 java.lang.String langType, boolean cacheable, boolean smallImage,
76 java.lang.String smallImageURL, java.io.File smallFile,
77 java.lang.String[] communityPermissions,
78 java.lang.String[] guestPermissions)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException, java.rmi.RemoteException {
81 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
82
83 return journalTemplateService.addTemplate(templateId, autoTemplateId,
84 plid, structureId, name, description, xsl, formatXsl, langType,
85 cacheable, smallImage, smallImageURL, smallFile,
86 communityPermissions, guestPermissions);
87 }
88
89 public static void deleteTemplate(long groupId, java.lang.String templateId)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException, java.rmi.RemoteException {
92 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
93
94 journalTemplateService.deleteTemplate(groupId, templateId);
95 }
96
97 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
98 long groupId, java.lang.String templateId)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException, java.rmi.RemoteException {
101 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
102
103 return journalTemplateService.getTemplate(groupId, templateId);
104 }
105
106 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
107 long groupId, java.lang.String templateId,
108 java.lang.String structureId, java.lang.String name,
109 java.lang.String description, java.lang.String xsl, boolean formatXsl,
110 java.lang.String langType, boolean cacheable, boolean smallImage,
111 java.lang.String smallImageURL, java.io.File smallFile)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException, java.rmi.RemoteException {
114 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
115
116 return journalTemplateService.updateTemplate(groupId, templateId,
117 structureId, name, description, xsl, formatXsl, langType,
118 cacheable, smallImage, smallImageURL, smallFile);
119 }
120 }