@Service @Transactional(readOnly=true) public class AisConsentServiceInternal extends Object implements AisConsentService
| Constructor and Description |
|---|
AisConsentServiceInternal() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsentAndSaveActionLog(AisConsentActionRequest request)
Save information about uses of consent
|
Optional<String> |
createAuthorization(String consentId,
AisConsentAuthorizationRequest request)
Create consent authorization
|
Optional<String> |
createConsent(CreateAisConsentRequest request)
Create AIS consent
|
Optional<AisConsentAuthorizationResponse> |
getAccountConsentAuthorizationById(String authorizationId,
String consentId)
Get consent authorization
|
Optional<AisAccountConsent> |
getAisAccountConsentById(String consentId)
Read full information of consent by id
|
Optional<List<String>> |
getAuthorisationsByConsentId(String consentId)
Gets list of consent authorisation IDs by consent ID
|
Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> |
getAuthorisationScaStatus(String consentId,
String authorisationId) |
Optional<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> |
getConsentStatusById(String consentId)
Read status of consent by id
|
Optional<de.adorsys.psd2.xs2a.core.psu.PsuIdData> |
getPsuDataByConsentId(String consentId) |
Optional<String> |
updateAccountAccess(String consentId,
AisAccountAccessInfo request)
Update AIS consent account access by id
|
boolean |
updateConsentAuthorization(String authorizationId,
AisConsentAuthorizationRequest request)
Update consent authorization
|
boolean |
updateConsentStatusById(String consentId,
de.adorsys.psd2.xs2a.core.consent.ConsentStatus status)
Update consent status by id
|
@Transactional public Optional<String> createConsent(CreateAisConsentRequest request)
request - needed parameters for creating AIS consentpublic Optional<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> getConsentStatusById(String consentId)
consentId - id of consent@Transactional public boolean updateConsentStatusById(String consentId, de.adorsys.psd2.xs2a.core.consent.ConsentStatus status)
consentId - id of consentstatus - new consent statuspublic Optional<AisAccountConsent> getAisAccountConsentById(String consentId)
consentId - id of consent@Transactional public void checkConsentAndSaveActionLog(AisConsentActionRequest request)
request - needed parameters for logging usage AIS consent@Transactional public Optional<String> updateAccountAccess(String consentId, AisAccountAccessInfo request)
request - needed parameters for updating AIS consentconsentId - id of the consent to be updated@Transactional public Optional<String> createAuthorization(String consentId, AisConsentAuthorizationRequest request)
consentId - id of consentrequest - needed parameters for creating consent authorizationpublic Optional<AisConsentAuthorizationResponse> getAccountConsentAuthorizationById(String authorizationId, String consentId)
consentId - id of consentauthorizationId - id of authorisation sessionpublic Optional<List<String>> getAuthorisationsByConsentId(String consentId)
consentId - id of consentpublic Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId)
@Transactional public boolean updateConsentAuthorization(String authorizationId, AisConsentAuthorizationRequest request)
authorizationId - id of authorisation sessionrequest - needed parameters for updating consent authorizationCopyright © 2018. All rights reserved.