From 0224cdf7be78cf0778f0b832a42c18c480c4b784 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 9 Dec 2019 09:22:54 +0100 Subject: switch to EAAF-Components 1.1.0-SNAPSHOT --- .../eIDASCacheTransactionStoreDecorator.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'connector/src/main/java/at/asitplus/eidas/specific/connector/storage/eIDASCacheTransactionStoreDecorator.java') diff --git a/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/eIDASCacheTransactionStoreDecorator.java b/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/eIDASCacheTransactionStoreDecorator.java index 270d0e31..be7812f4 100644 --- a/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/eIDASCacheTransactionStoreDecorator.java +++ b/connector/src/main/java/at/asitplus/eidas/specific/connector/storage/eIDASCacheTransactionStoreDecorator.java @@ -31,8 +31,8 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; 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; public class eIDASCacheTransactionStoreDecorator implements ITransactionStorage{ private static final Logger log = LoggerFactory.getLogger(eIDASCacheTransactionStoreDecorator.class); @@ -40,7 +40,7 @@ public class eIDASCacheTransactionStoreDecorator implements ITransactionStorage{ @Autowired(required=true) private CacheWitheIDASBackend storage; @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); @@ -49,7 +49,7 @@ public class eIDASCacheTransactionStoreDecorator 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); } @@ -67,7 +67,7 @@ public class eIDASCacheTransactionStoreDecorator 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(); @@ -77,13 +77,13 @@ public class eIDASCacheTransactionStoreDecorator implements ITransactionStorage{ } @Override - public T get(String key, Class type) throws EAAFException { + public T get(String key, Class type) throws EaafException { return get(key, type, -1); } @Override - public T get(String key, Class type, long dataTimeOut) throws EAAFException { + public T get(String key, Class type, long dataTimeOut) throws EaafException { if (key != null && containsKey(key)) { TransactionStoreElement value = storage.get(key); @@ -91,7 +91,7 @@ public class eIDASCacheTransactionStoreDecorator 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."); } } @@ -108,13 +108,13 @@ public class eIDASCacheTransactionStoreDecorator 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); @@ -123,7 +123,7 @@ public class eIDASCacheTransactionStoreDecorator 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 -- cgit v1.2.3