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, setTemplatepublic VDSGroup get(Guid id)
VdsGroupDAOget in interface VdsGroupDAOid - the group idpublic VDSGroup getWithRunningVms(Guid id)
VdsGroupDAOgetWithRunningVms in interface VdsGroupDAOid - the group idpublic VDSGroup getByName(String name)
VdsGroupDAOgetByName in interface VdsGroupDAOname - the group namepublic List<VDSGroup> getAllForStoragePool(Guid id)
VdsGroupDAOgetAllForStoragePool in interface VdsGroupDAOid - the storage poolpublic List<VDSGroup> getAllWithQuery(String query)
VdsGroupDAOgetAllWithQuery in interface VdsGroupDAOquery - the querypublic List<VDSGroup> getAll()
VdsGroupDAOgetAll in interface VdsGroupDAOpublic void save(VDSGroup group)
VdsGroupDAOsave in interface VdsGroupDAOgroup - the grouppublic void update(VDSGroup group)
VdsGroupDAOupdate in interface VdsGroupDAOgroup - the grouppublic void remove(Guid id)
VdsGroupDAOremove in interface VdsGroupDAOid - the group idpublic List<VDSGroup> getClustersWithPermittedAction(Guid userId, ActionGroup actionGroup)
VdsGroupDAOgetClustersWithPermittedAction in interface VdsGroupDAOCopyright © 2012. All Rights Reserved.