@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, wait
getData, retrieve, store
@Autowired public StorageServiceImpl(StorageRepository repository)
public void storeJson(java.lang.String store, java.lang.String key, com.fasterxml.jackson.databind.JsonNode node)
StorageService
storeJson
in interface StorageService
store
- 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)
StorageService
retrieveJson
in interface StorageService
store
- Store (typically an extension class name)key
- Identifier of datapublic java.util.List<java.lang.String> getKeys(java.lang.String store)
StorageService
getKeys
in interface StorageService
store
- Store (typically an extension class name)public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getData(java.lang.String store)
StorageService
getData
in interface StorageService
store
- Store (typically an extension class name)