Restriction loggedInRestriction = new LoggedInRestriction();
restrictions.add(loggedInRestriction);
}
if (method.isAnnotationPresent(AccessLevel.class)){
AccessLevel accessLevel = method.getAnnotation(AccessLevel.class);
AccessLevelRestriction accessLevelRestriction = new AccessLevelRestriction();
accessLevelRestriction.setMinimumAccessLevel(accessLevel.minimumAccessLevel());
accessLevelRestriction.setMaximumAccessLevel(accessLevel.maximumAccessLevel());
restrictions.add(accessLevelRestriction);
}
if (method.isAnnotationPresent(Roles.class)){
Roles roles = method.getAnnotation(Roles.class);
RolesRestriction rolesRestriction = new RolesRestriction();