Class CmsAuthorisationService<T extends Authorisable>
- java.lang.Object
-
- de.adorsys.psd2.consent.service.authorisation.CmsAuthorisationService<T>
-
- All Implemented Interfaces:
AuthService
- Direct Known Subclasses:
AisAuthService,PisAuthService,PisCancellationAuthService
public abstract class CmsAuthorisationService<T extends Authorisable> extends Object implements AuthService
-
-
Field Summary
Fields Modifier and Type Field Description protected de.adorsys.psd2.aspsp.profile.service.AspspProfileServiceaspspProfileServiceprotected AuthorisationMapperauthorisationMapperprotected AuthorisationRepositoryauthorisationRepositoryprotected CmsPsuServicecmsPsuServiceprotected ConfirmationExpirationService<T>confirmationExpirationServiceprotected PsuDataMapperpsuDataMapper
-
Constructor Summary
Constructors Constructor Description CmsAuthorisationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorisablecheckAndUpdateOnConfirmationExpiration(Authorisable authorisable)AuthorisationEntitydoUpdateAuthorisation(AuthorisationEntity authorisationEntity, de.adorsys.psd2.consent.api.authorisation.UpdateAuthorisationRequest updateAuthorisationRequest)Optional<AuthorisationEntity>getAuthorisationById(String authorisationId)List<AuthorisationEntity>getAuthorisationsByParentId(String parentId)booleanisConfirmationExpired(Authorisable authorisable)AuthorisationEntitysaveAuthorisation(de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationRequest request, Authorisable authorisationParent)protected voidupdateAuthorisable(Object authorisable)AuthorisableupdateOnConfirmationExpiration(Authorisable authorisable)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.consent.service.authorisation.AuthService
getAuthorisationParent, getNotFinalisedAuthorisationParent
-
-
-
-
Field Detail
-
cmsPsuService
protected final CmsPsuService cmsPsuService
-
psuDataMapper
protected final PsuDataMapper psuDataMapper
-
aspspProfileService
protected final de.adorsys.psd2.aspsp.profile.service.AspspProfileService aspspProfileService
-
authorisationMapper
protected final AuthorisationMapper authorisationMapper
-
authorisationRepository
protected final AuthorisationRepository authorisationRepository
-
confirmationExpirationService
protected final ConfirmationExpirationService<T extends Authorisable> confirmationExpirationService
-
-
Method Detail
-
getAuthorisationsByParentId
public List<AuthorisationEntity> getAuthorisationsByParentId(String parentId)
- Specified by:
getAuthorisationsByParentIdin interfaceAuthService
-
getAuthorisationById
public Optional<AuthorisationEntity> getAuthorisationById(String authorisationId)
- Specified by:
getAuthorisationByIdin interfaceAuthService
-
saveAuthorisation
public AuthorisationEntity saveAuthorisation(de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationRequest request, Authorisable authorisationParent)
- Specified by:
saveAuthorisationin interfaceAuthService
-
doUpdateAuthorisation
public AuthorisationEntity doUpdateAuthorisation(AuthorisationEntity authorisationEntity, de.adorsys.psd2.consent.api.authorisation.UpdateAuthorisationRequest updateAuthorisationRequest)
- Specified by:
doUpdateAuthorisationin interfaceAuthService
-
checkAndUpdateOnConfirmationExpiration
public Authorisable checkAndUpdateOnConfirmationExpiration(Authorisable authorisable)
- Specified by:
checkAndUpdateOnConfirmationExpirationin interfaceAuthService
-
isConfirmationExpired
public boolean isConfirmationExpired(Authorisable authorisable)
- Specified by:
isConfirmationExpiredin interfaceAuthService
-
updateOnConfirmationExpiration
public Authorisable updateOnConfirmationExpiration(Authorisable authorisable)
- Specified by:
updateOnConfirmationExpirationin interfaceAuthService
-
updateAuthorisable
protected void updateAuthorisable(Object authorisable)
-
-