Package org.intermine.api.search
Class TagFilter
- java.lang.Object
-
- org.intermine.api.search.TagFilter
-
public final class TagFilter extends java.lang.Object
Class for filtering web-searchables based on their tags.- Author:
- Alex Kalderimis
-
-
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.
-
-
-
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.
-
-