Class ConsentEntity
- java.lang.Object
-
- de.adorsys.psd2.consent.domain.InstanceDependableEntity
-
- de.adorsys.psd2.consent.domain.consent.ConsentEntity
-
- All Implemented Interfaces:
Authorisable
@Entity(name="consent") public class ConsentEntity extends InstanceDependableEntity implements Authorisable
-
-
Constructor Summary
Constructors Constructor Description ConsentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUsage(AisConsentUsage aisConsentUsage)voidconsentPostLoad()voidconsentPrePersist()voidconsentPreUpdate()StringgetInternalRequestId(de.adorsys.psd2.xs2a.core.authorisation.AuthorisationType authorisationType)booleanisConfirmationExpired(long expirationPeriodMs)booleanisExpiredByDate()booleanisNonReccuringAlreadyUsed()Checks, whether the consent is non-recurring and was used any time before today.booleanisOneAccessType()booleanisWrongConsentData()booleanshouldConsentBeExpired()-
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.domain.Authorisable
getAuthorisationTemplate, getExternalId, getInstanceId, getPsuDataList, setPsuDataList
-
-
-
-
Method Detail
-
consentPostLoad
public void consentPostLoad()
-
consentPreUpdate
public void consentPreUpdate()
-
consentPrePersist
public void consentPrePersist()
-
isConfirmationExpired
public boolean isConfirmationExpired(long expirationPeriodMs)
-
addUsage
public void addUsage(AisConsentUsage aisConsentUsage)
-
isWrongConsentData
public boolean isWrongConsentData()
-
isExpiredByDate
public boolean isExpiredByDate()
-
shouldConsentBeExpired
public boolean shouldConsentBeExpired()
-
isNonReccuringAlreadyUsed
public boolean isNonReccuringAlreadyUsed()
Checks, whether the consent is non-recurring and was used any time before today. Currently non-recurring consent allows to perform read operations only within the day, it was used first time.- Returns:
- Returns true if consent is non-recurrent and has no usages before today, false otherwise.
-
isOneAccessType
public boolean isOneAccessType()
-
getInternalRequestId
public String getInternalRequestId(de.adorsys.psd2.xs2a.core.authorisation.AuthorisationType authorisationType)
- Specified by:
getInternalRequestIdin interfaceAuthorisable
-
-