public interface StoragePoolDAO extends GenericDao<storage_pool,Guid>, StatusAwareDao<Guid,StoragePoolStatus>
StoragePoolDAO
defines a type for performing CRUD operations on instances of storage_pool
.Modifier and Type | Method and Description |
---|---|
List<storage_pool> |
getAllForStorageDomain(Guid storageDomain)
Retrieves all storage pools for the given storage domain.
|
List<storage_pool> |
getAllOfType(StorageType type)
Retrieves the list of all storage pools of a given type.
|
List<storage_pool> |
getAllWithQuery(String query)
Retrieves all storage pools that satisfy the given SQL query.
|
storage_pool |
getByName(String name)
Retrieves the storage pool with the given name.
|
List<storage_pool> |
getDataCentersWithPermittedActionOnClusters(Guid userId,
ActionGroup actionGroup)
Retrieves data centers containing clusters with permissions to perform the given action.
|
storage_pool |
getForVds(Guid vds)
Retrieves the storage pool for the specified VDS.
|
storage_pool |
getForVdsGroup(Guid vdsGroup)
Retrieves the storage pool for the specified VDS group.
|
void |
updatePartial(storage_pool pool)
The following method should update only part of storage pool.
|
remove, save, update
updateStatus
storage_pool getByName(String name)
name
- the storage pool namestorage_pool getForVds(Guid vds)
vds
- the VDSstorage_pool getForVdsGroup(Guid vdsGroup)
vdsGroup
- the VDS groupList<storage_pool> getAllOfType(StorageType type)
type
- the storage pool typeList<storage_pool> getAllForStorageDomain(Guid storageDomain)
storageDomain
- the storage domainList<storage_pool> getAllWithQuery(String query)
query
- the queryvoid updatePartial(storage_pool pool)
pool
- List<storage_pool> getDataCentersWithPermittedActionOnClusters(Guid userId, ActionGroup actionGroup)
userId
- actionGroup
- Copyright © 2012. All Rights Reserved.