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 plid, 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 boolean addCommunityPermissions, boolean addGuestPermissions)
85 throws RemoteException {
86 try {
87 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(plid,
88 feedId, autoFeedId, name, description, type, structureId,
89 templateId, rendererTemplateId, delta, orderByCol,
90 orderByType, targetLayoutFriendlyUrl, targetPortletId,
91 contentField, feedType, feedVersion,
92 addCommunityPermissions, addGuestPermissions);
93
94 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
95 }
96 catch (Exception e) {
97 _log.error(e, e);
98
99 throw new RemoteException(e.getMessage());
100 }
101 }
102
103 public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
104 long plid, java.lang.String feedId, boolean autoFeedId,
105 java.lang.String name, java.lang.String description,
106 java.lang.String type, java.lang.String structureId,
107 java.lang.String templateId, java.lang.String rendererTemplateId,
108 int delta, java.lang.String orderByCol, java.lang.String orderByType,
109 java.lang.String targetLayoutFriendlyUrl,
110 java.lang.String targetPortletId, java.lang.String contentField,
111 java.lang.String feedType, double feedVersion,
112 java.lang.String[] communityPermissions,
113 java.lang.String[] guestPermissions) throws RemoteException {
114 try {
115 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(plid,
116 feedId, autoFeedId, name, description, type, structureId,
117 templateId, rendererTemplateId, delta, orderByCol,
118 orderByType, targetLayoutFriendlyUrl, targetPortletId,
119 contentField, feedType, feedVersion, communityPermissions,
120 guestPermissions);
121
122 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
123 }
124 catch (Exception e) {
125 _log.error(e, e);
126
127 throw new RemoteException(e.getMessage());
128 }
129 }
130
131 public static void deleteFeed(long groupId, long feedId)
132 throws RemoteException {
133 try {
134 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
135 }
136 catch (Exception e) {
137 _log.error(e, e);
138
139 throw new RemoteException(e.getMessage());
140 }
141 }
142
143 public static void deleteFeed(long groupId, java.lang.String feedId)
144 throws RemoteException {
145 try {
146 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
147 }
148 catch (Exception e) {
149 _log.error(e, e);
150
151 throw new RemoteException(e.getMessage());
152 }
153 }
154
155 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
156 long groupId, long feedId) throws RemoteException {
157 try {
158 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
159 feedId);
160
161 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
162 }
163 catch (Exception e) {
164 _log.error(e, e);
165
166 throw new RemoteException(e.getMessage());
167 }
168 }
169
170 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
171 long groupId, java.lang.String feedId) throws RemoteException {
172 try {
173 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
174 feedId);
175
176 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
177 }
178 catch (Exception e) {
179 _log.error(e, e);
180
181 throw new RemoteException(e.getMessage());
182 }
183 }
184
185 public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
186 long groupId, java.lang.String feedId, java.lang.String name,
187 java.lang.String description, java.lang.String type,
188 java.lang.String structureId, java.lang.String templateId,
189 java.lang.String rendererTemplateId, int delta,
190 java.lang.String orderByCol, java.lang.String orderByType,
191 java.lang.String targetLayoutFriendlyUrl,
192 java.lang.String targetPortletId, java.lang.String contentField,
193 java.lang.String feedType, double feedVersion)
194 throws RemoteException {
195 try {
196 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
197 feedId, name, description, type, structureId, templateId,
198 rendererTemplateId, delta, orderByCol, orderByType,
199 targetLayoutFriendlyUrl, targetPortletId, contentField,
200 feedType, feedVersion);
201
202 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
203 }
204 catch (Exception e) {
205 _log.error(e, e);
206
207 throw new RemoteException(e.getMessage());
208 }
209 }
210
211 private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
212 }