Class FilterPredicate


  • public class FilterPredicate
    extends Object
    Author:
    Andrea Di Cesare <andrea@softinstigate.com>
    • Method Detail

      • getRoles

        public Set<String> getRoles()
        Returns:
        the roles
      • getPredicate

        public io.undertow.predicate.Predicate getPredicate()
        Returns:
        the predicate
      • getReadFilter

        public org.bson.BsonDocument getReadFilter()
        Returns:
        the readFilter
      • getWriteFilter

        public org.bson.BsonDocument getWriteFilter()
        Returns:
        the writeFilter
      • getPriority

        public int getPriority()
        Returns:
        the priority
      • getId

        public org.bson.BsonValue getId()
        Returns:
        the _id
      • from

        public static FilterPredicate from​(io.undertow.server.HttpServerExchange exchange)
        Parameters:
        exchange -
        Returns:
        the acl predicate associated with this request
      • resolve

        public boolean resolve​(io.undertow.server.HttpServerExchange exchange)
      • interpolateFilterVars

        public static com.google.gson.JsonObject interpolateFilterVars​(io.undertow.server.HttpServerExchange exchange,
                                                                       org.bson.BsonDocument filter)
        resolves the a filter variables such as %USER, %ROLES, and %NOW
        Parameters:
        exchange -
        filter -
        Returns:
        the filter with interpolated variables