001
014
015 package com.liferay.portlet.announcements.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.announcements.service.AnnouncementsEntryServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class AnnouncementsEntryServiceSoap {
068 public static com.liferay.portlet.announcements.model.AnnouncementsEntrySoap addEntry(
069 long plid, long classNameId, long classPK, java.lang.String title,
070 java.lang.String content, java.lang.String url, java.lang.String type,
071 int displayDateMonth, int displayDateDay, int displayDateYear,
072 int displayDateHour, int displayDateMinute, int expirationDateMonth,
073 int expirationDateDay, int expirationDateYear, int expirationDateHour,
074 int expirationDateMinute, int priority, boolean alert)
075 throws RemoteException {
076 try {
077 com.liferay.portlet.announcements.model.AnnouncementsEntry returnValue =
078 AnnouncementsEntryServiceUtil.addEntry(plid, classNameId,
079 classPK, title, content, url, type, displayDateMonth,
080 displayDateDay, displayDateYear, displayDateHour,
081 displayDateMinute, expirationDateMonth, expirationDateDay,
082 expirationDateYear, expirationDateHour,
083 expirationDateMinute, priority, alert);
084
085 return com.liferay.portlet.announcements.model.AnnouncementsEntrySoap.toSoapModel(returnValue);
086 }
087 catch (Exception e) {
088 _log.error(e, e);
089
090 throw new RemoteException(e.getMessage());
091 }
092 }
093
094 public static void deleteEntry(long entryId) throws RemoteException {
095 try {
096 AnnouncementsEntryServiceUtil.deleteEntry(entryId);
097 }
098 catch (Exception e) {
099 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static com.liferay.portlet.announcements.model.AnnouncementsEntrySoap updateEntry(
106 long entryId, java.lang.String title, java.lang.String content,
107 java.lang.String url, java.lang.String type, int displayDateMonth,
108 int displayDateDay, int displayDateYear, int displayDateHour,
109 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
110 int expirationDateYear, int expirationDateHour,
111 int expirationDateMinute, int priority) throws RemoteException {
112 try {
113 com.liferay.portlet.announcements.model.AnnouncementsEntry returnValue =
114 AnnouncementsEntryServiceUtil.updateEntry(entryId, title,
115 content, url, type, displayDateMonth, displayDateDay,
116 displayDateYear, displayDateHour, displayDateMinute,
117 expirationDateMonth, expirationDateDay, expirationDateYear,
118 expirationDateHour, expirationDateMinute, priority);
119
120 return com.liferay.portlet.announcements.model.AnnouncementsEntrySoap.toSoapModel(returnValue);
121 }
122 catch (Exception e) {
123 _log.error(e, e);
124
125 throw new RemoteException(e.getMessage());
126 }
127 }
128
129 private static Log _log = LogFactoryUtil.getLog(AnnouncementsEntryServiceSoap.class);
130 }