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.portal.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.service.PortalServiceUtil;
020    
021    import java.rmi.RemoteException;
022    
023    /**
024     * <p>
025     * This class provides a SOAP utility for the
026     * {@link com.liferay.portal.service.PortalServiceUtil} service utility. The
027     * static methods of this class calls the same methods of the service utility.
028     * However, the signatures are different because it is difficult for SOAP to
029     * support certain types.
030     * </p>
031     *
032     * <p>
033     * The benefits of using the SOAP utility is that it is cross platform
034     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
035     * even Perl, to call the generated services. One drawback of SOAP is that it is
036     * slow because it needs to serialize all calls into a text format (XML).
037     * </p>
038     *
039     * <p>
040     * You can see a list of services at http://localhost:8080/api/axis. Set the
041     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
042     * security.
043     * </p>
044     *
045     * <p>
046     * The SOAP utility is only generated for remote services.
047     * </p>
048     *
049     * @author    Brian Wing Shun Chan
050     * @see       PortalServiceHttp
051     * @see       com.liferay.portal.service.PortalServiceUtil
052     * @generated
053     */
054    public class PortalServiceSoap {
055            public static java.lang.String getAutoDeployDirectory()
056                    throws RemoteException {
057                    try {
058                            java.lang.String returnValue = PortalServiceUtil.getAutoDeployDirectory();
059    
060                            return returnValue;
061                    }
062                    catch (Exception e) {
063                            _log.error(e, e);
064    
065                            throw new RemoteException(e.getMessage());
066                    }
067            }
068    
069            public static int getBuildNumber() throws RemoteException {
070                    try {
071                            int returnValue = PortalServiceUtil.getBuildNumber();
072    
073                            return returnValue;
074                    }
075                    catch (Exception e) {
076                            _log.error(e, e);
077    
078                            throw new RemoteException(e.getMessage());
079                    }
080            }
081    
082            public static void testAddClassName_Rollback(
083                    java.lang.String classNameValue) throws RemoteException {
084                    try {
085                            PortalServiceUtil.testAddClassName_Rollback(classNameValue);
086                    }
087                    catch (Exception e) {
088                            _log.error(e, e);
089    
090                            throw new RemoteException(e.getMessage());
091                    }
092            }
093    
094            public static void testAddClassName_Success(java.lang.String classNameValue)
095                    throws RemoteException {
096                    try {
097                            PortalServiceUtil.testAddClassName_Success(classNameValue);
098                    }
099                    catch (Exception e) {
100                            _log.error(e, e);
101    
102                            throw new RemoteException(e.getMessage());
103                    }
104            }
105    
106            public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(
107                    java.lang.String transactionPortletBarText) throws RemoteException {
108                    try {
109                            PortalServiceUtil.testAddClassNameAndTestTransactionPortletBar_PortalRollback(transactionPortletBarText);
110                    }
111                    catch (Exception e) {
112                            _log.error(e, e);
113    
114                            throw new RemoteException(e.getMessage());
115                    }
116            }
117    
118            public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(
119                    java.lang.String transactionPortletBarText) throws RemoteException {
120                    try {
121                            PortalServiceUtil.testAddClassNameAndTestTransactionPortletBar_PortletRollback(transactionPortletBarText);
122                    }
123                    catch (Exception e) {
124                            _log.error(e, e);
125    
126                            throw new RemoteException(e.getMessage());
127                    }
128            }
129    
130            public static void testAddClassNameAndTestTransactionPortletBar_Success(
131                    java.lang.String transactionPortletBarText) throws RemoteException {
132                    try {
133                            PortalServiceUtil.testAddClassNameAndTestTransactionPortletBar_Success(transactionPortletBarText);
134                    }
135                    catch (Exception e) {
136                            _log.error(e, e);
137    
138                            throw new RemoteException(e.getMessage());
139                    }
140            }
141    
142            public static void testAutoSyncHibernateSessionStateOnTxCreation()
143                    throws RemoteException {
144                    try {
145                            PortalServiceUtil.testAutoSyncHibernateSessionStateOnTxCreation();
146                    }
147                    catch (Exception e) {
148                            _log.error(e, e);
149    
150                            throw new RemoteException(e.getMessage());
151                    }
152            }
153    
154            public static void testCounterIncrement_Rollback()
155                    throws RemoteException {
156                    try {
157                            PortalServiceUtil.testCounterIncrement_Rollback();
158                    }
159                    catch (Exception e) {
160                            _log.error(e, e);
161    
162                            throw new RemoteException(e.getMessage());
163                    }
164            }
165    
166            public static void testDeleteClassName() throws RemoteException {
167                    try {
168                            PortalServiceUtil.testDeleteClassName();
169                    }
170                    catch (Exception e) {
171                            _log.error(e, e);
172    
173                            throw new RemoteException(e.getMessage());
174                    }
175            }
176    
177            public static int testGetBuildNumber() throws RemoteException {
178                    try {
179                            int returnValue = PortalServiceUtil.testGetBuildNumber();
180    
181                            return returnValue;
182                    }
183                    catch (Exception e) {
184                            _log.error(e, e);
185    
186                            throw new RemoteException(e.getMessage());
187                    }
188            }
189    
190            public static void testGetUserId() throws RemoteException {
191                    try {
192                            PortalServiceUtil.testGetUserId();
193                    }
194                    catch (Exception e) {
195                            _log.error(e, e);
196    
197                            throw new RemoteException(e.getMessage());
198                    }
199            }
200    
201            public static boolean testHasClassName() throws RemoteException {
202                    try {
203                            boolean returnValue = PortalServiceUtil.testHasClassName();
204    
205                            return returnValue;
206                    }
207                    catch (Exception e) {
208                            _log.error(e, e);
209    
210                            throw new RemoteException(e.getMessage());
211                    }
212            }
213    
214            private static Log _log = LogFactoryUtil.getLog(PortalServiceSoap.class);
215    }