Package br.com.caelum.brutauth.auth.annotations

Examples of br.com.caelum.brutauth.auth.annotations.SimpleBrutauthRules


  }

  public boolean rulesOfTypeAllows(BrutauthClassOrMethod type) {
    boolean rulesAllows = true;
    if (type.containsAnnotation(SimpleBrutauthRules.class)) {
      SimpleBrutauthRules annotation = type.getAnnotation(SimpleBrutauthRules.class);
      Class<? extends SimpleBrutauthRule>[] rules = annotation.value();
      long permissionData = 0l;
      if (type.containsAnnotation(AccessLevel.class)) {
        permissionData = type.getAnnotation(AccessLevel.class).value();
      }
      rulesAllows = rulesAllows(rules, permissionData);
View Full Code Here


  @Override
  public void intercept(InterceptorStack stack, ResourceMethod method,
      Object resourceInstance) throws InterceptionException {
   
    SimpleBrutauthRules permissionAnnotation = method.getMethod().getAnnotation(SimpleBrutauthRules.class);
    Class<? extends SimpleBrutauthRule>[] permissions = permissionAnnotation.value();
    long permissionData = 0l;
    Arrays.asList(method.getMethod().getAnnotations());
    if (method.containsAnnotation(AccessLevel.class)) {
      permissionData = method.getMethod().getAnnotation(AccessLevel.class).value();
    }
View Full Code Here

TOP

Related Classes of br.com.caelum.brutauth.auth.annotations.SimpleBrutauthRules

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.