@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 |
validateDestinationStorage(StorageEntity storageEntity)
Validates the destination storage.
|
void |
validateSourceStorage(StorageEntity storageEntity)
Validates the source 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 validateDestinationStorage(StorageEntity storageEntity)
storageEntity - the destination storage entitypublic void validateSourceStorage(StorageEntity storageEntity)
storageEntity - the storage entityCopyright © 2017. All rights reserved.