001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.http;
022:
023: import com.liferay.portal.kernel.log.Log;
024: import com.liferay.portal.kernel.log.LogFactoryUtil;
025:
026: import com.liferay.portlet.journal.service.JournalFeedServiceUtil;
027:
028: import java.rmi.RemoteException;
029:
030: /**
031: * <a href="JournalFeedServiceSoap.java.html"><b><i>View Source</i></b></a>
032: *
033: * <p>
034: * ServiceBuilder generated this class. Modifications in this class will be
035: * overwritten the next time is generated.
036: * </p>
037: *
038: * <p>
039: * This class provides a SOAP utility for the
040: * <code>com.liferay.portlet.journal.service.JournalFeedServiceUtil</code> service
041: * utility. The static methods of this class calls the same methods of the
042: * service utility. However, the signatures are different because it is
043: * difficult for SOAP to support certain types.
044: * </p>
045: *
046: * <p>
047: * ServiceBuilder follows certain rules in translating the methods. For example,
048: * if the method in the service utility returns a <code>java.util.List</code>,
049: * that is translated to an array of
050: * <code>com.liferay.portlet.journal.model.JournalFeedSoap</code>. If the method in the
051: * service utility returns a <code>com.liferay.portlet.journal.model.JournalFeed</code>,
052: * that is translated to a <code>com.liferay.portlet.journal.model.JournalFeedSoap</code>.
053: * Methods that SOAP cannot safely wire are skipped.
054: * </p>
055: *
056: * <p>
057: * The benefits of using the SOAP utility is that it is cross platform
058: * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
059: * even Perl, to call the generated services. One drawback of SOAP is that it is
060: * slow because it needs to serialize all calls into a text format (XML).
061: * </p>
062: *
063: * <p>
064: * You can see a list of services at
065: * http://localhost:8080/tunnel-web/secure/axis. Set the property
066: * <code>tunnel.servlet.hosts.allowed</code> in portal.properties to configure
067: * security.
068: * </p>
069: *
070: * <p>
071: * The SOAP utility is only generated for remote services.
072: * </p>
073: *
074: * @author Brian Wing Shun Chan
075: *
076: * @see com.liferay.portlet.journal.service.JournalFeedServiceUtil
077: * @see com.liferay.portlet.journal.service.http.JournalFeedServiceHttp
078: * @see com.liferay.portlet.journal.service.model.JournalFeedSoap
079: *
080: */
081: public class JournalFeedServiceSoap {
082: public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
083: long plid, java.lang.String feedId, boolean autoFeedId,
084: java.lang.String name, java.lang.String description,
085: java.lang.String type, java.lang.String structureId,
086: java.lang.String templateId,
087: java.lang.String rendererTemplateId, int delta,
088: java.lang.String orderByCol, java.lang.String orderByType,
089: java.lang.String targetLayoutFriendlyUrl,
090: java.lang.String targetPortletId,
091: java.lang.String contentField, java.lang.String feedType,
092: double feedVersion, boolean addCommunityPermissions,
093: boolean addGuestPermissions) throws RemoteException {
094: try {
095: com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil
096: .addFeed(plid, feedId, autoFeedId, name,
097: description, type, structureId, templateId,
098: rendererTemplateId, delta, orderByCol,
099: orderByType, targetLayoutFriendlyUrl,
100: targetPortletId, contentField, feedType,
101: feedVersion, addCommunityPermissions,
102: addGuestPermissions);
103:
104: return com.liferay.portlet.journal.model.JournalFeedSoap
105: .toSoapModel(returnValue);
106: } catch (Exception e) {
107: _log.error(e, e);
108:
109: throw new RemoteException(e.getMessage());
110: }
111: }
112:
113: public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
114: long plid, java.lang.String feedId, boolean autoFeedId,
115: java.lang.String name, java.lang.String description,
116: java.lang.String type, java.lang.String structureId,
117: java.lang.String templateId,
118: java.lang.String rendererTemplateId, int delta,
119: java.lang.String orderByCol, java.lang.String orderByType,
120: java.lang.String targetLayoutFriendlyUrl,
121: java.lang.String targetPortletId,
122: java.lang.String contentField, java.lang.String feedType,
123: double feedVersion,
124: java.lang.String[] communityPermissions,
125: java.lang.String[] guestPermissions) throws RemoteException {
126: try {
127: com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil
128: .addFeed(plid, feedId, autoFeedId, name,
129: description, type, structureId, templateId,
130: rendererTemplateId, delta, orderByCol,
131: orderByType, targetLayoutFriendlyUrl,
132: targetPortletId, contentField, feedType,
133: feedVersion, communityPermissions,
134: guestPermissions);
135:
136: return com.liferay.portlet.journal.model.JournalFeedSoap
137: .toSoapModel(returnValue);
138: } catch (Exception e) {
139: _log.error(e, e);
140:
141: throw new RemoteException(e.getMessage());
142: }
143: }
144:
145: public static void deleteFeed(long groupId, long feedId)
146: throws RemoteException {
147: try {
148: JournalFeedServiceUtil.deleteFeed(groupId, feedId);
149: } catch (Exception e) {
150: _log.error(e, e);
151:
152: throw new RemoteException(e.getMessage());
153: }
154: }
155:
156: public static void deleteFeed(long groupId, java.lang.String feedId)
157: throws RemoteException {
158: try {
159: JournalFeedServiceUtil.deleteFeed(groupId, feedId);
160: } catch (Exception e) {
161: _log.error(e, e);
162:
163: throw new RemoteException(e.getMessage());
164: }
165: }
166:
167: public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
168: long groupId, long feedId) throws RemoteException {
169: try {
170: com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil
171: .getFeed(groupId, feedId);
172:
173: return com.liferay.portlet.journal.model.JournalFeedSoap
174: .toSoapModel(returnValue);
175: } catch (Exception e) {
176: _log.error(e, e);
177:
178: throw new RemoteException(e.getMessage());
179: }
180: }
181:
182: public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
183: long groupId, java.lang.String feedId)
184: throws RemoteException {
185: try {
186: com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil
187: .getFeed(groupId, feedId);
188:
189: return com.liferay.portlet.journal.model.JournalFeedSoap
190: .toSoapModel(returnValue);
191: } catch (Exception e) {
192: _log.error(e, e);
193:
194: throw new RemoteException(e.getMessage());
195: }
196: }
197:
198: public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
199: long groupId, java.lang.String feedId,
200: java.lang.String name, java.lang.String description,
201: java.lang.String type, java.lang.String structureId,
202: java.lang.String templateId,
203: java.lang.String rendererTemplateId, int delta,
204: java.lang.String orderByCol, java.lang.String orderByType,
205: java.lang.String targetLayoutFriendlyUrl,
206: java.lang.String targetPortletId,
207: java.lang.String contentField, java.lang.String feedType,
208: double feedVersion) throws RemoteException {
209: try {
210: com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil
211: .updateFeed(groupId, feedId, name, description,
212: type, structureId, templateId,
213: rendererTemplateId, delta, orderByCol,
214: orderByType, targetLayoutFriendlyUrl,
215: targetPortletId, contentField, feedType,
216: feedVersion);
217:
218: return com.liferay.portlet.journal.model.JournalFeedSoap
219: .toSoapModel(returnValue);
220: } catch (Exception e) {
221: _log.error(e, e);
222:
223: throw new RemoteException(e.getMessage());
224: }
225: }
226:
227: private static Log _log = LogFactoryUtil
228: .getLog(JournalFeedServiceSoap.class);
229: }
|