001
014
015 package com.liferay.portlet.blogs.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.blogs.service.BlogsEntryServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class BlogsEntryServiceSoap {
068 public static com.liferay.portlet.blogs.model.BlogsEntrySoap addEntry(
069 java.lang.String title, java.lang.String subtitle,
070 java.lang.String description, java.lang.String content,
071 int displayDateMonth, int displayDateDay, int displayDateYear,
072 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
073 boolean allowTrackbacks, java.lang.String[] trackbacks,
074 java.lang.String coverImageCaption,
075 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
076 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws RemoteException {
079 try {
080 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.addEntry(title,
081 subtitle, description, content, displayDateMonth,
082 displayDateDay, displayDateYear, displayDateHour,
083 displayDateMinute, allowPingbacks, allowTrackbacks,
084 trackbacks, coverImageCaption, coverImageImageSelector,
085 smallImageImageSelector, serviceContext);
086
087 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static void deleteEntry(long entryId) throws RemoteException {
097 try {
098 BlogsEntryServiceUtil.deleteEntry(entryId);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getCompanyEntries(
108 long companyId, java.util.Date displayDate, int status, int max)
109 throws RemoteException {
110 try {
111 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
112 BlogsEntryServiceUtil.getCompanyEntries(companyId, displayDate,
113 status, max);
114
115 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
116 }
117 catch (Exception e) {
118 _log.error(e, e);
119
120 throw new RemoteException(e.getMessage());
121 }
122 }
123
124 public static com.liferay.portlet.blogs.model.BlogsEntrySoap getEntry(
125 long entryId) throws RemoteException {
126 try {
127 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(entryId);
128
129 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
130 }
131 catch (Exception e) {
132 _log.error(e, e);
133
134 throw new RemoteException(e.getMessage());
135 }
136 }
137
138 public static com.liferay.portlet.blogs.model.BlogsEntrySoap getEntry(
139 long groupId, java.lang.String urlTitle) throws RemoteException {
140 try {
141 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(groupId,
142 urlTitle);
143
144 return com.liferay.portlet.blogs.model.BlogsEntrySoap.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.blogs.model.BlogsEntrySoap[] getGroupEntries(
154 long groupId, java.util.Date displayDate, int status, int max)
155 throws RemoteException {
156 try {
157 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
158 BlogsEntryServiceUtil.getGroupEntries(groupId, displayDate,
159 status, max);
160
161 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
162 }
163 catch (Exception e) {
164 _log.error(e, e);
165
166 throw new RemoteException(e.getMessage());
167 }
168 }
169
170 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
171 long groupId, java.util.Date displayDate, int status, int start, int end)
172 throws RemoteException {
173 try {
174 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
175 BlogsEntryServiceUtil.getGroupEntries(groupId, displayDate,
176 status, start, end);
177
178 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
179 }
180 catch (Exception e) {
181 _log.error(e, e);
182
183 throw new RemoteException(e.getMessage());
184 }
185 }
186
187 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
188 long groupId, int status, int max) throws RemoteException {
189 try {
190 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
191 BlogsEntryServiceUtil.getGroupEntries(groupId, status, max);
192
193 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
194 }
195 catch (Exception e) {
196 _log.error(e, e);
197
198 throw new RemoteException(e.getMessage());
199 }
200 }
201
202 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
203 long groupId, int status, int start, int end) throws RemoteException {
204 try {
205 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
206 BlogsEntryServiceUtil.getGroupEntries(groupId, status, start,
207 end);
208
209 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
210 }
211 catch (Exception e) {
212 _log.error(e, e);
213
214 throw new RemoteException(e.getMessage());
215 }
216 }
217
218 public static int getGroupEntriesCount(long groupId,
219 java.util.Date displayDate, int status) throws RemoteException {
220 try {
221 int returnValue = BlogsEntryServiceUtil.getGroupEntriesCount(groupId,
222 displayDate, status);
223
224 return returnValue;
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static int getGroupEntriesCount(long groupId, int status)
234 throws RemoteException {
235 try {
236 int returnValue = BlogsEntryServiceUtil.getGroupEntriesCount(groupId,
237 status);
238
239 return returnValue;
240 }
241 catch (Exception e) {
242 _log.error(e, e);
243
244 throw new RemoteException(e.getMessage());
245 }
246 }
247
248 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupsEntries(
249 long companyId, long groupId, java.util.Date displayDate, int status,
250 int max) throws RemoteException {
251 try {
252 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
253 BlogsEntryServiceUtil.getGroupsEntries(companyId, groupId,
254 displayDate, status, max);
255
256 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(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.blogs.model.BlogsEntrySoap[] getOrganizationEntries(
266 long organizationId, java.util.Date displayDate, int status, int max)
267 throws RemoteException {
268 try {
269 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
270 BlogsEntryServiceUtil.getOrganizationEntries(organizationId,
271 displayDate, status, max);
272
273 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
274 }
275 catch (Exception e) {
276 _log.error(e, e);
277
278 throw new RemoteException(e.getMessage());
279 }
280 }
281
282 public static com.liferay.portlet.blogs.model.BlogsEntrySoap moveEntryToTrash(
283 long entryId) throws RemoteException {
284 try {
285 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.moveEntryToTrash(entryId);
286
287 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
288 }
289 catch (Exception e) {
290 _log.error(e, e);
291
292 throw new RemoteException(e.getMessage());
293 }
294 }
295
296 public static void restoreEntryFromTrash(long entryId)
297 throws RemoteException {
298 try {
299 BlogsEntryServiceUtil.restoreEntryFromTrash(entryId);
300 }
301 catch (Exception e) {
302 _log.error(e, e);
303
304 throw new RemoteException(e.getMessage());
305 }
306 }
307
308 public static void subscribe(long groupId) throws RemoteException {
309 try {
310 BlogsEntryServiceUtil.subscribe(groupId);
311 }
312 catch (Exception e) {
313 _log.error(e, e);
314
315 throw new RemoteException(e.getMessage());
316 }
317 }
318
319 public static void unsubscribe(long groupId) throws RemoteException {
320 try {
321 BlogsEntryServiceUtil.unsubscribe(groupId);
322 }
323 catch (Exception e) {
324 _log.error(e, e);
325
326 throw new RemoteException(e.getMessage());
327 }
328 }
329
330 public static com.liferay.portlet.blogs.model.BlogsEntrySoap updateEntry(
331 long entryId, java.lang.String title, java.lang.String subtitle,
332 java.lang.String description, java.lang.String content,
333 int displayDateMonth, int displayDateDay, int displayDateYear,
334 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
335 boolean allowTrackbacks, java.lang.String[] trackbacks,
336 java.lang.String coverImageCaption,
337 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
338 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
339 com.liferay.portal.service.ServiceContext serviceContext)
340 throws RemoteException {
341 try {
342 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.updateEntry(entryId,
343 title, subtitle, description, content, displayDateMonth,
344 displayDateDay, displayDateYear, displayDateHour,
345 displayDateMinute, allowPingbacks, allowTrackbacks,
346 trackbacks, coverImageCaption, coverImageImageSelector,
347 smallImageImageSelector, serviceContext);
348
349 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
350 }
351 catch (Exception e) {
352 _log.error(e, e);
353
354 throw new RemoteException(e.getMessage());
355 }
356 }
357
358 private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceSoap.class);
359 }