001
014
015 package com.liferay.portlet.exportimport.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.exportimport.service.StagingServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
055 @ProviderType
056 public class StagingServiceSoap {
057 public static void cleanUpStagingRequest(long stagingRequestId)
058 throws RemoteException {
059 try {
060 StagingServiceUtil.cleanUpStagingRequest(stagingRequestId);
061 }
062 catch (Exception e) {
063 _log.error(e, e);
064
065 throw new RemoteException(e.getMessage());
066 }
067 }
068
069 public static long createStagingRequest(long groupId,
070 java.lang.String checksum) throws RemoteException {
071 try {
072 long returnValue = StagingServiceUtil.createStagingRequest(groupId,
073 checksum);
074
075 return returnValue;
076 }
077 catch (Exception e) {
078 _log.error(e, e);
079
080 throw new RemoteException(e.getMessage());
081 }
082 }
083
084 public static com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
085 long stagingRequestId,
086 com.liferay.portlet.exportimport.model.ExportImportConfigurationSoap exportImportConfiguration)
087 throws RemoteException {
088 try {
089 com.liferay.portlet.exportimport.lar.MissingReferences returnValue = StagingServiceUtil.publishStagingRequest(stagingRequestId,
090 com.liferay.portlet.exportimport.model.impl.ExportImportConfigurationModelImpl.toModel(
091 exportImportConfiguration));
092
093 return returnValue;
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102 public static void updateStagingRequest(long stagingRequestId,
103 java.lang.String fileName, byte[] bytes) throws RemoteException {
104 try {
105 StagingServiceUtil.updateStagingRequest(stagingRequestId, fileName,
106 bytes);
107 }
108 catch (Exception e) {
109 _log.error(e, e);
110
111 throw new RemoteException(e.getMessage());
112 }
113 }
114
115 private static Log _log = LogFactoryUtil.getLog(StagingServiceSoap.class);
116 }