From b182f8ec4d0cf247a6846408f37bfe3a28d71342 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 31 May 2023 09:55:26 +0200 Subject: feat(core): add remove method to IPendingRequest interface --- .../egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java | 5 +++++ .../at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'eaaf_core/src') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java index a4f60ddc..27b032e3 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java @@ -583,6 +583,11 @@ public abstract class RequestImpl implements IRequest, Serializable { } + public final void removeRawDataFromTransaction(String key) { + genericDataStorage.remove(key); + + } + private String objectSaveJsonSerialization(Object object) throws EaafStorageException { try { return DefaultJsonMapper.serialize(RawDataHolder.builder() diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java index b3f733d1..cc620dc8 100644 --- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java +++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java @@ -296,6 +296,12 @@ public class TestRequestImpl implements IRequest { } + @Override + public void removeRawDataFromTransaction(String key) { + storage.remove(key); + + } + @Override public void setRawDataToTransaction(final Map map) throws EaafStorageException { storage.putAll(map); @@ -399,5 +405,4 @@ public class TestRequestImpl implements IRequest { this.currentlyInIframe = flag; } - } -- cgit v1.2.3