001
014
015 package com.liferay.portlet.journal.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.journal.service.JournalFeedServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class JournalFeedServiceSoap {
068 public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
069 long groupId, java.lang.String feedId, boolean autoFeedId,
070 java.lang.String name, java.lang.String description,
071 java.lang.String type, java.lang.String structureId,
072 java.lang.String templateId, java.lang.String rendererTemplateId,
073 int delta, java.lang.String orderByCol, java.lang.String orderByType,
074 java.lang.String targetLayoutFriendlyUrl,
075 java.lang.String targetPortletId, java.lang.String contentField,
076 java.lang.String feedType, double feedVersion,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws RemoteException {
079 try {
080 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(groupId,
081 feedId, autoFeedId, name, description, type, structureId,
082 templateId, rendererTemplateId, delta, orderByCol,
083 orderByType, targetLayoutFriendlyUrl, targetPortletId,
084 contentField, feedType, feedVersion, serviceContext);
085
086 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
087 }
088 catch (Exception e) {
089 _log.error(e, e);
090
091 throw new RemoteException(e.getMessage());
092 }
093 }
094
095 public static void deleteFeed(long feedId) throws RemoteException {
096 try {
097 JournalFeedServiceUtil.deleteFeed(feedId);
098 }
099 catch (Exception e) {
100 _log.error(e, e);
101
102 throw new RemoteException(e.getMessage());
103 }
104 }
105
106
109 public static void deleteFeed(long groupId, long feedId)
110 throws RemoteException {
111 try {
112 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
113 }
114 catch (Exception e) {
115 _log.error(e, e);
116
117 throw new RemoteException(e.getMessage());
118 }
119 }
120
121 public static void deleteFeed(long groupId, java.lang.String feedId)
122 throws RemoteException {
123 try {
124 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
134 long feedId) throws RemoteException {
135 try {
136 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(feedId);
137
138 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
139 }
140 catch (Exception e) {
141 _log.error(e, e);
142
143 throw new RemoteException(e.getMessage());
144 }
145 }
146
147
150 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
151 long groupId, long feedId) throws RemoteException {
152 try {
153 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
154 feedId);
155
156 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
157 }
158 catch (Exception e) {
159 _log.error(e, e);
160
161 throw new RemoteException(e.getMessage());
162 }
163 }
164
165 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
166 long groupId, java.lang.String feedId) throws RemoteException {
167 try {
168 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
169 feedId);
170
171 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180 public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
181 long groupId, java.lang.String feedId, java.lang.String name,
182 java.lang.String description, java.lang.String type,
183 java.lang.String structureId, java.lang.String templateId,
184 java.lang.String rendererTemplateId, int delta,
185 java.lang.String orderByCol, java.lang.String orderByType,
186 java.lang.String targetLayoutFriendlyUrl,
187 java.lang.String targetPortletId, java.lang.String contentField,
188 java.lang.String feedType, double feedVersion,
189 com.liferay.portal.service.ServiceContext serviceContext)
190 throws RemoteException {
191 try {
192 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
193 feedId, name, description, type, structureId, templateId,
194 rendererTemplateId, delta, orderByCol, orderByType,
195 targetLayoutFriendlyUrl, targetPortletId, contentField,
196 feedType, feedVersion, serviceContext);
197
198 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
199 }
200 catch (Exception e) {
201 _log.error(e, e);
202
203 throw new RemoteException(e.getMessage());
204 }
205 }
206
207 private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
208 }