@RequestMapping( value = "/upload/single/initiation", method = RequestMethod.POST, consumes = ["application/xml", "application/json"] ) @Secured(SecurityFunctions.FN_UPLOAD_POST) fun initiateUploadSingle(@RequestBody uploadSingleInitiationRequest: UploadSingleInitiationRequest?): UploadSingleInitiationResponse? { val uploadSingleInitiationResponse: UploadSingleInitiationResponse = uploadDownloadService.initiateUploadSingle(uploadSingleInitiationRequest) for (businessObjectData in Arrays.asList( uploadSingleInitiationResponse.getSourceBusinessObjectData(), uploadSingleInitiationResponse.getTargetBusinessObjectData() )) { val businessObjectDataKey: BusinessObjectDataKey = businessObjectDataHelper.getBusinessObjectDataKey(businessObjectData) for (eventType in Arrays.asList( NotificationEventTypeEntity.EventTypesBdata.BUS_OBJCT_DATA_RGSTN, NotificationEventTypeEntity.EventTypesBdata.BUS_OBJCT_DATA_STTS_CHG )) { notificationEventService.processBusinessObjectDataNotificationEventAsync( eventType, businessObjectDataKey, businessObjectData.getStatus(), null ) } for (storageUnit in businessObjectData.getStorageUnits()) { notificationEventService.processStorageUnitNotificationEventAsync( NotificationEventTypeEntity.EventTypesStorageUnit.STRGE_UNIT_STTS_CHG, businessObjectDataKey, storageUnit.getStorage().getName(), storageUnit.getStorageUnitStatus(), null ) } } return uploadSingleInitiationResponse }
Initiates a single file upload capability by creating the relative business object data instance in UPLOADING state and allowing write access to a specific location in S3_MANAGED_LOADING_DOCK storage . < p > Requires WRITE permission on namespace < /p >