Class PermStatementFilter

  • All Implemented Interfaces:
    java.util.function.Predicate<Statement>

    public class PermStatementFilter
    extends java.lang.Object
    implements java.util.function.Predicate<Statement>
    A filter for to filter ExtendedIterators on Statements. This filter removes any triple that the user can not perform all the actions on.
    • Constructor Detail

      • PermStatementFilter

        public PermStatementFilter​(SecurityEvaluator.Action action,
                                   SecuredItem securedItem)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        action - The action the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
      • PermStatementFilter

        public PermStatementFilter​(SecurityEvaluator.Action action,
                                   SecuredItem securedItem,
                                   SecurityEvaluator evaluator)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        action - The action the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
        evaluator - The security evaluator to evaluate the security queries.
      • PermStatementFilter

        public PermStatementFilter​(SecurityEvaluator.Action[] actions,
                                   SecuredItem securedItem)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        actions - The actions the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
      • PermStatementFilter

        public PermStatementFilter​(SecurityEvaluator.Action[] actions,
                                   SecuredItem securedItem,
                                   SecurityEvaluator evaluator)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        actions - The actions the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
        evaluator - The security evaluator to evaluate the security queries.
      • PermStatementFilter

        public PermStatementFilter​(java.util.Collection<SecurityEvaluator.Action> actions,
                                   SecuredItem securedItem)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        actions - The actions the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
      • PermStatementFilter

        public PermStatementFilter​(java.util.Collection<SecurityEvaluator.Action> actions,
                                   SecuredItem securedItem,
                                   SecurityEvaluator evaluator)
        Creates a filter that requires that the user have all the permissions listed in the actions parameter
        Parameters:
        actions - The actions the user must be permitted to perform.
        securedItem - The secured item that secures this iterator.
        evaluator - The security evaluator to evaluate the security queries.