From 3f37176a1489a553422f17a05a79374e7815f025 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 27 Oct 2014 11:28:03 -0400 Subject: [PATCH] Documentation --- src/main/java/com/gitblit/Constants.java | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index c8ce83c..fa8af25 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -122,6 +122,16 @@ public static final String R_TICKETS_PATCHSETS = "refs/tickets/"; + public static final String R_MASTER = "refs/heads/master"; + + public static final String MASTER = "master"; + + public static final String R_DEVELOP = "refs/heads/develop"; + + public static final String DEVELOP = "develop"; + + public static final String AUTHENTICATION_TYPE = "authentication-type"; + public static String getVersion() { String v = Constants.class.getPackage().getImplementationVersion(); if (v == null) { @@ -403,6 +413,27 @@ } /** + * Enumeration of the feed content object types. + */ + public static enum FeedObjectType { + COMMIT, TAG; + + public static FeedObjectType forName(String name) { + for (FeedObjectType type : values()) { + if (type.name().equalsIgnoreCase(name)) { + return type; + } + } + return COMMIT; + } + + @Override + public String toString() { + return name().toLowerCase(); + } + } + + /** * The types of objects that can be indexed and queried. */ public static enum SearchObjectType { -- Gitblit v1.9.1