@Component public class StoragePolicyDaoHelper extends Object
| Constructor and Description |
|---|
StoragePolicyDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
validateStoragePolicyFilterStorage(StorageEntity storageEntity)
Validates the storage policy filter storage.
|
public 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 entityCopyright © 2019. All rights reserved.