static private Set getPermittableAnnotations()

in library/src/main/java/org/apache/fineract/cn/anubis/service/PermittableService.java [212:221]


  static private Set<Permittable> getPermittableAnnotations(
      final Map.Entry<RequestMappingInfo, HandlerMethod> handlerMethod,
      final Permittable defaultPermittable) {
    final Method method = handlerMethod.getValue().getMethod();
    final Set<Permittable> ret = AnnotationUtils.getRepeatableAnnotations(method, Permittable.class);
    if (ret.isEmpty())
      return Collections.singleton(defaultPermittable);
    else
      return ret;
  }