@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)
Saves information about consent usage and consent's sub-resources usage.
|
Optional<CreateAisConsentResponse> |
createConsent(CreateAisConsentRequest request)
Creates AIS consent.
|
boolean |
findAndTerminateOldConsentsByNewConsentId(String newConsentId)
Searches the old AIS consents and updates their statuses according to authorisation states and PSU data.
|
Optional<AisAccountConsent> |
getAisAccountConsentById(String consentId)
Reads full information of consent by ID.
|
Optional<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> |
getConsentStatusById(String consentId)
Reads status of consent by ID.
|
Optional<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> |
getPsuDataByConsentId(String consentId) |
Optional<String> |
updateAspspAccountAccess(String consentId,
AisAccountAccessInfo request)
Updates AIS consent account access by ID.
|
Optional<AisAccountConsent> |
updateAspspAccountAccessWithResponse(String consentId,
AisAccountAccessInfo request) |
boolean |
updateConsentStatusById(String consentId,
de.adorsys.psd2.xs2a.core.consent.ConsentStatus status)
Updates consent status by ID.
|
boolean |
updateMultilevelScaRequired(String consentId,
boolean multilevelScaRequired) |
@Transactional public Optional<CreateAisConsentResponse> createConsent(CreateAisConsentRequest request)
request - needed parameters for creating AIS consent@Transactional public 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 status@Transactional public Optional<AisAccountConsent> getAisAccountConsentById(String consentId)
consentId - ID of consent@Transactional public boolean findAndTerminateOldConsentsByNewConsentId(String newConsentId)
newConsentId - ID of new consent that was created@Transactional public void checkConsentAndSaveActionLog(AisConsentActionRequest request)
request - AisConsentActionRequest needed parameters for logging usage AIS consent@Transactional public Optional<String> updateAspspAccountAccess(String consentId, AisAccountAccessInfo request)
request - needed parameters for updating AIS consentconsentId - ID of the consent to be updated@Transactional public Optional<AisAccountConsent> updateAspspAccountAccessWithResponse(String consentId, AisAccountAccessInfo request)
public Optional<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> getPsuDataByConsentId(String consentId)
@Transactional public boolean updateMultilevelScaRequired(String consentId, boolean multilevelScaRequired)
Copyright © 2019. All rights reserved.