Class RelationTagService

    • Constructor Detail

      • RelationTagService

        public RelationTagService()
        Deprecated.
    • Method Detail

      • hasFeature

        public boolean hasFeature​(TagService.Feature feature)
        Deprecated.
        Description copied from interface: TagService
        Checks if a feature is available.
      • supportsTag

        public boolean supportsTag​(CoreSession session,
                                   String docId)
        Deprecated.
        Description copied from interface: TagService
        Checks if document support tag.
      • canUntag

        public boolean canUntag​(CoreSession session,
                                String docId,
                                String label)
        Deprecated.
        Description copied from interface: TagService
        Returns whether or not the current session can untag tag on provided document.
        Specified by:
        canUntag in interface TagService
        Overrides:
        canUntag in class AbstractTagService
        Parameters:
        session - the session
        docId - the document id
        label - the tag, or null for all tags
        Returns:
        whether or not the current session can untag provided document
        Since:
        8.4
      • getTagCloud

        public List<Tag> getTagCloud​(CoreSession session,
                                     String docId,
                                     String username,
                                     Boolean normalize)
        Deprecated.
        Description copied from interface: TagService
        Gets the tag cloud for a set of documents (tags with weight corresponding to their popularity).

        If a docId is passed, only documents under it are considered, otherwise all documents in the database are used.

        The cloud is returned unsorted.

        Parameters:
        session - the session
        docId - the document id under which to look, or null for all documents
        username - the user name, or null for all users
        normalize - null for no weight normalization (a count is returned), FALSE for 0-100 normalization, TRUE for logarithmic 0-100 normalization
        Returns:
        the cloud (a list of weighted tags)
      • normalizeCloud

        public static void normalizeCloud​(List<Tag> cloud,
                                          int min,
                                          int max,
                                          boolean linear)
        Deprecated.