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 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
052     * http://localhost:8080/api/secure/axis. Set the property
053     * <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
054     * security.
055     * </p>
056     *
057     * <p>
058     * The SOAP utility is only generated for remote services.
059     * </p>
060     *
061     * @author    Brian Wing Shun Chan
062     * @see       JournalFeedServiceHttp
063     * @see       com.liferay.portlet.journal.model.JournalFeedSoap
064     * @see       com.liferay.portlet.journal.service.JournalFeedServiceUtil
065     * @generated
066     */
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 groupId, long feedId)
096                    throws RemoteException {
097                    try {
098                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
099                    }
100                    catch (Exception e) {
101                            _log.error(e, e);
102    
103                            throw new RemoteException(e.getMessage());
104                    }
105            }
106    
107            public static void deleteFeed(long groupId, java.lang.String feedId)
108                    throws RemoteException {
109                    try {
110                            JournalFeedServiceUtil.deleteFeed(groupId, feedId);
111                    }
112                    catch (Exception e) {
113                            _log.error(e, e);
114    
115                            throw new RemoteException(e.getMessage());
116                    }
117            }
118    
119            public static com.liferay.portlet.journal.model.JournalFeedSoap getFeed(
120                    long groupId, long feedId) throws RemoteException {
121                    try {
122                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
123                                            feedId);
124    
125                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
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 groupId, java.lang.String feedId) throws RemoteException {
136                    try {
137                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.getFeed(groupId,
138                                            feedId);
139    
140                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
141                    }
142                    catch (Exception e) {
143                            _log.error(e, e);
144    
145                            throw new RemoteException(e.getMessage());
146                    }
147            }
148    
149            public static com.liferay.portlet.journal.model.JournalFeedSoap updateFeed(
150                    long groupId, java.lang.String feedId, java.lang.String name,
151                    java.lang.String description, java.lang.String type,
152                    java.lang.String structureId, java.lang.String templateId,
153                    java.lang.String rendererTemplateId, int delta,
154                    java.lang.String orderByCol, java.lang.String orderByType,
155                    java.lang.String targetLayoutFriendlyUrl,
156                    java.lang.String targetPortletId, java.lang.String contentField,
157                    java.lang.String feedType, double feedVersion,
158                    com.liferay.portal.service.ServiceContext serviceContext)
159                    throws RemoteException {
160                    try {
161                            com.liferay.portlet.journal.model.JournalFeed returnValue = JournalFeedServiceUtil.updateFeed(groupId,
162                                            feedId, name, description, type, structureId, templateId,
163                                            rendererTemplateId, delta, orderByCol, orderByType,
164                                            targetLayoutFriendlyUrl, targetPortletId, contentField,
165                                            feedType, feedVersion, serviceContext);
166    
167                            return com.liferay.portlet.journal.model.JournalFeedSoap.toSoapModel(returnValue);
168                    }
169                    catch (Exception e) {
170                            _log.error(e, e);
171    
172                            throw new RemoteException(e.getMessage());
173                    }
174            }
175    
176            private static Log _log = LogFactoryUtil.getLog(JournalFeedServiceSoap.class);
177    }