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