public class VdsGroupDAODbFacadeImpl extends BaseDAODbFacade implements VdsGroupDAO
VdsGroupDAODbFacadeImpl
provides an implementation of VdsGroupDAO
that uses code previously
found in DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VdsGroupDAODbFacadeImpl() |
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.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VDSGroup get(Guid id)
VdsGroupDAO
get
in interface VdsGroupDAO
id
- the group idpublic VDSGroup getWithRunningVms(Guid id)
VdsGroupDAO
getWithRunningVms
in interface VdsGroupDAO
id
- the group idpublic VDSGroup getByName(String name)
VdsGroupDAO
getByName
in interface VdsGroupDAO
name
- the group namepublic List<VDSGroup> getAllForStoragePool(Guid id)
VdsGroupDAO
getAllForStoragePool
in interface VdsGroupDAO
id
- the storage poolpublic List<VDSGroup> getAllWithQuery(String query)
VdsGroupDAO
getAllWithQuery
in interface VdsGroupDAO
query
- the querypublic List<VDSGroup> getAll()
VdsGroupDAO
getAll
in interface VdsGroupDAO
public void save(VDSGroup group)
VdsGroupDAO
save
in interface VdsGroupDAO
group
- the grouppublic void update(VDSGroup group)
VdsGroupDAO
update
in interface VdsGroupDAO
group
- the grouppublic void remove(Guid id)
VdsGroupDAO
remove
in interface VdsGroupDAO
id
- the group idpublic List<VDSGroup> getClustersWithPermittedAction(Guid userId, ActionGroup actionGroup)
VdsGroupDAO
getClustersWithPermittedAction
in interface VdsGroupDAO
Copyright © 2012. All Rights Reserved.