if (annotation == null) {
annotation = clazz.getAnnotation(grails.plugin.springsecurity.annotation.Secured.class);
if (annotation != null) {
Class<?> closureClass = findClosureClass((grails.plugin.springsecurity.annotation.Secured)annotation);
if (closureClass == null) {
classRoleMap.add(new InterceptedUrl(controllerName, getValue(annotation), getHttpMethod(annotation)));
}
else {
classClosureMap.add(new InterceptedUrl(controllerName, closureClass, getHttpMethod(annotation)));
}
}
}
else {
classRoleMap.add(new InterceptedUrl(controllerName, getValue(annotation), null));
}
List<InterceptedUrl> annotatedActionNames = findActionRoles(clazz);
if (annotatedActionNames != null && !annotatedActionNames.isEmpty()) {
actionRoleMap.put(controllerName, annotatedActionNames);