Interface TagService


public interface TagService
  • Field Details

  • Method Details

    • saveTags

      Set<TagName> saveTags(TagObject object, Set<TagName> tagNames, long audienceId, long creatorId)
      Updates the list of tags associated to an object.
      Parameters:
      object - TagObject that defines objectType objectId and parentObjectId
      tagNames - Set of TagName
      audienceId - Metadata audienceId
      creatorId - tag creator Identity identifier
      Returns:
      Set or associated TagName after update
    • getTagNames

      Set<TagName> getTagNames(TagObject tagObject)
      Parameters:
      tagObject - TagObject
      Returns:
      Set of associated TagName
    • detectTagNames

      Set<TagName> detectTagNames(String content)
      Detects the list of Tag names found in content that are added inside an HTML link using a specific class name 'metadata-tag'.
      Parameters:
      content - content used to detected associated tags
      Returns:
      Set of detected TagName
    • findTags

      List<TagName> findTags(TagFilter tagFilter, long userIdentityId) throws IllegalAccessException
      Searches in Tags switch name and audienceId
      Parameters:
      tagFilter - Search filter of tag
      userIdentityId - user Identity identifier
      Returns:
      List of TagName
      Throws:
      IllegalAccessException - when user wasn't found