public class TagAPI extends BaseAPI
| Constructor and Description |
|---|
TagAPI(ResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTags(Reference reference,
Collection<String> tags)
Add a new set of tags to the object.
|
void |
createTags(Reference reference,
String... tags)
Add a new set of tags to the object.
|
List<TagCount> |
getTagsOnApp(int appId)
Returns the tags on the given app.
|
List<TagReference> |
getTagsOnAppWithText(int appId,
String text)
Returns the objects that are tagged with the given text on the app.
|
List<TagCount> |
getTagsOnSpace(int spaceId)
Returns the tags on the given space.
|
List<TagReference> |
getTagsOnSpaceWithText(int spaceId,
String text)
Returns the objects that are tagged with the given text on the space.
|
void |
removeTag(Reference reference,
String tag)
Removes a single tag from an object.
|
void |
updateTags(Reference reference,
Collection<String> tags)
Update the tags on the objects
|
void |
updateTags(Reference reference,
String... tags)
Update the tags on the objects
|
getResourceFactorypublic TagAPI(ResourceFactory resourceFactory)
public void createTags(Reference reference, Collection<String> tags)
reference - The object the tags should be added totags - The tags that should be addedpublic void createTags(Reference reference, String... tags)
reference - The object the tags should be added totags - The tags that should be addedpublic void updateTags(Reference reference, Collection<String> tags)
reference - The object the tags should be updated ontags - The tags that should now be set on the objectpublic void updateTags(Reference reference, String... tags)
reference - The object the tags should be updated ontags - The tags that should now be set on the objectpublic void removeTag(Reference reference, String tag)
reference - The object the tag should be removed fromtag - The tag to removepublic List<TagCount> getTagsOnApp(int appId)
appId - The id of the app to return tags from *public List<TagCount> getTagsOnSpace(int spaceId)
spaceId - The id of the space to return tags frompublic List<TagReference> getTagsOnAppWithText(int appId, String text)
appId - The id of the app to search withintext - The tag to search forpublic List<TagReference> getTagsOnSpaceWithText(int spaceId, String text)
spaceId - The id of the space to search withintext - The tag to search forCopyright © 2014. All Rights Reserved.