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 StagingLocalServiceUtil {
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 userId, 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(userId, groupId, checksum);
070 }
071
072 public static void publishStagingRequest(long userId,
073 long stagingRequestId, 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(userId, stagingRequestId, privateLayout,
079 parameterMap);
080 }
081
082 public static void updateStagingRequest(long userId, long stagingRequestId,
083 java.lang.String fileName, byte[] bytes)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 getService()
087 .updateStagingRequest(userId, stagingRequestId, fileName, bytes);
088 }
089
090 public static com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
091 long userId, long stagingRequestId, boolean privateLayout,
092 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService()
096 .validateStagingRequest(userId, stagingRequestId,
097 privateLayout, parameterMap);
098 }
099
100 public static StagingLocalService getService() {
101 if (_service == null) {
102 _service = (StagingLocalService)PortalBeanLocatorUtil.locate(StagingLocalService.class.getName());
103
104 ReferenceRegistry.registerReference(StagingLocalServiceUtil.class,
105 "_service");
106 }
107
108 return _service;
109 }
110
111
114 public void setService(StagingLocalService service) {
115 }
116
117 private static StagingLocalService _service;
118 }