001
014
015 package com.liferay.portlet.journal.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.journal.service.JournalFeedServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
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 groupId, long feedId)
096 throws RemoteException {
097 try {
098 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static void deleteFeed(long groupId, java.lang.String feedId)
108 throws RemoteException {
109 try {
110 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
120 long groupId, long feedId) throws RemoteException {
121 try {
122 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
123 feedId);
124
125 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
135 long groupId, java.lang.String feedId) throws RemoteException {
136 try {
137 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
138 feedId);
139
140 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
150 long groupId, java.lang.String feedId, java.lang.String name,
151 java.lang.String description, java.lang.String type,
152 java.lang.String structureId, java.lang.String templateId,
153 java.lang.String rendererTemplateId, int delta,
154 java.lang.String orderByCol, java.lang.String orderByType,
155 java.lang.String targetLayoutFriendlyUrl,
156 java.lang.String targetPortletId, java.lang.String contentField,
157 java.lang.String feedType, double feedVersion,
158 com.liferay.portal.service.ServiceContext serviceContext)
159 throws RemoteException {
160 try {
161 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
162 feedId, name, description, type, structureId, templateId,
163 rendererTemplateId, delta, orderByCol, orderByType,
164 targetLayoutFriendlyUrl, targetPortletId, contentField,
165 feedType, feedVersion, serviceContext);
166
167 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
168 }
169 catch (Exception e) {
170 _log.error(e, e);
171
172 throw new RemoteException(e.getMessage());
173 }
174 }
175
176 private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
177 }