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 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
98 long groupId, java.lang.String structureId)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException, java.rmi.RemoteException {
101 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
102
103 return journalTemplateService.getStructureTemplates(groupId, structureId);
104 }
105
106 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
107 long groupId, java.lang.String templateId)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException, java.rmi.RemoteException {
110 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
111
112 return journalTemplateService.getTemplate(groupId, templateId);
113 }
114
115 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
116 long groupId, java.lang.String templateId,
117 java.lang.String structureId, java.lang.String name,
118 java.lang.String description, java.lang.String xsl, boolean formatXsl,
119 java.lang.String langType, boolean cacheable, boolean smallImage,
120 java.lang.String smallImageURL, java.io.File smallFile)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException, java.rmi.RemoteException {
123 JournalTemplateService journalTemplateService = JournalTemplateServiceFactory.getService();
124
125 return journalTemplateService.updateTemplate(groupId, templateId,
126 structureId, name, description, xsl, formatXsl, langType,
127 cacheable, smallImage, smallImageURL, smallFile);
128 }
129 }