James Moger
2012-08-02 6adf56bb13227afac2c37871b3443fb5354d132c
src/com/gitblit/Constants.java
@@ -109,6 +109,28 @@
         return name();
      }
   }
   /**
    * Enumeration representing the types of authorization control for an
    * access restricted resource.
    */
   public static enum AuthorizationControl {
      AUTHENTICATED, NAMED;
      public static AuthorizationControl fromName(String name) {
         for (AuthorizationControl type : values()) {
            if (type.name().equalsIgnoreCase(name)) {
               return type;
            }
         }
         return NAMED;
      }
      public String toString() {
         return name();
      }
   }
   /**
    * Enumeration representing the types of federation tokens.