public class TagDAODbFacadeImpl extends BaseDAODbFacade implements TagDAO
TagDAODbFacadeImpl
provides an implementation of TagDAO
that uses code refactored from the
DbFacade
class.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
TagDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
attachUserGroupToTag(tags_user_group_map tagUserGroupMap) |
void |
attachUserToTag(tags_user_map tagUserMap) |
void |
attachVdsToTag(tags_vds_map tagVdsMap) |
void |
attachVmToTag(tags_vm_map tagVmMap) |
void |
detachUserFromTag(Guid tagId,
Guid userId) |
void |
detachUserGroupFromTag(Guid tagId,
Guid groupId) |
void |
detachVdsFromTag(Guid tagId,
Guid vdsId) |
void |
detachVmFromTag(Guid tagId,
Guid vmId) |
tags |
get(Guid id)
Retrieves the tag with the specified id.
|
List<tags> |
getAll()
Retrieves all tags.
|
List<tags> |
getAllForParent(Guid id)
Retrieves all tags with the given parent id.
|
List<tags> |
getAllForUserGroups(String ids)
Retrieves the list of tags for the given user group ids.
|
List<tags> |
getAllForUsers(String ids)
Retrieves the list of tags for a given user ids.
|
List<tags> |
getAllForUsersWithIds(String ids)
Retrieves the list of user tags for a given tag id.
|
List<tags> |
getAllForVds(String ids)
Retrieves the list of tags for the given VDS ids.
|
List<tags> |
getAllForVdsWithIds(String ids)
Retrieves the list of VDS tags with the given tag ids.
|
List<tags> |
getAllForVm(String ids)
Retrieves the list of tags for the given VM ids.
|
List<tags> |
getAllForVmPools(String ids)
Retrieves the list of tags for the given VM pool ids.
|
List<tags> |
getAllUserGroupTagsWithIds(String ids)
Retrieves the list of user group tags by the given ids.
|
List<tags> |
getAllVmTagsWithIds(String ids)
Retrieves the list of VM tags for the given tag ids.
|
tags |
getByName(String name)
Retrieves the tag with the specified name.
|
tags_user_map |
getTagUserByTagIdAndByuserId(Guid tagId,
Guid userId) |
tags_user_group_map |
getTagUserGroupByGroupIdAndByTagId(Guid tag,
Guid group) |
List<tags_user_group_map> |
getTagUserGroupMapsForTagName(String tagName) |
List<tags_user_map> |
getTagUserMapByTagName(String tagName) |
tags_vds_map |
getTagVdsByTagIdAndByVdsId(Guid tagId,
Guid vdsId) |
List<tags_vds_map> |
getTagVdsMapByTagName(String tagName) |
tags_vm_map |
getTagVmByTagIdAndByVmId(Guid tagId,
Guid vmId) |
List<tags_vm_map> |
getTagVmMapByTagName(String tagName) |
List<tags_vm_map> |
getTagVmMapByVmIdAndDefaultTag(Guid vmid) |
List<tags_vm_map> |
getTimeLeasedUserVmsByAdGroupAndVmPoolId(Guid adGroupId,
Guid vmPoolId) |
List<tags_vm_pool_map> |
getVmPoolTagsByVmPoolIdAndAdElementId(NGuid vmPoolId,
Guid adElementId) |
void |
remove(Guid id)
Removes the tag with the specified id.
|
void |
save(tags tag)
Saves the supplied tag.
|
void |
update(tags tag)
Updates the supplied tag.
|
void |
updateDefaultDisplayForVmTag(tags_vm_map tagsVmMap) |
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public tags get(Guid id)
TagDAO
public tags getByName(String name)
TagDAO
public List<tags> getAllForParent(Guid id)
TagDAO
getAllForParent
in interface TagDAO
id
- the parent idpublic List<tags> getAllForUserGroups(String ids)
TagDAO
getAllForUserGroups
in interface TagDAO
ids
- the group idspublic List<tags> getAllUserGroupTagsWithIds(String ids)
TagDAO
getAllUserGroupTagsWithIds
in interface TagDAO
ids
- the idspublic List<tags> getAllForUsers(String ids)
TagDAO
getAllForUsers
in interface TagDAO
ids
- the user idspublic List<tags> getAllForUsersWithIds(String ids)
TagDAO
getAllForUsersWithIds
in interface TagDAO
ids
- the tag idspublic List<tags> getAllForVds(String ids)
TagDAO
getAllForVds
in interface TagDAO
ids
- the VDS idspublic List<tags> getAllForVdsWithIds(String ids)
TagDAO
getAllForVdsWithIds
in interface TagDAO
ids
- the tag idspublic List<tags> getAllForVm(String ids)
TagDAO
getAllForVm
in interface TagDAO
ids
- the VM idspublic List<tags> getAllVmTagsWithIds(String ids)
TagDAO
getAllVmTagsWithIds
in interface TagDAO
ids
- the tag idspublic List<tags> getAllForVmPools(String ids)
TagDAO
getAllForVmPools
in interface TagDAO
ids
- the pool idspublic void remove(Guid id)
TagDAO
public void update(tags tag)
TagDAO
public tags_user_group_map getTagUserGroupByGroupIdAndByTagId(Guid tag, Guid group)
getTagUserGroupByGroupIdAndByTagId
in interface TagDAO
public void attachUserGroupToTag(tags_user_group_map tagUserGroupMap)
attachUserGroupToTag
in interface TagDAO
public void detachUserGroupFromTag(Guid tagId, Guid groupId)
detachUserGroupFromTag
in interface TagDAO
public List<tags_user_group_map> getTagUserGroupMapsForTagName(String tagName)
getTagUserGroupMapsForTagName
in interface TagDAO
public tags_user_map getTagUserByTagIdAndByuserId(Guid tagId, Guid userId)
getTagUserByTagIdAndByuserId
in interface TagDAO
public void attachUserToTag(tags_user_map tagUserMap)
attachUserToTag
in interface TagDAO
public void detachUserFromTag(Guid tagId, Guid userId)
detachUserFromTag
in interface TagDAO
public List<tags_user_map> getTagUserMapByTagName(String tagName)
getTagUserMapByTagName
in interface TagDAO
public tags_vds_map getTagVdsByTagIdAndByVdsId(Guid tagId, Guid vdsId)
getTagVdsByTagIdAndByVdsId
in interface TagDAO
public void attachVdsToTag(tags_vds_map tagVdsMap)
attachVdsToTag
in interface TagDAO
public void detachVdsFromTag(Guid tagId, Guid vdsId)
detachVdsFromTag
in interface TagDAO
public List<tags_vds_map> getTagVdsMapByTagName(String tagName)
getTagVdsMapByTagName
in interface TagDAO
public tags_vm_map getTagVmByTagIdAndByVmId(Guid tagId, Guid vmId)
getTagVmByTagIdAndByVmId
in interface TagDAO
public void attachVmToTag(tags_vm_map tagVmMap)
attachVmToTag
in interface TagDAO
public void updateDefaultDisplayForVmTag(tags_vm_map tagsVmMap)
updateDefaultDisplayForVmTag
in interface TagDAO
public void detachVmFromTag(Guid tagId, Guid vmId)
detachVmFromTag
in interface TagDAO
public List<tags_vm_map> getTagVmMapByTagName(String tagName)
getTagVmMapByTagName
in interface TagDAO
public List<tags_vm_map> getTagVmMapByVmIdAndDefaultTag(Guid vmid)
getTagVmMapByVmIdAndDefaultTag
in interface TagDAO
public List<tags_vm_map> getTimeLeasedUserVmsByAdGroupAndVmPoolId(Guid adGroupId, Guid vmPoolId)
getTimeLeasedUserVmsByAdGroupAndVmPoolId
in interface TagDAO
public List<tags_vm_pool_map> getVmPoolTagsByVmPoolIdAndAdElementId(NGuid vmPoolId, Guid adElementId)
getVmPoolTagsByVmPoolIdAndAdElementId
in interface TagDAO
Copyright © 2012. All Rights Reserved.