Package energy.eddie.core.web
Class PermissionFacadeController
java.lang.Object
energy.eddie.core.web.PermissionFacadeController
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionFacadeController(ApplicationInformationService applicationInformationService, MetadataService metadataService, DataNeedCalculationRouter dataNeedCalculationRouter, DataNeedRuleSetRouter dataNeedRuleSetRouter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ApplicationInformation> dataNeedCalculation(String regionConnector, String dataNeedId) dataNeedCalculations(String dataNeedId) org.springframework.http.ResponseEntity<Object> dataNeedCalculations(String regionConnector, Set<String> dataNeedId) org.springframework.http.ResponseEntity<Collection<RegionConnectorMetadata>> supportedDataNeeds(String regionConnectorId) supportedDataNeeds(Set<String> dataNeedIds)
-
Constructor Details
-
PermissionFacadeController
public PermissionFacadeController(ApplicationInformationService applicationInformationService, MetadataService metadataService, DataNeedCalculationRouter dataNeedCalculationRouter, DataNeedRuleSetRouter dataNeedRuleSetRouter)
-
-
Method Details
-
applicationInformation
@GetMapping("/application-information") public org.springframework.http.ResponseEntity<ApplicationInformation> applicationInformation() -
regionConnectorsMetadata
@GetMapping("/region-connectors-metadata") public org.springframework.http.ResponseEntity<Collection<RegionConnectorMetadata>> regionConnectorsMetadata() -
dataNeedCalculation
@GetMapping("/region-connectors/{region-connector}/data-needs/{data-need-id}") public DataNeedCalculation dataNeedCalculation(@PathVariable("region-connector") String regionConnector, @PathVariable("data-need-id") String dataNeedId) throws UnknownRegionConnectorException, DataNeedNotFoundException -
dataNeedCalculations
@GetMapping("/region-connectors/data-needs/{data-need-id}") public Map<String,DataNeedCalculation> dataNeedCalculations(@PathVariable("data-need-id") String dataNeedId) throws DataNeedNotFoundException, DataNeedDisabledException -
dataNeedCalculations
@GetMapping("/region-connectors/{region-connector}/data-needs") public org.springframework.http.ResponseEntity<Object> dataNeedCalculations(@PathVariable("region-connector") String regionConnector, @RequestParam("data-need-id") Set<String> dataNeedId) throws UnknownRegionConnectorException - Throws:
UnknownRegionConnectorException
-
supportedDataNeeds
-
supportedDataNeeds
@GetMapping("/region-connectors/data-need-rule-sets") public Map<String,DataNeedRuleSet> supportedDataNeeds() -
supportedDataNeeds
@GetMapping("/region-connectors/{region-connector}/data-need-rule-set") public DataNeedRuleSet supportedDataNeeds(@PathVariable("region-connector") String regionConnectorId) throws UnknownRegionConnectorException - Throws:
UnknownRegionConnectorException
-