use of com.yahoo.elide.core.security.permissions.ExpressionResultCache in project elide by yahoo.
the class PermissionToFilterExpressionVisitorTest method setupEntityDictionary.
@BeforeEach
public void setupEntityDictionary() {
Map<String, Class<? extends Check>> checks = new HashMap<>();
checks.put(AT_OP_ALLOW, Permissions.Succeeds.class);
checks.put(AT_OP_DENY, Permissions.Fails.class);
checks.put(USER_ALLOW, Role.ALL.class);
checks.put(USER_DENY, Role.NONE.class);
checks.put(IN_FILTER, Permissions.InFilterExpression.class);
checks.put(NOT_IN_FILTER, Permissions.NotInFilterExpression.class);
checks.put(LT_FILTER, Permissions.LessThanFilterExpression.class);
checks.put(GE_FILTER, Permissions.GreaterThanOrEqualFilterExpression.class);
dictionary = TestDictionary.getTestDictionary(checks);
elideSettings = new ElideSettingsBuilder(null).withEntityDictionary(dictionary).build();
requestScope = newRequestScope();
cache = new ExpressionResultCache();
}
Aggregations