public interface TagUserApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(UUID objectId,
ObjectType objectType,
UUID tagDefinitionId,
CallContext context) |
void |
addTags(UUID objectId,
ObjectType objectType,
Collection<UUID> tagDefinitionIds,
CallContext context) |
TagDefinition |
createTagDefinition(String definitionName,
String description,
CallContext context) |
void |
deleteTagDefinition(UUID tagDefinitionId,
CallContext context) |
TagDefinition |
getTagDefinition(UUID tagDefinitionId,
TenantContext context) |
TagDefinition |
getTagDefinitionForName(String tageDefinitionName,
TenantContext context) |
List<TagDefinition> |
getTagDefinitions(Collection<UUID> tagDefinitionIds,
TenantContext context) |
List<TagDefinition> |
getTagDefinitions(TenantContext context) |
Pagination<Tag> |
getTags(Long offset,
Long limit,
TenantContext context) |
List<Tag> |
getTagsForAccount(UUID accountId,
boolean includedDeleted,
TenantContext context) |
List<Tag> |
getTagsForAccountType(UUID accountId,
ObjectType objectType,
boolean includedDeleted,
TenantContext context) |
List<Tag> |
getTagsForObject(UUID objectId,
ObjectType objectType,
boolean includedDeleted,
TenantContext context) |
void |
removeTag(UUID objectId,
ObjectType objectType,
UUID tagDefinitionId,
CallContext context) |
void |
removeTags(UUID objectId,
ObjectType objectType,
Collection<UUID> tagDefinitions,
CallContext context) |
Pagination<Tag> |
searchTags(String searchKey,
Long offset,
Long limit,
TenantContext context)
Find all tags having their object type, associated tag definition name or description matching the search key
|
List<TagDefinition> getTagDefinitions(TenantContext context)
context - The tenant contextTagDefinition createTagDefinition(String definitionName, String description, CallContext context) throws TagDefinitionApiException
definitionName - Identifies the definition.description - Describes the use of the definition.context - The call context, for auditing purposesTagDefinitionApiExceptionvoid deleteTagDefinition(UUID tagDefinitionId, CallContext context) throws TagDefinitionApiException
tagDefinitionId - The UUID for that tagDefinitioncontext - The call context, for auditing purposesTagDefinitionApiExceptionTagDefinition getTagDefinition(UUID tagDefinitionId, TenantContext context) throws TagDefinitionApiException
tagDefinitionId - The tag definition idcontext - The call context, for auditing purposesTagDefinitionApiExceptionTagDefinition getTagDefinitionForName(String tageDefinitionName, TenantContext context) throws TagDefinitionApiException
tageDefinitionName - The tag definition namecontext - The call context, for auditing purposesTagDefinitionApiExceptionList<TagDefinition> getTagDefinitions(Collection<UUID> tagDefinitionIds, TenantContext context) throws TagDefinitionApiException
tagDefinitionIds - The collection of the defintion idscontext - The call context, for auditing purposesTagDefinitionApiExceptionvoid addTags(UUID objectId, ObjectType objectType, Collection<UUID> tagDefinitionIds, CallContext context) throws TagApiException
objectId - The id for the object on which to add tagsobjectType - The object typetagDefinitionIds - The collection of tag definition idscontext - The call context, for auditing purposesTagApiExceptionvoid addTag(UUID objectId, ObjectType objectType, UUID tagDefinitionId, CallContext context) throws TagApiException
objectId - The id for the object on which to add tagsobjectType - The object typetagDefinitionId - The tag definition idcontext - The call context, for auditing purposesTagApiExceptionvoid removeTags(UUID objectId, ObjectType objectType, Collection<UUID> tagDefinitions, CallContext context) throws TagApiException
objectId - The id for the object on which to add tagsobjectType - The object typetagDefinitions - The collection of tag definition idscontext - The call context, for auditing purposesTagApiExceptionvoid removeTag(UUID objectId, ObjectType objectType, UUID tagDefinitionId, CallContext context) throws TagApiException
objectId - The id for the object on which to add tagsobjectType - The object typetagDefinitionId - The tage definition idcontext - The call context, for auditing purposesTagApiExceptionPagination<Tag> searchTags(String searchKey, Long offset, Long limit, TenantContext context)
searchKey - the search keyoffset - the offset of the first resultlimit - the maximum number of results to retrievecontext - the user contextPagination<Tag> getTags(Long offset, Long limit, TenantContext context)
context - the user contextoffset - the offset of the first resultlimit - the maximum number of results to retrieveList<Tag> getTagsForObject(UUID objectId, ObjectType objectType, boolean includedDeleted, TenantContext context)
objectId - UUID of the object on which to retrieve the tagsobjectType - The type of objectincludedDeleted - Whether to include deleted tagscontext - The tenant contextList<Tag> getTagsForAccountType(UUID accountId, ObjectType objectType, boolean includedDeleted, TenantContext context)
accountId - The account idobjectType - The type of object on which to retrieve the tagsincludedDeleted - Whether to include deleted tagscontext - The tenant contextList<Tag> getTagsForAccount(UUID accountId, boolean includedDeleted, TenantContext context)
accountId - The account idincludedDeleted - Whether to include deleted tagscontext - The tenant contextCopyright © 2010-2015. All Rights Reserved.