Package net.diegomaia.vraptor.saci.interfaces

Examples of net.diegomaia.vraptor.saci.interfaces.Restriction


  }
 
  private RestrictionsWrapper getResourceRestriction(Class<?> clazz) {
    List<Restriction> restrictions = new ArrayList<Restriction>();
    if (clazz.isAnnotationPresent(LoggedIn.class)){
      Restriction loggedInRestriction = new LoggedInRestriction();
      restrictions.add(loggedInRestriction);
    }
    if (clazz.isAnnotationPresent(AccessLevel.class)){
      AccessLevel accessLevel = clazz.getAnnotation(AccessLevel.class);
      AccessLevelRestriction accessLevelRestriction = new AccessLevelRestriction();
View Full Code Here


  }
 
  private RestrictionsWrapper getMethodRestrictions(Method method) {
    List<Restriction> restrictions = new ArrayList<Restriction>();
    if (method.isAnnotationPresent(LoggedIn.class)){
      Restriction loggedInRestriction = new LoggedInRestriction();
      restrictions.add(loggedInRestriction);
    }
    if (method.isAnnotationPresent(AccessLevel.class)){
      AccessLevel accessLevel = method.getAnnotation(AccessLevel.class);
      AccessLevelRestriction accessLevelRestriction = new AccessLevelRestriction();
View Full Code Here

TOP

Related Classes of net.diegomaia.vraptor.saci.interfaces.Restriction

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.