static public AllowedOperationType fromHttpMethod()

in service/src/main/java/org/apache/fineract/cn/identity/internal/repository/AllowedOperationType.java [41:55]


  static public AllowedOperationType fromHttpMethod(final String httpMethod)
  {
    switch (httpMethod) {
      case "GET":
      case "TRACE":
        return READ;
      case "POST":
      case "PUT":
        return CHANGE;
      case "DELETE":
        return DELETE;
      default:
        return null;
    }
  }