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 com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
143 long groupId, java.lang.String articleId) throws RemoteException {
144 try {
145 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
146 articleId);
147
148 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
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 getArticle(
158 long groupId, java.lang.String articleId, double version)
159 throws RemoteException {
160 try {
161 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
162 articleId, version);
163
164 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
165 }
166 catch (Exception e) {
167 _log.error(e, e);
168
169 throw new RemoteException(e.getMessage());
170 }
171 }
172
173 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticleByUrlTitle(
174 long groupId, java.lang.String urlTitle) throws RemoteException {
175 try {
176 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticleByUrlTitle(groupId,
177 urlTitle);
178
179 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
180 }
181 catch (Exception e) {
182 _log.error(e, e);
183
184 throw new RemoteException(e.getMessage());
185 }
186 }
187
188 public static void removeArticleLocale(long companyId,
189 java.lang.String languageId) throws RemoteException {
190 try {
191 JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
192 }
193 catch (Exception e) {
194 _log.error(e, e);
195
196 throw new RemoteException(e.getMessage());
197 }
198 }
199
200 public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
201 long groupId, java.lang.String articleId, double version,
202 java.lang.String languageId) throws RemoteException {
203 try {
204 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
205 articleId, version, languageId);
206
207 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
208 }
209 catch (Exception e) {
210 _log.error(e, e);
211
212 throw new RemoteException(e.getMessage());
213 }
214 }
215
216 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
217 long groupId, java.lang.String articleId, double version,
218 boolean incrementVersion, java.lang.String content)
219 throws RemoteException {
220 try {
221 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
222 articleId, version, incrementVersion, content);
223
224 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
234 long groupId, java.lang.String articleId, double version,
235 java.lang.String content) throws RemoteException {
236 try {
237 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
238 articleId, version, content);
239
240 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
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 updateStatus(
250 long groupId, java.lang.String articleId, double version, int status,
251 java.lang.String articleURL,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws RemoteException {
254 try {
255 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateStatus(groupId,
256 articleId, version, status, articleURL, serviceContext);
257
258 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
259 }
260 catch (Exception e) {
261 _log.error(e, e);
262
263 throw new RemoteException(e.getMessage());
264 }
265 }
266
267 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
268 }