001
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
034 public class PortalServiceUtil {
035
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 }