001
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
034 public class StagingServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static void cleanUpStagingRequest(long stagingRequestId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 getService().cleanUpStagingRequest(stagingRequestId);
063 }
064
065 public static long createStagingRequest(long groupId,
066 java.lang.String checksum)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService().createStagingRequest(groupId, checksum);
070 }
071
072 public static void publishStagingRequest(long stagingRequestId,
073 boolean privateLayout,
074 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 getService()
078 .publishStagingRequest(stagingRequestId, privateLayout, parameterMap);
079 }
080
081 public static void updateStagingRequest(long stagingRequestId,
082 java.lang.String fileName, byte[] bytes)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 getService().updateStagingRequest(stagingRequestId, fileName, bytes);
086 }
087
088 public static com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
089 long stagingRequestId, boolean privateLayout,
090 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService()
094 .validateStagingRequest(stagingRequestId, privateLayout,
095 parameterMap);
096 }
097
098 public static StagingService getService() {
099 if (_service == null) {
100 _service = (StagingService)PortalBeanLocatorUtil.locate(StagingService.class.getName());
101
102 ReferenceRegistry.registerReference(StagingServiceUtil.class,
103 "_service");
104 }
105
106 return _service;
107 }
108
109
112 public void setService(StagingService service) {
113 }
114
115 private static StagingService _service;
116 }