@Component public class StoragePolicyDaoHelper extends Object
| Constructor and Description |
|---|
StoragePolicyDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
StoragePolicyEntity |
deleteStoragePolicyEntityByKey(StoragePolicyKey storagePolicyKey)
Delete a storage policy entity based on the key and makes sure that it exists.
|
StoragePolicyEntity |
getStoragePolicyEntityByKey(StoragePolicyKey storagePolicyKey)
Gets a storage policy entity based on the key and makes sure that it exists.
|
StoragePolicyEntity |
getStoragePolicyEntityByKeyAndVersion(StoragePolicyKey storagePolicyKey,
Integer storagePolicyVersion)
Gets a storage policy entity based on the key and version and makes sure that it exists.
|
List<StoragePolicyKey> |
getStoragePolicyKeys(String namespace)
Gets a list of keys for all storage policy keys defined in the system for the specified namespace.
|
void |
validateStoragePolicyFilterStorage(StorageEntity storageEntity)
Validates the storage policy filter storage.
|
public StoragePolicyEntity deleteStoragePolicyEntityByKey(StoragePolicyKey storagePolicyKey) throws ObjectNotFoundException
storagePolicyKey - the storage policy keyObjectNotFoundException - if the entity doesn't existpublic StoragePolicyEntity getStoragePolicyEntityByKey(StoragePolicyKey storagePolicyKey) throws ObjectNotFoundException
storagePolicyKey - the storage policy keyObjectNotFoundException - if the entity doesn't existpublic StoragePolicyEntity getStoragePolicyEntityByKeyAndVersion(StoragePolicyKey storagePolicyKey, Integer storagePolicyVersion) throws ObjectNotFoundException
storagePolicyKey - the storage policy keystoragePolicyVersion - the storage policy versionObjectNotFoundException - if the entity doesn't existpublic void validateStoragePolicyFilterStorage(StorageEntity storageEntity)
storageEntity - the storage entitypublic List<StoragePolicyKey> getStoragePolicyKeys(String namespace)
namespace - the name spaceCopyright © 2021. All rights reserved.