Skip to content

Commit

Permalink
弃用权限注解的api属性
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Apr 19, 2017
1 parent 8176195 commit ddd7162
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ public interface AuthorizeValidatorConfig {

AuthorizeValidatorConfig addExpression(String expression, String language);

@Deprecated
AuthorizeValidatorConfig setApiSupport(boolean apiSupport);

@Deprecated
boolean isApiSupport();

boolean isEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
*
* @return
*/
@Deprecated
boolean api() default false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SimpleAuthorizeValidatorConfig implements AuthorizeValidatorConfig
protected Set<String> actions;
protected Set<Expression> expressions = new LinkedHashSet<>();
protected Authorize.MOD mod;
protected boolean apiSupport;
protected boolean apiSupport;

@Override
public AuthorizeValidatorConfig setApiSupport(boolean apiSupport) {
Expand Down Expand Up @@ -92,7 +92,8 @@ public Set<Expression> getExpressions() {
}

public boolean isApiSupport() {
return apiSupport;
return true;
// return apiSupport;
}

public void setExpressions(Set<Expression> expressions) {
Expand Down

0 comments on commit ddd7162

Please sign in to comment.