001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.http;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    
022    import com.liferay.portlet.journal.service.JournalFeedServiceUtil;
023    
024    import java.rmi.RemoteException;
025    
026    /**
027     * Provides the SOAP utility for the
028     * {@link JournalFeedServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it is difficult for SOAP to
031     * support certain types.
032     *
033     * <p>
034     * ServiceBuilder follows certain rules in translating the methods. For example,
035     * if the method in the service utility returns a {@link java.util.List}, that
036     * is translated to an array of {@link com.liferay.portlet.journal.model.JournalFeedSoap}.
037     * If the method in the service utility returns a
038     * {@link com.liferay.portlet.journal.model.JournalFeed}, that is translated to a
039     * {@link com.liferay.portlet.journal.model.JournalFeedSoap}. Methods that SOAP cannot
040     * safely wire are skipped.
041     * </p>
042     *
043     * <p>
044     * The benefits of using the SOAP utility is that it is cross platform
045     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
046     * even Perl, to call the generated services. One drawback of SOAP is that it is
047     * slow because it needs to serialize all calls into a text format (XML).
048     * </p>
049     *
050     * <p>
051     * You can see a list of services at http://localhost:8080/api/axis. Set the
052     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
053     * security.
054     * </p>
055     *
056     * <p>
057     * The SOAP utility is only generated for remote services.
058     * </p>
059     *
060     * @author Brian Wing Shun Chan
061     * @see JournalFeedServiceHttp
062     * @see com.liferay.portlet.journal.model.JournalFeedSoap
063     * @see JournalFeedServiceUtil
064     * @generated
065     */
066    @ProviderType
067    public class JournalFeedServiceSoap {
068            public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
069                    long groupId, java.lang.String feedId, boolean autoFeedId,
070                    java.lang.String name, java.lang.String description,
071                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
072                    java.lang.String ddmRendererTemplateKey, int delta,
073                    java.lang.String orderByCol, java.lang.String orderByType,
074                    java.lang.String targetLayoutFriendlyUrl,
075                    java.lang.String targetPortletId, java.lang.String contentField,
076                    java.lang.String feedType, double feedVersion,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws RemoteException {
079                    try {
080                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(groupId,
081                                            feedId, autoFeedId, name, description, ddmStructureKey,
082                                            ddmTemplateKey, ddmRendererTemplateKey, delta, orderByCol,
083                                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
084                                            contentField, feedType, feedVersion, serviceContext);
085    
086                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
087                    }
088                    catch (Exception e) {
089                            _log.error(e, e);
090    
091                            throw new RemoteException(e.getMessage());
092                    }
093            }
094    
095            public static void deleteFeed(long feedId) throws RemoteException {
096                    try {
097                            JournalFeedServiceUtil.deleteFeed(feedId);
098                    }
099                    catch (Exception e) {
100                            _log.error(e, e);
101    
102                            throw new RemoteException(e.getMessage());
103                    }
104            }
105    
106            /**
107            * @deprecated As of 6.2.0, replaced by {@link #deleteFeed(long, String)}
108            */
109            @Deprecated
110            public static void deleteFeed(long groupId, long feedId)
111                    throws RemoteException {
112                    try {
113                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
114                    }
115                    catch (Exception e) {
116                            _log.error(e, e);
117    
118                            throw new RemoteException(e.getMessage());
119                    }
120            }
121    
122            public static void deleteFeed(long groupId, java.lang.String feedId)
123                    throws RemoteException {
124                    try {
125                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
126                    }
127                    catch (Exception e) {
128                            _log.error(e, e);
129    
130                            throw new RemoteException(e.getMessage());
131                    }
132            }
133    
134            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
135                    long feedId) throws RemoteException {
136                    try {
137                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(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            /**
149            * @deprecated As of 6.2.0, replaced by {@link #getFeed(long, String)}
150            */
151            @Deprecated
152            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
153                    long groupId, long feedId) throws RemoteException {
154                    try {
155                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
156                                            feedId);
157    
158                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
159                    }
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, java.lang.String feedId) throws RemoteException {
169                    try {
170                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
171                                            feedId);
172    
173                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
174                    }
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 updateFeed(
183                    long groupId, java.lang.String feedId, java.lang.String name,
184                    java.lang.String description, java.lang.String ddmStructureKey,
185                    java.lang.String ddmTemplateKey,
186                    java.lang.String ddmRendererTemplateKey, int delta,
187                    java.lang.String orderByCol, java.lang.String orderByType,
188                    java.lang.String targetLayoutFriendlyUrl,
189                    java.lang.String targetPortletId, java.lang.String contentField,
190                    java.lang.String feedType, double feedVersion,
191                    com.liferay.portal.service.ServiceContext serviceContext)
192                    throws RemoteException {
193                    try {
194                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
195                                            feedId, name, description, ddmStructureKey, ddmTemplateKey,
196                                            ddmRendererTemplateKey, delta, orderByCol, orderByType,
197                                            targetLayoutFriendlyUrl, targetPortletId, contentField,
198                                            feedType, feedVersion, serviceContext);
199    
200                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
201                    }
202                    catch (Exception e) {
203                            _log.error(e, e);
204    
205                            throw new RemoteException(e.getMessage());
206                    }
207            }
208    
209            private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
210    }