Class ConsentResource
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.resource.ConsentResource
-
- All Implemented Interfaces:
ConsentRestAPI
@RestController @RequestMapping("/consents") @MiddlewareUserResource public class ConsentResource extends Object implements ConsentRestAPI
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.middleware.rest.resource.ConsentRestAPI
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description ConsentResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<SCAConsentResponseTO>grantPIISConsent(AisConsentTO aisConsent)org.springframework.http.ResponseEntity<SCAConsentResponseTO>initiateAisConsent(String consentId, AisConsentTO aisConsent)
-
-
-
Method Detail
-
initiateAisConsent
@PreAuthorize("hasAnyRole(\'STAFF\',\'CUSTOMER\') and hasAccessToAccountsWithIbans(#aisConsent.access.listedAccountsIbans)") public org.springframework.http.ResponseEntity<SCAConsentResponseTO> initiateAisConsent(String consentId, AisConsentTO aisConsent)- Specified by:
initiateAisConsentin interfaceConsentRestAPI
-
grantPIISConsent
@PreAuthorize("hasAnyRole(\'STAFF\',\'CUSTOMER\') and hasAccessToAccountsWithIbans(#aisConsent.access.listedAccountsIbans)") public org.springframework.http.ResponseEntity<SCAConsentResponseTO> grantPIISConsent(AisConsentTO aisConsent)- Specified by:
grantPIISConsentin interfaceConsentRestAPI
-
-