Class AuthorizableFilterPredicate

  • All Implemented Interfaces:
    Predicate

    public class AuthorizableFilterPredicate
    extends java.lang.Object
    implements Predicate
    Predicate implementation that returns true if the given object is an Authorizable that has an ID or a given name that matches a certain filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object object)
      Use the specified parameter to perform a test that returns true or false.
      java.lang.String getFilter()  
      • Methods inherited from class java.lang.Object

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

      • AuthorizableFilterPredicate

        public AuthorizableFilterPredicate​(java.lang.String filter)
        Creates an AuthorizableFilterPredicate object, using the given filter if it's not blank.
        Parameters:
        filter - to use for matching against an authorizable ID and given name
    • Method Detail

      • getFilter

        public java.lang.String getFilter()
        Returns:
        the filter to use for matching against an authorizable ID and given name
      • evaluate

        public boolean evaluate​(java.lang.Object object)
        Description copied from interface: Predicate
        Use the specified parameter to perform a test that returns true or false.
        Specified by:
        evaluate in interface Predicate
        Parameters:
        object - the object to evaluate, should not be changed
        Returns:
        true or false