Interface ITagsService


public interface ITagsService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteTag(String tagName)
    Delete a tag with the given name.
    Get a tag by its name from the CPS.
    Get all tags from the CPS.
    void
    setTag(Tag tag)
    Create or update a tag.
  • Method Details

    • getTags

      List<Tag> getTags() throws TagsException
      Get all tags from the CPS.
      Returns:
      List of Tag objects
      Throws:
      TagsException - if there is an error retrieving the tags
    • getTagByName

      Tag getTagByName(String tagName) throws TagsException
      Get a tag by its name from the CPS.
      Parameters:
      tagName - The name of the tag to retrieve
      Returns:
      The Tag object, or null if not found
      Throws:
      TagsException - if there is an error retrieving the tag
    • setTag

      void setTag(Tag tag) throws TagsException
      Create or update a tag.
      Parameters:
      tag - The Tag object to set
      Throws:
      TagsException - if there is an error setting the tag
    • deleteTag

      void deleteTag(String tagName) throws TagsException
      Delete a tag with the given name.
      Parameters:
      tagName - The name of the tag to delete
      Throws:
      TagsException - if there is an error deleting the tag