1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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 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 }