@Service @Transactional public class StorageServiceImpl extends java.lang.Object implements StorageService
| Constructor and Description |
|---|
StorageServiceImpl(StorageRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getData(java.lang.String store)
Gets all the data for a store
|
java.util.List<java.lang.String> |
getKeys(java.lang.String store)
Lists all keys for a store
|
java.util.Optional<com.fasterxml.jackson.databind.JsonNode> |
retrieveJson(java.lang.String store,
java.lang.String key)
Retrieves some JSON using a key
|
void |
storeJson(java.lang.String store,
java.lang.String key,
com.fasterxml.jackson.databind.JsonNode node)
Stores some JSON
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, retrieve, store@Autowired public StorageServiceImpl(StorageRepository repository)
public void storeJson(java.lang.String store,
java.lang.String key,
com.fasterxml.jackson.databind.JsonNode node)
StorageServicestoreJson in interface StorageServicestore - Store (typically an extension class name)key - Identifier of datanode - Data to store (null to delete)public java.util.Optional<com.fasterxml.jackson.databind.JsonNode> retrieveJson(java.lang.String store,
java.lang.String key)
StorageServiceretrieveJson in interface StorageServicestore - Store (typically an extension class name)key - Identifier of datapublic java.util.List<java.lang.String> getKeys(java.lang.String store)
StorageServicegetKeys in interface StorageServicestore - Store (typically an extension class name)public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getData(java.lang.String store)
StorageServicegetData in interface StorageServicestore - Store (typically an extension class name)