aboutsummaryrefslogtreecommitdiff
path: root/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java
diff options
context:
space:
mode:
Diffstat (limited to 'connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java')
-rw-r--r--connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java b/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java
index 1fb03689..58ab7930 100644
--- a/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java
+++ b/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/SimpleInMemoryTransactionStorage.java
@@ -36,8 +36,8 @@ import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import at.gv.egiz.eaaf.core.api.storage.ITransactionStorage;
-import at.gv.egiz.eaaf.core.exceptions.EAAFException;
-import at.gv.egiz.eaaf.core.exceptions.EAAFStorageException;
+import at.gv.egiz.eaaf.core.exceptions.EaafException;
+import at.gv.egiz.eaaf.core.exceptions.EaafStorageException;
@Service("SimpleInMemoryTransactionStorage")
public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
@@ -46,7 +46,7 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
private Map<String, TransactionStoreElement> storage = new ConcurrentHashMap<String, TransactionStoreElement>();
@Override
- public void changeKey(String oldKey, String newKey, Object value) throws EAAFException {
+ public void changeKey(String oldKey, String newKey, Object value) throws EaafException {
if (containsKey(oldKey)) {
TransactionStoreElement el = storage.get(oldKey);
el.setKey(newKey);
@@ -54,7 +54,7 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
storage.remove(oldKey);
} else
- throw new EAAFStorageException("No element in TransactionStorage with key: " + oldKey);
+ throw new EaafStorageException("No element in TransactionStorage with key: " + oldKey);
}
@@ -87,7 +87,7 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
}
@Override
- public Object get(String key) throws EAAFException {
+ public Object get(String key) throws EaafException {
if (key != null && containsKey(key)) {
TransactionStoreElement element = storage.get(key);
return element.getData();
@@ -97,13 +97,13 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
}
@Override
- public <T> T get(String key, Class<T> type) throws EAAFException {
+ public <T> T get(String key, Class<T> type) throws EaafException {
return get(key, type, -1);
}
@Override
- public <T> T get(String key, Class<T> type, long dataTimeOut) throws EAAFException {
+ public <T> T get(String key, Class<T> type, long dataTimeOut) throws EaafException {
if (key != null && containsKey(key)) {
TransactionStoreElement value = storage.get(key);
@@ -111,7 +111,7 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
long now = new Date().getTime();
if (now - value.getCreated().getTime() > dataTimeOut) {
log.info("Transaction-Data with key: " + key + " is out of time.");
- throw new EAAFStorageException("Transaction-Data with key: " + key + " is out of time.");
+ throw new EaafStorageException("Transaction-Data with key: " + key + " is out of time.");
}
}
@@ -128,13 +128,13 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
}
@Override
- public Object getRaw(String key) throws EAAFException {
+ public Object getRaw(String key) throws EaafException {
return storage.get(key);
}
@Override
- public void put(String key, Object value, int dataTimeOut) throws EAAFException {
+ public void put(String key, Object value, int dataTimeOut) throws EaafException {
TransactionStoreElement element = new TransactionStoreElement();
element.setKey(key);
element.setData(value);
@@ -143,7 +143,7 @@ public class SimpleInMemoryTransactionStorage implements ITransactionStorage{
}
@Override
- public void putRaw(String key, Object value) throws EAAFException {
+ public void putRaw(String key, Object value) throws EaafException {
if (value instanceof TransactionStoreElement)
storage.put(((TransactionStoreElement) value).getKey(), (TransactionStoreElement) value);
else