@Component public class StorageDaoHelper extends Object
| Constructor and Description |
|---|
StorageDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
StorageEntity |
getStorageEntity(StorageKey storageKey)
Gets a storage entity by storage key and makes sure that it exists.
|
StorageEntity |
getStorageEntity(String storageName)
Gets a storage entity based on the storage name and makes sure that it exists.
|
void |
validateStorageExistence(List<String> storageNames)
Validates that specified storage names exist.
|
public StorageEntity getStorageEntity(StorageKey storageKey) throws ObjectNotFoundException
storageKey - the storage keyObjectNotFoundException - if the storage entity doesn't existpublic StorageEntity getStorageEntity(String storageName) throws ObjectNotFoundException
storageName - the storage name (case insensitive)ObjectNotFoundException - if the storage entity doesn't existpublic void validateStorageExistence(List<String> storageNames) throws ObjectNotFoundException
storageNames - the list of storage namesObjectNotFoundException - if one of the storage entities doesn't existCopyright © 2019. All rights reserved.