@Component public class StoragePolicyHelper extends Object
| Constructor and Description |
|---|
StoragePolicyHelper() |
| Modifier and Type | Method and Description |
|---|---|
StoragePolicyKey |
getStoragePolicyKey(StoragePolicyEntity storagePolicyEntity)
Returns a storage policy key for the storage policy entity.
|
String |
storagePolicyKeyAndVersionToString(StoragePolicyKey storagePolicyKey,
Integer storagePolicyVersion)
Returns a string representation of the storage policy key along with the storage policy version.
|
void |
validateStoragePolicyKey(StoragePolicyKey key)
Validates the storage policy key.
|
public StoragePolicyKey getStoragePolicyKey(StoragePolicyEntity storagePolicyEntity)
storagePolicyEntity - the storage policy entitypublic String storagePolicyKeyAndVersionToString(StoragePolicyKey storagePolicyKey, Integer storagePolicyVersion)
storagePolicyKey - the storage policy keystoragePolicyVersion - the storage policy versionpublic void validateStoragePolicyKey(StoragePolicyKey key) throws IllegalArgumentException
key - the storage policy keyIllegalArgumentException - if any validation errors were foundCopyright © 2021. All rights reserved.