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.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * 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.
023     *
024     * <p>
025     * 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.
026     * </p>
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            public static java.lang.String getAutoDeployDirectory()
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return getService().getAutoDeployDirectory();
043            }
044    
045            public static int getBuildNumber() {
046                    return getService().getBuildNumber();
047            }
048    
049            public static void testAddClassName_Rollback(
050                    java.lang.String classNameValue)
051                    throws com.liferay.portal.kernel.exception.SystemException {
052                    getService().testAddClassName_Rollback(classNameValue);
053            }
054    
055            public static void testAddClassName_Success(java.lang.String classNameValue)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    getService().testAddClassName_Success(classNameValue);
058            }
059    
060            public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(
061                    java.lang.String transactionPortletBarText)
062                    throws com.liferay.portal.kernel.exception.SystemException {
063                    getService()
064                            .testAddClassNameAndTestTransactionPortletBar_PortalRollback(transactionPortletBarText);
065            }
066    
067            public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(
068                    java.lang.String transactionPortletBarText)
069                    throws com.liferay.portal.kernel.exception.SystemException {
070                    getService()
071                            .testAddClassNameAndTestTransactionPortletBar_PortletRollback(transactionPortletBarText);
072            }
073    
074            public static void testAddClassNameAndTestTransactionPortletBar_Success(
075                    java.lang.String transactionPortletBarText)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    getService()
078                            .testAddClassNameAndTestTransactionPortletBar_Success(transactionPortletBarText);
079            }
080    
081            public static void testCounterIncrement_Rollback()
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    getService().testCounterIncrement_Rollback();
084            }
085    
086            public static void testDeleteClassName()
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().testDeleteClassName();
090            }
091    
092            public static void testGetUserId() {
093                    getService().testGetUserId();
094            }
095    
096            public static boolean testHasClassName()
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getService().testHasClassName();
099            }
100    
101            public static PortalService getService() {
102                    if (_service == null) {
103                            _service = (PortalService)PortalBeanLocatorUtil.locate(PortalService.class.getName());
104    
105                            ReferenceRegistry.registerReference(PortalServiceUtil.class,
106                                    "_service");
107                            MethodCache.remove(PortalService.class);
108                    }
109    
110                    return _service;
111            }
112    
113            public void setService(PortalService service) {
114                    MethodCache.remove(PortalService.class);
115    
116                    _service = service;
117    
118                    ReferenceRegistry.registerReference(PortalServiceUtil.class, "_service");
119                    MethodCache.remove(PortalService.class);
120            }
121    
122            private static PortalService _service;
123    }