1
22
23 package com.liferay.portlet.journal.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.journal.service.JournalTemplateServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
83 public class JournalTemplateServiceSoap {
84 public static com.liferay.portlet.journal.model.JournalTemplateSoap addTemplate(
85 long groupId, java.lang.String templateId, boolean autoTemplateId,
86 java.lang.String structureId, java.lang.String name,
87 java.lang.String description, java.lang.String xsl, boolean formatXsl,
88 java.lang.String langType, boolean cacheable,
89 com.liferay.portal.service.ServiceContext serviceContext)
90 throws RemoteException {
91 try {
92 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.addTemplate(groupId,
93 templateId, autoTemplateId, structureId, name, description,
94 xsl, formatXsl, langType, cacheable, serviceContext);
95
96 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
97 }
98 catch (Exception e) {
99 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static com.liferay.portlet.journal.model.JournalTemplateSoap copyTemplate(
106 long groupId, java.lang.String oldTemplateId,
107 java.lang.String newTemplateId, boolean autoTemplateId)
108 throws RemoteException {
109 try {
110 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.copyTemplate(groupId,
111 oldTemplateId, newTemplateId, autoTemplateId);
112
113 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static void deleteTemplate(long groupId, java.lang.String templateId)
123 throws RemoteException {
124 try {
125 JournalTemplateServiceUtil.deleteTemplate(groupId, templateId);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.journal.model.JournalTemplateSoap[] getStructureTemplates(
135 long groupId, java.lang.String structureId) throws RemoteException {
136 try {
137 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> returnValue =
138 JournalTemplateServiceUtil.getStructureTemplates(groupId,
139 structureId);
140
141 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModels(returnValue);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 public static com.liferay.portlet.journal.model.JournalTemplateSoap getTemplate(
151 long groupId, java.lang.String templateId) throws RemoteException {
152 try {
153 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.getTemplate(groupId,
154 templateId);
155
156 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
157 }
158 catch (Exception e) {
159 _log.error(e, e);
160
161 throw new RemoteException(e.getMessage());
162 }
163 }
164
165 public static com.liferay.portlet.journal.model.JournalTemplateSoap updateTemplate(
166 long groupId, java.lang.String templateId,
167 java.lang.String structureId, java.lang.String name,
168 java.lang.String description, java.lang.String xsl, boolean formatXsl,
169 java.lang.String langType, boolean cacheable,
170 com.liferay.portal.service.ServiceContext serviceContext)
171 throws RemoteException {
172 try {
173 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.updateTemplate(groupId,
174 templateId, structureId, name, description, xsl, formatXsl,
175 langType, cacheable, serviceContext);
176
177 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 private static Log _log = LogFactoryUtil.getLog(JournalTemplateServiceSoap.class);
187 }