public interface VdsGroupDAO extends DAO
VdsGroupDAO
defines a type that performs CRUD operations on instances of VDSGroup
.Modifier and Type | Method and Description |
---|---|
VDSGroup |
get(Guid id)
Gets the group with the specified id.
|
List<VDSGroup> |
getAll()
Retrieves all VDS groups.
|
List<VDSGroup> |
getAllForStoragePool(Guid id)
Retrieves the list of groups associated with the given storage pool.
|
List<VDSGroup> |
getAllWithQuery(String query)
Retrieves groups using a SQL query snippet.
|
VDSGroup |
getByName(String name)
Retrieves the group with the specified name.
|
List<VDSGroup> |
getClustersWithPermittedAction(Guid userId,
ActionGroup actionGroup)
Retries clusters which the given users has permission to perform the given action.
|
VDSGroup |
getWithRunningVms(Guid id)
Returns the specified VDS group if it has running VMs.
|
void |
remove(Guid id)
Removes the VDS group with the given id.
|
void |
save(VDSGroup group)
Saves the supplied group.
|
void |
update(VDSGroup group)
Updates the group.
|
VDSGroup get(Guid id)
id
- the group idVDSGroup getWithRunningVms(Guid id)
id
- the group idVDSGroup getByName(String name)
name
- the group nameList<VDSGroup> getAllForStoragePool(Guid id)
id
- the storage poolList<VDSGroup> getAllWithQuery(String query)
query
- the queryvoid save(VDSGroup group)
group
- the groupvoid update(VDSGroup group)
group
- the groupvoid remove(Guid id)
id
- the group idList<VDSGroup> getClustersWithPermittedAction(Guid userId, ActionGroup actionGroup)
userId
- actionGroup
- Copyright © 2012. All Rights Reserved.