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.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 java.lang.String getAutoDeployDirectory() {
044                    return getService().getAutoDeployDirectory();
045            }
046    
047            /**
048            * Returns the Spring bean ID for this bean.
049            *
050            * @return the Spring bean ID for this bean
051            */
052            public static java.lang.String getBeanIdentifier() {
053                    return getService().getBeanIdentifier();
054            }
055    
056            public static int getBuildNumber() {
057                    return getService().getBuildNumber();
058            }
059    
060            public static java.lang.String getVersion() {
061                    return getService().getVersion();
062            }
063    
064            /**
065            * Sets the Spring bean ID for this bean.
066            *
067            * @param beanIdentifier the Spring bean ID for this bean
068            */
069            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
070                    getService().setBeanIdentifier(beanIdentifier);
071            }
072    
073            public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(
074                    java.lang.String transactionPortletBarText) {
075                    getService()
076                            .testAddClassNameAndTestTransactionPortletBar_PortalRollback(transactionPortletBarText);
077            }
078    
079            public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(
080                    java.lang.String transactionPortletBarText) {
081                    getService()
082                            .testAddClassNameAndTestTransactionPortletBar_PortletRollback(transactionPortletBarText);
083            }
084    
085            public static void testAddClassNameAndTestTransactionPortletBar_Success(
086                    java.lang.String transactionPortletBarText) {
087                    getService()
088                            .testAddClassNameAndTestTransactionPortletBar_Success(transactionPortletBarText);
089            }
090    
091            public static void testAddClassName_Rollback(
092                    java.lang.String classNameValue) {
093                    getService().testAddClassName_Rollback(classNameValue);
094            }
095    
096            public static void testAddClassName_Success(java.lang.String classNameValue) {
097                    getService().testAddClassName_Success(classNameValue);
098            }
099    
100            public static void testAutoSyncHibernateSessionStateOnTxCreation() {
101                    getService().testAutoSyncHibernateSessionStateOnTxCreation();
102            }
103    
104            public static void testDeleteClassName()
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    getService().testDeleteClassName();
107            }
108    
109            public static int testGetBuildNumber() {
110                    return getService().testGetBuildNumber();
111            }
112    
113            public static void testGetUserId() {
114                    getService().testGetUserId();
115            }
116    
117            public static boolean testHasClassName() {
118                    return getService().testHasClassName();
119            }
120    
121            public static PortalService getService() {
122                    if (_service == null) {
123                            _service = (PortalService)PortalBeanLocatorUtil.locate(PortalService.class.getName());
124    
125                            ReferenceRegistry.registerReference(PortalServiceUtil.class,
126                                    "_service");
127                    }
128    
129                    return _service;
130            }
131    
132            /**
133             * @deprecated As of 6.2.0
134             */
135            @Deprecated
136            public void setService(PortalService service) {
137            }
138    
139            private static PortalService _service;
140    }