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