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