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