public interface TagProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addTagsToEntity(String reference,
String[] tags)
Add these tags to the an entity,
will have no effect if the entity already has these tags
|
List<String> |
getTagsForEntity(String reference)
Get the set of tags which are associated with this entity
|
void |
removeTagsFromEntity(String reference,
String[] tags)
Removes these tags from this entity,
will have no effect if the tags do not exist on this entity
|
void |
setTagsForEntity(String reference,
String[] tags)
Sets the tags which are associated with this entity,
this overwrites any current tags and makes the input
tags the only current tags for this entity
|
List<String> getTagsForEntity(String reference)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)UnsupportedOperationException - if this reference cannot be taggedvoid addTagsToEntity(String reference, String[] tags)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)tags - a set of the tags to associate with this entityUnsupportedOperationException - if this reference cannot be taggedvoid setTagsForEntity(String reference, String[] tags)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)tags - a set of the tags to associate with this entity,
setting this to an empty set will remove all tags from this entityUnsupportedOperationException - if this reference cannot be taggedvoid removeTagsFromEntity(String reference, String[] tags)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)tags - a set of the tags to remove from this entity,
if this is empty then nothing happens,
if this includes tags that do not exist on this entity then they are ignoredUnsupportedOperationException - if this reference cannot be taggedCopyright © 2023. All rights reserved.