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.JournalArticleServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
82 public class JournalArticleServiceSoap {
83 public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
84 long groupId, java.lang.String articleId, boolean autoArticleId,
85 java.lang.String title, java.lang.String description,
86 java.lang.String content, java.lang.String type,
87 java.lang.String structureId, java.lang.String templateId,
88 int displayDateMonth, int displayDateDay, int displayDateYear,
89 int displayDateHour, int displayDateMinute, int expirationDateMonth,
90 int expirationDateDay, int expirationDateYear, int expirationDateHour,
91 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
92 int reviewDateDay, int reviewDateYear, int reviewDateHour,
93 int reviewDateMinute, boolean neverReview, boolean indexable,
94 java.lang.String articleURL,
95 com.liferay.portal.service.ServiceContext serviceContext)
96 throws RemoteException {
97 try {
98 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(groupId,
99 articleId, autoArticleId, title, description, content,
100 type, structureId, templateId, displayDateMonth,
101 displayDateDay, displayDateYear, displayDateHour,
102 displayDateMinute, expirationDateMonth, expirationDateDay,
103 expirationDateYear, expirationDateHour,
104 expirationDateMinute, neverExpire, reviewDateMonth,
105 reviewDateDay, reviewDateYear, reviewDateHour,
106 reviewDateMinute, neverReview, indexable, articleURL,
107 serviceContext);
108
109 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
110 }
111 catch (Exception e) {
112 _log.error(e, e);
113
114 throw new RemoteException(e.getMessage());
115 }
116 }
117
118 public static com.liferay.portlet.journal.model.JournalArticleSoap approveArticle(
119 long groupId, java.lang.String articleId, double version,
120 java.lang.String articleURL,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws RemoteException {
123 try {
124 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.approveArticle(groupId,
125 articleId, version, articleURL, serviceContext);
126
127 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
137 long groupId, java.lang.String oldArticleId,
138 java.lang.String newArticleId, boolean autoArticleId, double version)
139 throws RemoteException {
140 try {
141 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
142 oldArticleId, newArticleId, autoArticleId, version);
143
144 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
154 long groupId, java.lang.String articleId) throws RemoteException {
155 try {
156 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
157 articleId);
158
159 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
160 }
161 catch (Exception e) {
162 _log.error(e, e);
163
164 throw new RemoteException(e.getMessage());
165 }
166 }
167
168 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
169 long groupId, java.lang.String articleId, double version)
170 throws RemoteException {
171 try {
172 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
173 articleId, version);
174
175 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
176 }
177 catch (Exception e) {
178 _log.error(e, e);
179
180 throw new RemoteException(e.getMessage());
181 }
182 }
183
184 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticleByUrlTitle(
185 long groupId, java.lang.String urlTitle) throws RemoteException {
186 try {
187 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticleByUrlTitle(groupId,
188 urlTitle);
189
190 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
191 }
192 catch (Exception e) {
193 _log.error(e, e);
194
195 throw new RemoteException(e.getMessage());
196 }
197 }
198
199 public static void deleteArticle(long groupId, java.lang.String articleId,
200 double version, java.lang.String articleURL,
201 com.liferay.portal.service.ServiceContext serviceContext)
202 throws RemoteException {
203 try {
204 JournalArticleServiceUtil.deleteArticle(groupId, articleId,
205 version, articleURL, serviceContext);
206 }
207 catch (Exception e) {
208 _log.error(e, e);
209
210 throw new RemoteException(e.getMessage());
211 }
212 }
213
214 public static void expireArticle(long groupId, java.lang.String articleId,
215 double version, java.lang.String articleURL,
216 com.liferay.portal.service.ServiceContext serviceContext)
217 throws RemoteException {
218 try {
219 JournalArticleServiceUtil.expireArticle(groupId, articleId,
220 version, articleURL, serviceContext);
221 }
222 catch (Exception e) {
223 _log.error(e, e);
224
225 throw new RemoteException(e.getMessage());
226 }
227 }
228
229 public static void removeArticleLocale(long companyId,
230 java.lang.String languageId) throws RemoteException {
231 try {
232 JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
233 }
234 catch (Exception e) {
235 _log.error(e, e);
236
237 throw new RemoteException(e.getMessage());
238 }
239 }
240
241 public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
242 long groupId, java.lang.String articleId, double version,
243 java.lang.String languageId) throws RemoteException {
244 try {
245 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
246 articleId, version, languageId);
247
248 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
249 }
250 catch (Exception e) {
251 _log.error(e, e);
252
253 throw new RemoteException(e.getMessage());
254 }
255 }
256
257 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
258 long groupId, java.lang.String articleId, double version,
259 boolean incrementVersion, java.lang.String content)
260 throws RemoteException {
261 try {
262 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
263 articleId, version, incrementVersion, content);
264
265 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
266 }
267 catch (Exception e) {
268 _log.error(e, e);
269
270 throw new RemoteException(e.getMessage());
271 }
272 }
273
274 public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
275 long groupId, java.lang.String articleId, double version,
276 java.lang.String content) throws RemoteException {
277 try {
278 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
279 articleId, version, content);
280
281 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
282 }
283 catch (Exception e) {
284 _log.error(e, e);
285
286 throw new RemoteException(e.getMessage());
287 }
288 }
289
290 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
291 }