Class PiisConsentEntitySpecification
- java.lang.Object
-
- de.adorsys.psd2.consent.repository.specification.ConsentFilterableSpecification
-
- de.adorsys.psd2.consent.repository.specification.PiisConsentEntitySpecification
-
@Service public class PiisConsentEntitySpecification extends ConsentFilterableSpecification
-
-
Constructor Summary
Constructors Constructor Description PiisConsentEntitySpecification(CommonSpecification<ConsentEntity> commonSpecification, ConsentSpecification consentSpecification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.jpa.domain.Specification<ConsentEntity>byAccountReferenceSelector(@NotNull de.adorsys.psd2.xs2a.core.profile.AccountReferenceSelector selector)Returns specification for ConsentEntity for filtering consents by Account Reference Selector.org.springframework.data.jpa.domain.Specification<ConsentEntity>byCurrencyAndAccountReferenceSelector(@Nullable Currency currency, @NotNull de.adorsys.psd2.xs2a.core.profile.AccountReferenceSelector selector)Returns specification for ConsentEntity for filtering consents by Currency and Account Reference Selector.org.springframework.data.jpa.domain.Specification<ConsentEntity>byPsuDataAndInstanceId(de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData, String instanceId)Returns specification for some entity for filtering data by PSU data and instance id.org.springframework.data.jpa.domain.Specification<ConsentEntity>byPsuIdDataAndAuthorisationNumberAndAccountReferenceAndInstanceId(@NotNull de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData, @NotNull String tppAuthorisationNumber, @NotNull de.adorsys.psd2.xs2a.core.profile.AccountReference accountReference, @NotNull String instanceId)Returns specification for ConsentEntity for filtering consents by PsuIdData, TppInfo and AccountReference.de.adorsys.psd2.xs2a.core.consent.ConsentTypegetType()-
Methods inherited from class de.adorsys.psd2.consent.repository.specification.ConsentFilterableSpecification
byAdditionalTppInfo, byAspspAccountIdAndCreationPeriodAndInstanceIdAndAdditionalTppInfo, byConsentIdAndInstanceId, byConsentType, byPsuDataInListAndInstanceIdAndAdditionalTppInfo, byPsuIdDataAndCreationPeriodAndInstanceIdAndAdditionalTppInfo, byTppIdAndCreationPeriodAndPsuIdDataAndInstanceId
-
-
-
-
Constructor Detail
-
PiisConsentEntitySpecification
public PiisConsentEntitySpecification(CommonSpecification<ConsentEntity> commonSpecification, ConsentSpecification consentSpecification)
-
-
Method Detail
-
getType
public de.adorsys.psd2.xs2a.core.consent.ConsentType getType()
- Specified by:
getTypein classConsentFilterableSpecification
-
byPsuDataAndInstanceId
public org.springframework.data.jpa.domain.Specification<ConsentEntity> byPsuDataAndInstanceId(de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData, String instanceId)
Returns specification for some entity for filtering data by PSU data and instance id.- Parameters:
psuIdData- PSU datainstanceId- ID of particular service instance- Returns:
- resulting specification
-
byPsuIdDataAndAuthorisationNumberAndAccountReferenceAndInstanceId
public org.springframework.data.jpa.domain.Specification<ConsentEntity> byPsuIdDataAndAuthorisationNumberAndAccountReferenceAndInstanceId(@NotNull @NotNull de.adorsys.psd2.xs2a.core.psu.PsuIdData psuIdData, @NotNull @NotNull String tppAuthorisationNumber, @NotNull @NotNull de.adorsys.psd2.xs2a.core.profile.AccountReference accountReference, @NotNull @NotNull String instanceId)
Returns specification for ConsentEntity for filtering consents by PsuIdData, TppInfo and AccountReference.- Parameters:
psuIdData- mandatory PSU ID datatppAuthorisationNumber- mandatory TPP authorisation numberaccountReference- mandatory PIIS Account Reference- Returns:
- resulting specification for ConsentEntity
-
byCurrencyAndAccountReferenceSelector
public org.springframework.data.jpa.domain.Specification<ConsentEntity> byCurrencyAndAccountReferenceSelector(@Nullable @Nullable Currency currency, @NotNull @NotNull de.adorsys.psd2.xs2a.core.profile.AccountReferenceSelector selector)
Returns specification for ConsentEntity for filtering consents by Currency and Account Reference Selector.- Parameters:
currency- optional Currencyselector- mandatory Account Reference Selector- Returns:
- resulting specification for ConsentEntity
-
byAccountReferenceSelector
public org.springframework.data.jpa.domain.Specification<ConsentEntity> byAccountReferenceSelector(@NotNull @NotNull de.adorsys.psd2.xs2a.core.profile.AccountReferenceSelector selector)
Returns specification for ConsentEntity for filtering consents by Account Reference Selector.- Parameters:
selector- mandatory Account Reference Selector- Returns:
- resulting specification for ConsentEntity
-
-