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, setTemplatepublic tags get(Guid id)
TagDAOpublic tags getByName(String name)
TagDAOpublic List<tags> getAllForParent(Guid id)
TagDAOgetAllForParent in interface TagDAOid - the parent idpublic List<tags> getAllForUserGroups(String ids)
TagDAOgetAllForUserGroups in interface TagDAOids - the group idspublic List<tags> getAllUserGroupTagsWithIds(String ids)
TagDAOgetAllUserGroupTagsWithIds in interface TagDAOids - the idspublic List<tags> getAllForUsers(String ids)
TagDAOgetAllForUsers in interface TagDAOids - the user idspublic List<tags> getAllForUsersWithIds(String ids)
TagDAOgetAllForUsersWithIds in interface TagDAOids - the tag idspublic List<tags> getAllForVds(String ids)
TagDAOgetAllForVds in interface TagDAOids - the VDS idspublic List<tags> getAllForVdsWithIds(String ids)
TagDAOgetAllForVdsWithIds in interface TagDAOids - the tag idspublic List<tags> getAllForVm(String ids)
TagDAOgetAllForVm in interface TagDAOids - the VM idspublic List<tags> getAllVmTagsWithIds(String ids)
TagDAOgetAllVmTagsWithIds in interface TagDAOids - the tag idspublic List<tags> getAllForVmPools(String ids)
TagDAOgetAllForVmPools in interface TagDAOids - the pool idspublic void remove(Guid id)
TagDAOpublic void update(tags tag)
TagDAOpublic tags_user_group_map getTagUserGroupByGroupIdAndByTagId(Guid tag, Guid group)
getTagUserGroupByGroupIdAndByTagId in interface TagDAOpublic void attachUserGroupToTag(tags_user_group_map tagUserGroupMap)
attachUserGroupToTag in interface TagDAOpublic void detachUserGroupFromTag(Guid tagId, Guid groupId)
detachUserGroupFromTag in interface TagDAOpublic List<tags_user_group_map> getTagUserGroupMapsForTagName(String tagName)
getTagUserGroupMapsForTagName in interface TagDAOpublic tags_user_map getTagUserByTagIdAndByuserId(Guid tagId, Guid userId)
getTagUserByTagIdAndByuserId in interface TagDAOpublic void attachUserToTag(tags_user_map tagUserMap)
attachUserToTag in interface TagDAOpublic void detachUserFromTag(Guid tagId, Guid userId)
detachUserFromTag in interface TagDAOpublic List<tags_user_map> getTagUserMapByTagName(String tagName)
getTagUserMapByTagName in interface TagDAOpublic tags_vds_map getTagVdsByTagIdAndByVdsId(Guid tagId, Guid vdsId)
getTagVdsByTagIdAndByVdsId in interface TagDAOpublic void attachVdsToTag(tags_vds_map tagVdsMap)
attachVdsToTag in interface TagDAOpublic void detachVdsFromTag(Guid tagId, Guid vdsId)
detachVdsFromTag in interface TagDAOpublic List<tags_vds_map> getTagVdsMapByTagName(String tagName)
getTagVdsMapByTagName in interface TagDAOpublic tags_vm_map getTagVmByTagIdAndByVmId(Guid tagId, Guid vmId)
getTagVmByTagIdAndByVmId in interface TagDAOpublic void attachVmToTag(tags_vm_map tagVmMap)
attachVmToTag in interface TagDAOpublic void updateDefaultDisplayForVmTag(tags_vm_map tagsVmMap)
updateDefaultDisplayForVmTag in interface TagDAOpublic void detachVmFromTag(Guid tagId, Guid vmId)
detachVmFromTag in interface TagDAOpublic List<tags_vm_map> getTagVmMapByTagName(String tagName)
getTagVmMapByTagName in interface TagDAOpublic List<tags_vm_map> getTagVmMapByVmIdAndDefaultTag(Guid vmid)
getTagVmMapByVmIdAndDefaultTag in interface TagDAOpublic List<tags_vm_map> getTimeLeasedUserVmsByAdGroupAndVmPoolId(Guid adGroupId, Guid vmPoolId)
getTimeLeasedUserVmsByAdGroupAndVmPoolId in interface TagDAOpublic List<tags_vm_pool_map> getVmPoolTagsByVmPoolIdAndAdElementId(NGuid vmPoolId, Guid adElementId)
getVmPoolTagsByVmPoolIdAndAdElementId in interface TagDAOCopyright © 2012. All Rights Reserved.