public interface TagUserApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(java.util.UUID objectId,
ObjectType objectType,
java.util.UUID tagDefinitionId,
CallContext context) |
void |
addTags(java.util.UUID objectId,
ObjectType objectType,
java.util.Collection<java.util.UUID> tagDefinitionIds,
CallContext context) |
TagDefinition |
createTagDefinition(java.lang.String definitionName,
java.lang.String description,
java.util.Set<ObjectType> applicableObjectTypes,
CallContext context) |
void |
deleteTagDefinition(java.util.UUID tagDefinitionId,
CallContext context) |
java.util.List<AuditLogWithHistory> |
getTagAuditLogsWithHistoryForId(java.util.UUID tagId,
AuditLevel auditLevel,
TenantContext context)
Get all the audit entries with history for a given tag.
|
TagDefinition |
getTagDefinition(java.util.UUID tagDefinitionId,
TenantContext context) |
java.util.List<AuditLogWithHistory> |
getTagDefinitionAuditLogsWithHistoryForId(java.util.UUID tagDefinitionId,
AuditLevel auditLevel,
TenantContext context)
Get all the audit entries with history for a given tag definition.
|
TagDefinition |
getTagDefinitionForName(java.lang.String tageDefinitionName,
TenantContext context) |
java.util.List<TagDefinition> |
getTagDefinitions(java.util.Collection<java.util.UUID> tagDefinitionIds,
TenantContext context) |
java.util.List<TagDefinition> |
getTagDefinitions(TenantContext context) |
Pagination<Tag> |
getTags(java.lang.Long offset,
java.lang.Long limit,
TenantContext context) |
java.util.List<Tag> |
getTagsForAccount(java.util.UUID accountId,
boolean includedDeleted,
TenantContext context) |
java.util.List<Tag> |
getTagsForAccountType(java.util.UUID accountId,
ObjectType objectType,
boolean includedDeleted,
TenantContext context) |
java.util.List<Tag> |
getTagsForObject(java.util.UUID objectId,
ObjectType objectType,
boolean includedDeleted,
TenantContext context) |
void |
removeTag(java.util.UUID objectId,
ObjectType objectType,
java.util.UUID tagDefinitionId,
CallContext context) |
void |
removeTags(java.util.UUID objectId,
ObjectType objectType,
java.util.Collection<java.util.UUID> tagDefinitions,
CallContext context) |
Pagination<Tag> |
searchTags(java.lang.String searchKey,
java.lang.Long offset,
java.lang.Long limit,
TenantContext context)
Find all tags having their object type, associated tag definition name or description matching the search key
|
java.util.List<TagDefinition> getTagDefinitions(TenantContext context)
context - The tenant contextTagDefinition createTagDefinition(java.lang.String definitionName, java.lang.String description, java.util.Set<ObjectType> applicableObjectTypes, CallContext context) throws TagDefinitionApiException
definitionName - Identifies the definition.description - Describes the use of the definition.context - The call context, for auditing purposesTagDefinitionApiExceptionvoid deleteTagDefinition(java.util.UUID tagDefinitionId,
CallContext context)
throws TagDefinitionApiException
tagDefinitionId - The UUID for that tagDefinitioncontext - The call context, for auditing purposesTagDefinitionApiExceptionTagDefinition getTagDefinition(java.util.UUID tagDefinitionId, TenantContext context) throws TagDefinitionApiException
tagDefinitionId - The tag definition idcontext - The call context, for auditing purposesTagDefinitionApiExceptionTagDefinition getTagDefinitionForName(java.lang.String tageDefinitionName, TenantContext context) throws TagDefinitionApiException
tageDefinitionName - The tag definition namecontext - The call context, for auditing purposesTagDefinitionApiExceptionjava.util.List<TagDefinition> getTagDefinitions(java.util.Collection<java.util.UUID> tagDefinitionIds, TenantContext context) throws TagDefinitionApiException
tagDefinitionIds - The collection of the defintion idscontext - The call context, for auditing purposesTagDefinitionApiExceptionvoid addTags(java.util.UUID objectId,
ObjectType objectType,
java.util.Collection<java.util.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(java.util.UUID objectId,
ObjectType objectType,
java.util.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(java.util.UUID objectId,
ObjectType objectType,
java.util.Collection<java.util.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(java.util.UUID objectId,
ObjectType objectType,
java.util.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(java.lang.String searchKey, java.lang.Long offset, java.lang.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(java.lang.Long offset, java.lang.Long limit, TenantContext context)
context - the user contextoffset - the offset of the first resultlimit - the maximum number of results to retrievejava.util.List<Tag> getTagsForObject(java.util.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 contextjava.util.List<Tag> getTagsForAccountType(java.util.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 contextjava.util.List<Tag> getTagsForAccount(java.util.UUID accountId, boolean includedDeleted, TenantContext context)
accountId - The account idincludedDeleted - Whether to include deleted tagscontext - The tenant contextjava.util.List<AuditLogWithHistory> getTagAuditLogsWithHistoryForId(java.util.UUID tagId, AuditLevel auditLevel, TenantContext context)
tagId - the custom field idauditLevel - audit level (verbosity)context - the tenant contextjava.util.List<AuditLogWithHistory> getTagDefinitionAuditLogsWithHistoryForId(java.util.UUID tagDefinitionId, AuditLevel auditLevel, TenantContext context)
tagDefinitionId - the custom field idauditLevel - audit level (verbosity)context - the tenant contextCopyright © 2010-2018. All Rights Reserved.