James Moger
2014-03-27 33ef3c2fb81744ed3f21a64f30a818531f1dd7e9
Add a method to test for the existence of a setting
1 files modified
10 ■■■■■ changed files
src/main/java/com/gitblit/IStoredSettings.java 10 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/IStoredSettings.java
@@ -343,6 +343,16 @@
    }
    /**
     * Tests for the existence of a setting.
     *
     * @param key
     * @return true if the setting exists
     */
    public boolean hasSettings(String key) {
        return getString(key, null) != null;
    }
    /**
     * Updates the values for the specified keys and persists the entire
     * configuration file.
     *