From 058ed1b58e54bf813754e72ca8c37296cf5f704d Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 04 Mar 2014 09:56:23 -0500
Subject: [PATCH] Update contributors list

---
 src/main/java/com/gitblit/IStoredSettings.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gitblit/IStoredSettings.java b/src/main/java/com/gitblit/IStoredSettings.java
index 33c36ac..6b58e89 100644
--- a/src/main/java/com/gitblit/IStoredSettings.java
+++ b/src/main/java/com/gitblit/IStoredSettings.java
@@ -333,6 +333,16 @@
 	}
 
 	/**
+	 * Override the specified key with the specified value.
+	 *
+	 * @param key
+	 * @param value
+	 */
+	public void overrideSetting(String key, boolean value) {
+		overrides.put(key, "" + value);
+	}
+
+	/**
 	 * Updates the values for the specified keys and persists the entire
 	 * configuration file.
 	 *
@@ -341,4 +351,13 @@
 	 * @return true if successful
 	 */
 	public abstract boolean saveSettings(Map<String, String> updatedSettings);
+
+	/**
+	 * Merge all settings from the settings parameter into this instance.
+	 *
+	 * @param settings
+	 */
+	public void merge(IStoredSettings settings) {
+		getSettings().putAll(settings.getSettings());
+	}
 }
\ No newline at end of file

--
Gitblit v1.9.1