|
@@ -20,6 +20,13 @@ public class SimpleAuthorizeValidatorConfig implements AuthorizeValidatorConfig
|
|
|
protected Set<String> actions;
|
|
|
protected Set<Expression> expressions = new LinkedHashSet<>();
|
|
|
protected Authorize.MOD mod;
|
|
|
+ protected boolean apiSupport;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AuthorizeValidatorConfig setApiSupport(boolean apiSupport) {
|
|
|
+ this.apiSupport = apiSupport;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public AuthorizeValidatorConfig setModules(Set<String> modules) {
|
|
@@ -84,6 +91,10 @@ public class SimpleAuthorizeValidatorConfig implements AuthorizeValidatorConfig
|
|
|
return expressions;
|
|
|
}
|
|
|
|
|
|
+ public boolean isApiSupport() {
|
|
|
+ return apiSupport;
|
|
|
+ }
|
|
|
+
|
|
|
public void setExpressions(Set<Expression> expressions) {
|
|
|
this.expressions = expressions;
|
|
|
}
|
|
@@ -94,7 +105,7 @@ public class SimpleAuthorizeValidatorConfig implements AuthorizeValidatorConfig
|
|
|
|
|
|
@Override
|
|
|
public boolean isEmpty() {
|
|
|
- return getModules().isEmpty() && getRoles().isEmpty() && getExpressions().isEmpty();
|
|
|
+ return getModules().isEmpty() && getRoles().isEmpty() && getExpressions().isEmpty();
|
|
|
}
|
|
|
|
|
|
public static class Expression {
|