Package energy.eddie.aiida.web
Class ProvisioningController
java.lang.Object
energy.eddie.aiida.web.ProvisioningController
-
Constructor Summary
ConstructorsConstructorDescriptionProvisioningController(ProvisioningService provisioningService) Creates a controller for configuring and discovering inbound provisioning types. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Map<String, InboundProvisioningType[]>> Returns every provisioning type supported for inbound data.org.springframework.http.ResponseEntity<ProvisioningConnectionDto> patchInboundProvisioningType(UUID permissionId, ProvisioningTypePatchDto provisioningTypePatchDto) Changes the provisioning type for the inbound data source associated with a permission.
-
Constructor Details
-
ProvisioningController
Creates a controller for configuring and discovering inbound provisioning types.- Parameters:
provisioningService- Service that applies provisioning changes.
-
-
Method Details
-
patchInboundProvisioningType
@PatchMapping("/permission/{id}/patchInboundProvisioning") public org.springframework.http.ResponseEntity<ProvisioningConnectionDto> patchInboundProvisioningType(@PathVariable("id") UUID permissionId, @RequestBody ProvisioningTypePatchDto provisioningTypePatchDto) throws PermissionNotFoundException, InvalidDataSourceTypeException Changes the provisioning type for the inbound data source associated with a permission.- Parameters:
permissionId- ID of the permission to reconfigure.provisioningTypePatchDto- Requested provisioning type and connection parameters.- Returns:
- The resulting MQTT connection details, or an empty connection DTO for REST provisioning.
- Throws:
PermissionNotFoundException- If no permission exists forpermissionId.InvalidDataSourceTypeException- If the permission is not associated with an inbound data source.
-
getProvisioningTypes
@GetMapping("/types") public org.springframework.http.ResponseEntity<Map<String,InboundProvisioningType[]>> getProvisioningTypes()Returns every provisioning type supported for inbound data.- Returns:
- A response containing all supported provisioning types under the
provisioningTypeskey.
-