public abstract boolean checkUserPermissions(String[] rolesAllowed);
private String[] extractMethodRoles(Method m) {
if (m.isAnnotationPresent(SecurityMethod.class)) {
SecurityMethod securityMethod = m.getAnnotation(SecurityMethod.class);
return securityMethod.rolesAllowed();
}
return null;
}
private String getFatalMessage(String message) {