use of org.apache.jackrabbit.oak.spi.security.authorization.restriction.AbstractRestrictionProvider in project jackrabbit-oak by apache.
the class AbstractAccessControlListTest method getRestrictionProvider.
protected RestrictionProvider getRestrictionProvider() {
Map<String, RestrictionDefinition> rDefs = new HashMap();
rDefs.put("r1", new RestrictionDefinitionImpl("r1", Type.STRING, true));
rDefs.put("r2", new RestrictionDefinitionImpl("r2", Type.LONGS, false));
return new AbstractRestrictionProvider(rDefs) {
@Nonnull
@Override
public RestrictionPattern getPattern(@Nullable String oakPath, @Nonnull Tree tree) {
throw new UnsupportedOperationException();
}
@Nonnull
@Override
public RestrictionPattern getPattern(@Nullable String oakPath, @Nonnull Set<Restriction> restrictions) {
throw new UnsupportedOperationException();
}
};
}
Aggregations