001
014
015 package com.liferay.portlet.exportimport.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class StagingServiceUtil {
038
043 public static void cleanUpStagingRequest(long stagingRequestId)
044 throws com.liferay.portal.kernel.exception.PortalException {
045 getService().cleanUpStagingRequest(stagingRequestId);
046 }
047
048 public static long createStagingRequest(long groupId,
049 java.lang.String checksum)
050 throws com.liferay.portal.kernel.exception.PortalException {
051 return getService().createStagingRequest(groupId, checksum);
052 }
053
054
059 public static java.lang.String getBeanIdentifier() {
060 return getService().getBeanIdentifier();
061 }
062
063 public static com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
064 long stagingRequestId,
065 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService()
068 .publishStagingRequest(stagingRequestId,
069 exportImportConfiguration);
070 }
071
072
075 @Deprecated
076 public static com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
077 long stagingRequestId, boolean privateLayout,
078 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService()
081 .publishStagingRequest(stagingRequestId, privateLayout,
082 parameterMap);
083 }
084
085
090 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
091 getService().setBeanIdentifier(beanIdentifier);
092 }
093
094 public static void updateStagingRequest(long stagingRequestId,
095 java.lang.String fileName, byte[] bytes)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 getService().updateStagingRequest(stagingRequestId, fileName, bytes);
098 }
099
100
104 @Deprecated
105 public static com.liferay.portlet.exportimport.lar.MissingReferences validateStagingRequest(
106 long stagingRequestId, boolean privateLayout,
107 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
108 throws com.liferay.portal.kernel.exception.PortalException {
109 return getService()
110 .validateStagingRequest(stagingRequestId, privateLayout,
111 parameterMap);
112 }
113
114 public static StagingService getService() {
115 if (_service == null) {
116 _service = (StagingService)PortalBeanLocatorUtil.locate(StagingService.class.getName());
117
118 ReferenceRegistry.registerReference(StagingServiceUtil.class,
119 "_service");
120 }
121
122 return _service;
123 }
124
125
128 @Deprecated
129 public void setService(StagingService service) {
130 }
131
132 private static StagingService _service;
133 }