Interface CmsAspspTppService
-
public interface CmsAspspTppService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanblockTpp(@NotNull String tppAuthorisationNumber, @NotNull String instanceId, @Nullable Duration lockPeriod)Blocks requests from TPP by given TPP ID.@NotNull Optional<de.adorsys.psd2.xs2a.core.tpp.TppInfo>getTppInfo(@NotNull String tppAuthorisationNumber, @NotNull String instanceId)Loads TPP info record by TPP authorisation number@NotNull Optional<de.adorsys.psd2.xs2a.core.tpp.TppStopListRecord>getTppStopListRecord(@NotNull String tppAuthorisationNumber, @NotNull String instanceId)Loads TPP stop list record by TPP IDbooleanunblockTpp(@NotNull String tppAuthorisationNumber, @NotNull String instanceId)Releases lock of requests from TPP by given TPP ID.
-
-
-
Method Detail
-
getTppStopListRecord
@NotNull @NotNull Optional<de.adorsys.psd2.xs2a.core.tpp.TppStopListRecord> getTppStopListRecord(@NotNull @NotNull String tppAuthorisationNumber, @NotNull @NotNull String instanceId)
Loads TPP stop list record by TPP ID- Parameters:
tppAuthorisationNumber- ID of TPP to loadinstanceId- optional ID of particular service instance- Returns:
- TPP Stop list object object if found in DB
-
blockTpp
boolean blockTpp(@NotNull @NotNull String tppAuthorisationNumber, @NotNull @NotNull String instanceId, @Nullable @Nullable Duration lockPeriod)Blocks requests from TPP by given TPP ID. If lockPeriod parameter is passed, locks TPP for certain time. If lockPeriod is not passed, lock TPP without time limitation. If Record with given ID doesn't exist in DB, creates an empty one with given ID- Parameters:
tppAuthorisationNumber- ID of TPP to lockinstanceId- optional ID of particular service instancelockPeriod- Time period of locking. May be omitted.- Returns:
trueif lock was done.falseotherwise.
-
unblockTpp
boolean unblockTpp(@NotNull @NotNull String tppAuthorisationNumber, @NotNull @NotNull String instanceId)Releases lock of requests from TPP by given TPP ID. If Record with given ID doesn't exist in DB, does nothing.- Parameters:
tppAuthorisationNumber- ID of TPP to lockinstanceId- optional ID of particular service instance- Returns:
trueif TPP was found and unlock was done.falseotherwise.
-
getTppInfo
@NotNull @NotNull Optional<de.adorsys.psd2.xs2a.core.tpp.TppInfo> getTppInfo(@NotNull @NotNull String tppAuthorisationNumber, @NotNull @NotNull String instanceId)
Loads TPP info record by TPP authorisation number- Parameters:
tppAuthorisationNumber- ID of TPP to loadinstanceId- optional ID of particular service instance- Returns:
- TPP info object if found in DB
-
-