Package net.diegomaia.vraptor.saci.restriction

Examples of net.diegomaia.vraptor.saci.restriction.RestrictionsWrapper


    this.restrictionValidator = restrictionValidator;
  }

  public RestrictionResult checkRestriction(Method method, Profile profile) {
    RestrictionResult restrictionResult;
    RestrictionsWrapper resourceRestrictions = this.getResourceRestriction(method.getDeclaringClass());
    RestrictionsWrapper methodRestrictions = this.getMethodRestrictions(method);
    restrictionResult = this.restrictionValidator.validateRestrictions(resourceRestrictions, methodRestrictions, profile);
    return restrictionResult;
  }
View Full Code Here


      RolesRestriction rolesRestriction = new RolesRestriction();
      rolesRestriction.setRoles(this.getRoles(roles));
      rolesRestriction.setPolicy(roles.policy());
      restrictions.add(rolesRestriction);
    }
    return new RestrictionsWrapper(clazz.getAnnotation(InheritRestrictions.class), clazz.getAnnotation(OnAccessDenial.class), restrictions);
  }
View Full Code Here

      RolesRestriction rolesRestriction = new RolesRestriction();
      rolesRestriction.setRoles(getRoles(roles));
      rolesRestriction.setPolicy(roles.policy());
      restrictions.add(rolesRestriction);
    }
    return new RestrictionsWrapper(method.getAnnotation(InheritRestrictions.class), method.getAnnotation(OnAccessDenial.class), restrictions);
  }
View Full Code Here

TOP

Related Classes of net.diegomaia.vraptor.saci.restriction.RestrictionsWrapper

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.