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