public interface TagDAO extends DAO
TagDAO
defines a type for performing CRUD operations on instances of tags
.Modifier and Type | Method and Description |
---|---|
void |
attachUserGroupToTag(tags_user_group_map map) |
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 tagId,
Guid groupId) |
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) |
tags get(Guid id)
id
- the tag idtags getByName(String name)
name
- the tag nameList<tags> getAllForParent(Guid id)
id
- the parent idList<tags> getAllForUserGroups(String ids)
ids
- the group idsList<tags> getAllUserGroupTagsWithIds(String ids)
ids
- the idsList<tags> getAllForVds(String ids)
ids
- the VDS idsList<tags> getAllForVdsWithIds(String ids)
ids
- the tag idsList<tags> getAllForVm(String ids)
ids
- the VM idsList<tags> getAllVmTagsWithIds(String ids)
ids
- the tag idsList<tags> getAllForVmPools(String ids)
ids
- the pool idsList<tags> getAllForUsers(String ids)
ids
- the user idsList<tags> getAllForUsersWithIds(String ids)
ids
- the tag idsvoid save(tags tag)
tag
- the tagvoid update(tags tag)
tag
- the tagvoid remove(Guid id)
id
- void attachUserGroupToTag(tags_user_group_map map)
tags_user_group_map getTagUserGroupByGroupIdAndByTagId(Guid tagId, Guid groupId)
List<tags_user_group_map> getTagUserGroupMapsForTagName(String tagName)
tags_user_map getTagUserByTagIdAndByuserId(Guid tagId, Guid userId)
void attachUserToTag(tags_user_map tagUserMap)
List<tags_user_map> getTagUserMapByTagName(String tagName)
tags_vds_map getTagVdsByTagIdAndByVdsId(Guid tagId, Guid vdsId)
void attachVdsToTag(tags_vds_map tagVdsMap)
List<tags_vds_map> getTagVdsMapByTagName(String tagName)
tags_vm_map getTagVmByTagIdAndByVmId(Guid tagId, Guid vmId)
void attachVmToTag(tags_vm_map tagVmMap)
void updateDefaultDisplayForVmTag(tags_vm_map tagsVmMap)
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)
Copyright © 2012. All Rights Reserved.