001    /**
002     * Copyright (c) 2000-present 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.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for Portal. This utility wraps
024     * {@link com.liferay.portal.service.impl.PortalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see PortalService
032     * @see com.liferay.portal.service.base.PortalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.PortalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class PortalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PortalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static boolean testHasClassName() {
044                    return getService().testHasClassName();
045            }
046    
047            public static int getBuildNumber() {
048                    return getService().getBuildNumber();
049            }
050    
051            public static int testGetBuildNumber() {
052                    return getService().testGetBuildNumber();
053            }
054    
055            public static java.lang.String getAutoDeployDirectory() {
056                    return getService().getAutoDeployDirectory();
057            }
058    
059            /**
060            * Returns the OSGi service identifier.
061            *
062            * @return the OSGi service identifier
063            */
064            public static java.lang.String getOSGiServiceIdentifier() {
065                    return getService().getOSGiServiceIdentifier();
066            }
067    
068            public static java.lang.String getVersion() {
069                    return getService().getVersion();
070            }
071    
072            public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(
073                    java.lang.String transactionPortletBarText) {
074                    getService()
075                            .testAddClassNameAndTestTransactionPortletBar_PortalRollback(transactionPortletBarText);
076            }
077    
078            public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(
079                    java.lang.String transactionPortletBarText) {
080                    getService()
081                            .testAddClassNameAndTestTransactionPortletBar_PortletRollback(transactionPortletBarText);
082            }
083    
084            public static void testAddClassNameAndTestTransactionPortletBar_Success(
085                    java.lang.String transactionPortletBarText) {
086                    getService()
087                            .testAddClassNameAndTestTransactionPortletBar_Success(transactionPortletBarText);
088            }
089    
090            public static void testAddClassName_Rollback(
091                    java.lang.String classNameValue) {
092                    getService().testAddClassName_Rollback(classNameValue);
093            }
094    
095            public static void testAddClassName_Success(java.lang.String classNameValue) {
096                    getService().testAddClassName_Success(classNameValue);
097            }
098    
099            public static void testAutoSyncHibernateSessionStateOnTxCreation() {
100                    getService().testAutoSyncHibernateSessionStateOnTxCreation();
101            }
102    
103            public static void testDeleteClassName()
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    getService().testDeleteClassName();
106            }
107    
108            public static void testGetUserId() {
109                    getService().testGetUserId();
110            }
111    
112            public static PortalService getService() {
113                    if (_service == null) {
114                            _service = (PortalService)PortalBeanLocatorUtil.locate(PortalService.class.getName());
115    
116                            ReferenceRegistry.registerReference(PortalServiceUtil.class,
117                                    "_service");
118                    }
119    
120                    return _service;
121            }
122    
123            private static PortalService _service;
124    }