/** * Gets a Bson which allows filtering on the policy resource path matching the expression. * * @param expression the expression matching the policy resource path. * @return the Bson. */ public static Bson apply(final PolicyRestrictedFieldExpression expression) { return expression.acceptPolicyRestrictedVisitor(new GetPolicyRestrictionBsonVisitor()); }
/** * Gets a Bson which allows filtering on the policy resource path matching the expression. * * @param expression the expression matching the policy resource path. * @return the Bson. */ public static Bson apply(final PolicyRestrictedFieldExpression expression) { return expression.acceptPolicyRestrictedVisitor(new GetPolicyRestrictionBsonVisitor()); }