1
14
15 package com.liferay.portlet.journal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19
20 import com.liferay.portlet.journal.service.JournalFeedServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class JournalFeedServiceSoap {
75 public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
76 long groupId, java.lang.String feedId, boolean autoFeedId,
77 java.lang.String name, java.lang.String description,
78 java.lang.String type, java.lang.String structureId,
79 java.lang.String templateId, java.lang.String rendererTemplateId,
80 int delta, java.lang.String orderByCol, java.lang.String orderByType,
81 java.lang.String targetLayoutFriendlyUrl,
82 java.lang.String targetPortletId, java.lang.String contentField,
83 java.lang.String feedType, double feedVersion,
84 com.liferay.portal.service.ServiceContext serviceContext)
85 throws RemoteException {
86 try {
87 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(groupId,
88 feedId, autoFeedId, name, description, type, structureId,
89 templateId, rendererTemplateId, delta, orderByCol,
90 orderByType, targetLayoutFriendlyUrl, targetPortletId,
91 contentField, feedType, feedVersion, serviceContext);
92
93 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
94 }
95 catch (Exception e) {
96 _log.error(e, e);
97
98 throw new RemoteException(e.getMessage());
99 }
100 }
101
102 public static void deleteFeed(long groupId, long feedId)
103 throws RemoteException {
104 try {
105 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
106 }
107 catch (Exception e) {
108 _log.error(e, e);
109
110 throw new RemoteException(e.getMessage());
111 }
112 }
113
114 public static void deleteFeed(long groupId, java.lang.String feedId)
115 throws RemoteException {
116 try {
117 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
127 long groupId, long feedId) throws RemoteException {
128 try {
129 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
130 feedId);
131
132 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
142 long groupId, java.lang.String feedId) throws RemoteException {
143 try {
144 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
145 feedId);
146
147 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151
152 throw new RemoteException(e.getMessage());
153 }
154 }
155
156 public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
157 long groupId, java.lang.String feedId, java.lang.String name,
158 java.lang.String description, java.lang.String type,
159 java.lang.String structureId, java.lang.String templateId,
160 java.lang.String rendererTemplateId, int delta,
161 java.lang.String orderByCol, java.lang.String orderByType,
162 java.lang.String targetLayoutFriendlyUrl,
163 java.lang.String targetPortletId, java.lang.String contentField,
164 java.lang.String feedType, double feedVersion,
165 com.liferay.portal.service.ServiceContext serviceContext)
166 throws RemoteException {
167 try {
168 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
169 feedId, name, description, type, structureId, templateId,
170 rendererTemplateId, delta, orderByCol, orderByType,
171 targetLayoutFriendlyUrl, targetPortletId, contentField,
172 feedType, feedVersion, serviceContext);
173
174 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
175 }
176 catch (Exception e) {
177 _log.error(e, e);
178
179 throw new RemoteException(e.getMessage());
180 }
181 }
182
183 private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
184 }