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
066 public class JournalFeedServiceSoap {
067 public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
068 long groupId, java.lang.String feedId, boolean autoFeedId,
069 java.lang.String name, java.lang.String description,
070 java.lang.String type, java.lang.String structureId,
071 java.lang.String templateId, java.lang.String rendererTemplateId,
072 int delta, java.lang.String orderByCol, java.lang.String orderByType,
073 java.lang.String targetLayoutFriendlyUrl,
074 java.lang.String targetPortletId, java.lang.String contentField,
075 java.lang.String feedType, double feedVersion,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws RemoteException {
078 try {
079 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(groupId,
080 feedId, autoFeedId, name, description, type, structureId,
081 templateId, rendererTemplateId, delta, orderByCol,
082 orderByType, targetLayoutFriendlyUrl, targetPortletId,
083 contentField, feedType, feedVersion, serviceContext);
084
085 return com.liferay.portlet.journal.model.JournalFeedSoap.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 deleteFeed(long groupId, long feedId)
095 throws RemoteException {
096 try {
097 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
098 }
099 catch (Exception e) {
100 _log.error(e, e);
101
102 throw new RemoteException(e.getMessage());
103 }
104 }
105
106 public static void deleteFeed(long groupId, java.lang.String feedId)
107 throws RemoteException {
108 try {
109 JournalFeedServiceUtil.deleteFeed(groupId, feedId);
110 }
111 catch (Exception e) {
112 _log.error(e, e);
113
114 throw new RemoteException(e.getMessage());
115 }
116 }
117
118 public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
119 long groupId, long feedId) throws RemoteException {
120 try {
121 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
122 feedId);
123
124 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
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 groupId, java.lang.String feedId) throws RemoteException {
135 try {
136 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
137 feedId);
138
139 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
149 long groupId, java.lang.String feedId, java.lang.String name,
150 java.lang.String description, java.lang.String type,
151 java.lang.String structureId, java.lang.String templateId,
152 java.lang.String rendererTemplateId, int delta,
153 java.lang.String orderByCol, java.lang.String orderByType,
154 java.lang.String targetLayoutFriendlyUrl,
155 java.lang.String targetPortletId, java.lang.String contentField,
156 java.lang.String feedType, double feedVersion,
157 com.liferay.portal.service.ServiceContext serviceContext)
158 throws RemoteException {
159 try {
160 com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
161 feedId, name, description, type, structureId, templateId,
162 rendererTemplateId, delta, orderByCol, orderByType,
163 targetLayoutFriendlyUrl, targetPortletId, contentField,
164 feedType, feedVersion, serviceContext);
165
166 return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
167 }
168 catch (Exception e) {
169 _log.error(e, e);
170
171 throw new RemoteException(e.getMessage());
172 }
173 }
174
175 private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
176 }