|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Taggable
Method Summary | |
---|---|
void |
addTag(java.lang.String name,
java.lang.String value)
Add a new tag. |
java.util.Set<java.lang.String> |
getTagNames()
Get all of the tag names on the resource. |
java.util.Set<java.lang.String> |
getTagValues(java.lang.String name)
Get the values for a given tag name. |
void |
removeTag(java.lang.String name)
Remove all tags with the provided name. |
void |
removeTag(java.lang.String name,
java.lang.String value)
Remove the exactly matching tag. |
void |
removeTags()
Remove all the tags from the resource. |
Method Detail |
---|
void addTag(java.lang.String name, java.lang.String value) throws DeletedException, AlreadyExistsInRepositoryException, DatastoreException, InvalidParameterException
Add a new tag.
name
- the tag namevalue
- the tag valuevoid removeTag(java.lang.String name, java.lang.String value) throws DeletedException, DirtySaveException, DatastoreException, InvalidParameterException
Remove the exactly matching tag. no error if you try to remove a tag that isn't there
name
- the tag namevalue
- the tag valuevoid removeTag(java.lang.String name) throws DeletedException, DirtySaveException, DatastoreException, InvalidParameterException
Remove all tags with the provided name. no error if you try to remove a tag that isn't there
name
- the tag namevoid removeTags() throws DeletedException, DirtySaveException, DatastoreException
Remove all the tags from the resource. No error if none exist
java.util.Set<java.lang.String> getTagNames() throws DeletedException
Get all of the tag names on the resource. return an empty set if no tags have been added
java.util.Set<java.lang.String> getTagValues(java.lang.String name) throws DeletedException, InvalidParameterException
Get the values for a given tag name. return an empty set if the resource hasn't been tagged with the requested tag name
name
- the tag name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |