summaryrefslogtreecommitdiff
path: root/eaaf_core/src
diff options
context:
space:
mode:
authorThomas <>2023-05-31 09:55:26 +0200
committerThomas <>2023-05-31 09:55:26 +0200
commitb182f8ec4d0cf247a6846408f37bfe3a28d71342 (patch)
tree7967a5435486da8d51b350235d49ae50008b06d6 /eaaf_core/src
parentb8807c30b2ef988226573c6b5bf2f6b3de6aac4d (diff)
downloadEAAF-Components-b182f8ec4d0cf247a6846408f37bfe3a28d71342.tar.gz
EAAF-Components-b182f8ec4d0cf247a6846408f37bfe3a28d71342.tar.bz2
EAAF-Components-b182f8ec4d0cf247a6846408f37bfe3a28d71342.zip
feat(core): add remove method to IPendingRequest interface
Diffstat (limited to 'eaaf_core/src')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/protocols/RequestImpl.java5
-rw-r--r--eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java7
2 files changed, 11 insertions, 1 deletions
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
@@ -297,6 +297,12 @@ public class TestRequestImpl implements IRequest {
}
@Override
+ public void removeRawDataFromTransaction(String key) {
+ storage.remove(key);
+
+ }
+
+ @Override
public void setRawDataToTransaction(final Map<String, Object> map) throws EaafStorageException {
storage.putAll(map);
@@ -399,5 +405,4 @@ public class TestRequestImpl implements IRequest {
this.currentlyInIframe = flag;
}
-
}