public interface AisConsentRepository extends Xs2aCrudRepository<AisConsent,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<AisConsent>
| Modifier and Type | Method and Description |
|---|---|
List<AisConsent> |
findByConsentStatusIn(Set<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> statuses) |
Optional<AisConsent> |
findByExternalId(String externalId) |
List<AisConsent> |
findOldConsentsByNewConsentParams(Set<String> psuIds,
String tppAuthorisationNumber,
String tppAuthorityId,
String instanceId,
String newConsentId,
Set<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> consentStatuses) |
List<AisConsent> findByConsentStatusIn(Set<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> statuses)
Optional<AisConsent> findByExternalId(String externalId)
@Query(value="select distinct c from ais_consent c join c.psuDataList psuList where psuList.psuId in :psuIds and c.tppInfo.authorisationNumber = :authorisationNumber and c.tppInfo.authorityId = :authorityId and c.instanceId = :instanceId and c.consentStatus in :consentStatuses and c.externalId <> :newConsentId") List<AisConsent> findOldConsentsByNewConsentParams(@Param(value="psuIds") Set<String> psuIds, @Param(value="authorisationNumber") String tppAuthorisationNumber, @Param(value="authorityId") String tppAuthorityId, @Param(value="instanceId") String instanceId, @Param(value="newConsentId") String newConsentId, @Param(value="consentStatuses") Set<de.adorsys.psd2.xs2a.core.consent.ConsentStatus> consentStatuses)
Copyright © 2019. All rights reserved.