Class TagFilter


  • public final class TagFilter
    extends java.lang.Object
    Class for filtering web-searchables based on their tags.
    Author:
    Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      TagFilter​(java.util.Collection<java.lang.String> tags, Profile profile, java.lang.String tagType)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasAllTags​(Taggable t)
      Check to see if this taggable item has all the tags it is meant to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TagFilter

        public TagFilter​(java.util.Collection<java.lang.String> tags,
                         Profile profile,
                         java.lang.String tagType)
        Constructor
        Parameters:
        tags - The tags we require taggable item to have.
        profile - The profile all the tags are to belong to.
        tagType - The type of item we are expecting. The purpose of this is to initalise the results cache correctly. Passing in the wrong type, or even null will be fine, just less efficient.
    • Method Detail

      • hasAllTags

        public boolean hasAllTags​(Taggable t)
        Check to see if this taggable item has all the tags it is meant to.
        Parameters:
        t - A taggable item.
        Returns:
        A truth value.