001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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 type, java.lang.String structureId,
072                    java.lang.String templateId, java.lang.String rendererTemplateId,
073                    int delta, 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, type, structureId,
082                                            templateId, rendererTemplateId, 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            public static void deleteFeed(long groupId, long feedId)
110                    throws RemoteException {
111                    try {
112                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
113                    }
114                    catch (Exception e) {
115                            _log.error(e, e);
116    
117                            throw new RemoteException(e.getMessage());
118                    }
119            }
120    
121            public static void deleteFeed(long groupId, java.lang.String feedId)
122                    throws RemoteException {
123                    try {
124                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
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 feedId) throws RemoteException {
135                    try {
136                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(feedId);
137    
138                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
139                    }
140                    catch (Exception e) {
141                            _log.error(e, e);
142    
143                            throw new RemoteException(e.getMessage());
144                    }
145            }
146    
147            /**
148            * @deprecated As of 6.2.0, replaced by {@link #getFeed(long, String)}
149            */
150            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
151                    long groupId, long feedId) throws RemoteException {
152                    try {
153                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
154                                            feedId);
155    
156                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
157                    }
158                    catch (Exception e) {
159                            _log.error(e, e);
160    
161                            throw new RemoteException(e.getMessage());
162                    }
163            }
164    
165            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
166                    long groupId, java.lang.String feedId) throws RemoteException {
167                    try {
168                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
169                                            feedId);
170    
171                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
172                    }
173                    catch (Exception e) {
174                            _log.error(e, e);
175    
176                            throw new RemoteException(e.getMessage());
177                    }
178            }
179    
180            public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
181                    long groupId, java.lang.String feedId, java.lang.String name,
182                    java.lang.String description, java.lang.String type,
183                    java.lang.String structureId, java.lang.String templateId,
184                    java.lang.String rendererTemplateId, int delta,
185                    java.lang.String orderByCol, java.lang.String orderByType,
186                    java.lang.String targetLayoutFriendlyUrl,
187                    java.lang.String targetPortletId, java.lang.String contentField,
188                    java.lang.String feedType, double feedVersion,
189                    com.liferay.portal.service.ServiceContext serviceContext)
190                    throws RemoteException {
191                    try {
192                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
193                                            feedId, name, description, type, structureId, templateId,
194                                            rendererTemplateId, delta, orderByCol, orderByType,
195                                            targetLayoutFriendlyUrl, targetPortletId, contentField,
196                                            feedType, feedVersion, serviceContext);
197    
198                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
199                    }
200                    catch (Exception e) {
201                            _log.error(e, e);
202    
203                            throw new RemoteException(e.getMessage());
204                    }
205            }
206    
207            private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
208    }