001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    
020    import com.liferay.portlet.journal.service.JournalFeedServiceUtil;
021    
022    import java.rmi.RemoteException;
023    
024    /**
025     * <p>
026     * This class provides a SOAP utility for the
027     * {@link com.liferay.portlet.journal.service.JournalFeedServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it is difficult for SOAP to
030     * support certain types.
031     * </p>
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    public class JournalFeedServiceSoap {
067            public static com.liferay.portlet.journal.model.JournalFeedSoap addFeed(
068                    long groupId, java.lang.String feedId, boolean autoFeedId,
069                    java.lang.String name, java.lang.String description,
070                    java.lang.String type, java.lang.String structureId,
071                    java.lang.String templateId, java.lang.String rendererTemplateId,
072                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
073                    java.lang.String targetLayoutFriendlyUrl,
074                    java.lang.String targetPortletId, java.lang.String contentField,
075                    java.lang.String feedType, double feedVersion,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws RemoteException {
078                    try {
079                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.addFeed(groupId,
080                                            feedId, autoFeedId, name, description, type, structureId,
081                                            templateId, rendererTemplateId, delta, orderByCol,
082                                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
083                                            contentField, feedType, feedVersion, serviceContext);
084    
085                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
086                    }
087                    catch (Exception e) {
088                            _log.error(e, e);
089    
090                            throw new RemoteException(e.getMessage());
091                    }
092            }
093    
094            public static void deleteFeed(long groupId, long feedId)
095                    throws RemoteException {
096                    try {
097                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
098                    }
099                    catch (Exception e) {
100                            _log.error(e, e);
101    
102                            throw new RemoteException(e.getMessage());
103                    }
104            }
105    
106            public static void deleteFeed(long groupId, java.lang.String feedId)
107                    throws RemoteException {
108                    try {
109                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
110                    }
111                    catch (Exception e) {
112                            _log.error(e, e);
113    
114                            throw new RemoteException(e.getMessage());
115                    }
116            }
117    
118            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
119                    long groupId, long feedId) throws RemoteException {
120                    try {
121                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
122                                            feedId);
123    
124                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
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 groupId, java.lang.String feedId) throws RemoteException {
135                    try {
136                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
137                                            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            public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
149                    long groupId, java.lang.String feedId, java.lang.String name,
150                    java.lang.String description, java.lang.String type,
151                    java.lang.String structureId, java.lang.String templateId,
152                    java.lang.String rendererTemplateId, int delta,
153                    java.lang.String orderByCol, java.lang.String orderByType,
154                    java.lang.String targetLayoutFriendlyUrl,
155                    java.lang.String targetPortletId, java.lang.String contentField,
156                    java.lang.String feedType, double feedVersion,
157                    com.liferay.portal.service.ServiceContext serviceContext)
158                    throws RemoteException {
159                    try {
160                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
161                                            feedId, name, description, type, structureId, templateId,
162                                            rendererTemplateId, delta, orderByCol, orderByType,
163                                            targetLayoutFriendlyUrl, targetPortletId, contentField,
164                                            feedType, feedVersion, serviceContext);
165    
166                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
167                    }
168                    catch (Exception e) {
169                            _log.error(e, e);
170    
171                            throw new RemoteException(e.getMessage());
172                    }
173            }
174    
175            private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
176    }