diff options
author | James Moger <james.moger@gitblit.com> | 2011-09-28 18:55:34 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-09-28 18:55:34 -0400 |
commit | 63ee41d91854e1cf06d8d5cda30cdf7d8d38f3c5 (patch) | |
tree | 7fc1daecfd826e5325d6b668a5949adeaaee698f /src/com/gitblit/IUserService.java | |
parent | e20f85719784691be473a99d728f321f370780ae (diff) | |
download | gitblit-63ee41d91854e1cf06d8d5cda30cdf7d8d38f3c5.tar.gz gitblit-63ee41d91854e1cf06d8d5cda30cdf7d8d38f3c5.zip |
Added IUserService.setup(IStoredSettings) for custom implementations.
This allows custom implementations to store their settings alongside the
Gitblit GO or WAR settings while remaining unit-testable.
Diffstat (limited to 'src/com/gitblit/IUserService.java')
-rw-r--r-- | src/com/gitblit/IUserService.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/gitblit/IUserService.java b/src/com/gitblit/IUserService.java index 426d38c0..a85c997f 100644 --- a/src/com/gitblit/IUserService.java +++ b/src/com/gitblit/IUserService.java @@ -29,6 +29,16 @@ import com.gitblit.models.UserModel; public interface IUserService {
/**
+ * Setup the user service. This method allows custom implementations to
+ * retrieve settings from gitblit.properties or the web.xml file without
+ * relying on the GitBlit static singleton.
+ *
+ * @param settings
+ * @since 0.6.1
+ */
+ void setup(IStoredSettings settings);
+
+ /**
* Does the user service support cookie authentication?
*
* @return true or false
|