From f76fee63ed9cb3a30d3c0c092d860b1cb93a481b Mon Sep 17 00:00:00 2001 From: Gerard Smyth <gerard.smyth@gmail.com> Date: Thu, 08 May 2014 13:09:30 -0400 Subject: [PATCH] Updated the SyndicationServlet to provide an additional option to return details of the tags in the repository instead of the commits. This uses a new 'ot' request parameter to indicate the object type of the content to return, which can be ither TAG or COMMIT. If this is not provided, then COMMIT is assumed to maintain backwards compatability. If tags are returned, then the paging parameters, 'l' and 'pg' are still supported, but searching options are currently ignored. --- src/main/java/com/gitblit/models/SettingModel.java | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/gitblit/models/SettingModel.java b/src/main/java/com/gitblit/models/SettingModel.java index a04126e..ef77e15 100644 --- a/src/main/java/com/gitblit/models/SettingModel.java +++ b/src/main/java/com/gitblit/models/SettingModel.java @@ -26,7 +26,7 @@ /** * SettingModel represents a setting and all its metadata: name, current value, * default value, description, and directives. - * + * * @author James Moger */ public class SettingModel implements Serializable { @@ -55,7 +55,7 @@ /** * Returns true if the current value is the default value. - * + * * @return true if current value is the default value */ public boolean isDefaultValue() { @@ -66,7 +66,7 @@ /** * Returns the boolean value for the currentValue. If the currentValue can * not be interpreted as a boolean, the defaultValue is returned. - * + * * @param defaultValue * @return key value or defaultValue */ @@ -80,7 +80,7 @@ /** * Returns the integer value for the currentValue. If the currentValue can * not be interpreted as an integer, the defaultValue is returned. - * + * * @param defaultValue * @return key value or defaultValue */ @@ -97,7 +97,7 @@ /** * Returns the char value for currentValue. If the currentValue can not be * interpreted as a char, the defaultValue is returned. - * + * * @param defaultValue * @return key value or defaultValue */ @@ -111,7 +111,7 @@ /** * Returns the string value for currentValue. If the currentValue is null, * the defaultValue is returned. - * + * * @param defaultValue * @return key value or defaultValue */ @@ -124,7 +124,7 @@ /** * Returns a list of space-separated strings from the specified key. - * + * * @return list of strings */ public List<String> getStrings() { @@ -134,7 +134,7 @@ /** * Returns a list of strings from the currentValue using the specified * string separator. - * + * * @param separator * @return list of strings */ @@ -143,10 +143,10 @@ strings = StringUtils.getStringsFromValue(currentValue, separator); return strings; } - + /** * Returns a map of strings from the current value. - * + * * @return map of string, string */ public Map<String, String> getMap() { @@ -154,7 +154,7 @@ for (String string : getStrings()) { String[] kvp = string.split("=", 2); String key = kvp[0]; - String value = kvp[1]; + String value = kvp[1]; map.put(key, value); } return map; -- Gitblit v1.9.1