1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
25   * <a href="JournalFeedServiceSoap.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * <p>
33   * This class provides a SOAP utility for the
34   * {@link com.liferay.portlet.journal.service.JournalFeedServiceUtil} service utility. The
35   * static methods of this class calls the same methods of the service utility.
36   * However, the signatures are different because it is difficult for SOAP to
37   * support certain types.
38   * </p>
39   *
40   * <p>
41   * ServiceBuilder follows certain rules in translating the methods. For example,
42   * if the method in the service utility returns a {@link java.util.List}, that
43   * is translated to an array of {@link com.liferay.portlet.journal.model.JournalFeedSoap}.
44   * If the method in the service utility returns a
45   * {@link com.liferay.portlet.journal.model.JournalFeed}, that is translated to a
46   * {@link com.liferay.portlet.journal.model.JournalFeedSoap}. Methods that SOAP cannot
47   * safely wire are skipped.
48   * </p>
49   *
50   * <p>
51   * The benefits of using the SOAP utility is that it is cross platform
52   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
53   * even Perl, to call the generated services. One drawback of SOAP is that it is
54   * slow because it needs to serialize all calls into a text format (XML).
55   * </p>
56   *
57   * <p>
58   * You can see a list of services at
59   * http://localhost:8080/tunnel-web/secure/axis. Set the property
60   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
61   * security.
62   * </p>
63   *
64   * <p>
65   * The SOAP utility is only generated for remote services.
66   * </p>
67   *
68   * @author    Brian Wing Shun Chan
69   * @see       JournalFeedServiceHttp
70   * @see       com.liferay.portlet.journal.model.JournalFeedSoap
71   * @see       com.liferay.portlet.journal.service.JournalFeedServiceUtil
72   * @generated
73   */
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 }