1
22
23 package com.liferay.portlet.journal.service;
24
25
26
47 public class JournalTemplateServiceUtil {
48 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
49 java.lang.String templateId, boolean autoTemplateId, long plid,
50 java.lang.String structureId, java.lang.String name,
51 java.lang.String description, java.lang.String xsl, boolean formatXsl,
52 java.lang.String langType, boolean cacheable, boolean smallImage,
53 java.lang.String smallImageURL, java.io.File smallFile,
54 boolean addCommunityPermissions, boolean addGuestPermissions)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException, java.rmi.RemoteException {
57 return getService()
58 .addTemplate(templateId, autoTemplateId, plid, structureId,
59 name, description, xsl, formatXsl, langType, cacheable, smallImage,
60 smallImageURL, smallFile, addCommunityPermissions,
61 addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
65 java.lang.String templateId, boolean autoTemplateId, long plid,
66 java.lang.String structureId, java.lang.String name,
67 java.lang.String description, java.lang.String xsl, boolean formatXsl,
68 java.lang.String langType, boolean cacheable, boolean smallImage,
69 java.lang.String smallImageURL, java.io.File smallFile,
70 java.lang.String[] communityPermissions,
71 java.lang.String[] guestPermissions)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException, java.rmi.RemoteException {
74 return getService()
75 .addTemplate(templateId, autoTemplateId, plid, structureId,
76 name, description, xsl, formatXsl, langType, cacheable, smallImage,
77 smallImageURL, smallFile, communityPermissions, guestPermissions);
78 }
79
80 public static com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
81 long groupId, java.lang.String oldTemplateId,
82 java.lang.String newTemplateId, boolean autoTemplateId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService()
86 .copyTemplate(groupId, oldTemplateId, newTemplateId,
87 autoTemplateId);
88 }
89
90 public static void deleteTemplate(long groupId, java.lang.String templateId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException, java.rmi.RemoteException {
93 getService().deleteTemplate(groupId, templateId);
94 }
95
96 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
97 long groupId, java.lang.String structureId)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 return getService().getStructureTemplates(groupId, structureId);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
104 long groupId, java.lang.String templateId)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException, java.rmi.RemoteException {
107 return getService().getTemplate(groupId, templateId);
108 }
109
110 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
111 long groupId, java.lang.String templateId,
112 java.lang.String structureId, java.lang.String name,
113 java.lang.String description, java.lang.String xsl, boolean formatXsl,
114 java.lang.String langType, boolean cacheable, boolean smallImage,
115 java.lang.String smallImageURL, java.io.File smallFile)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException, java.rmi.RemoteException {
118 return getService()
119 .updateTemplate(groupId, templateId, structureId, name,
120 description, xsl, formatXsl, langType, cacheable, smallImage,
121 smallImageURL, smallFile);
122 }
123
124 public static JournalTemplateService getService() {
125 if (_service == null) {
126 throw new RuntimeException("JournalTemplateService is not set");
127 }
128
129 return _service;
130 }
131
132 public void setService(JournalTemplateService service) {
133 _service = service;
134 }
135
136 private static JournalTemplateService _service;
137 }