\r
**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)) based on [%JGIT%][jgit] *released %BUILDDATE%*\r
\r
-- added: federation feature to allow gitblit instances (or gitblit federation clients) to pull repositories and, optionally, settings and accounts from other gitblit instances. This is something like [svn-sync](http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.html) for gitblit.\r
-<br/>**New:** *federation.name =*\r
-<br/>**New:** *federation.passphrase =*\r
-<br/>**New:** *federation.allowProposals = false*\r
-<br/>**New:** *federation.proposalsFolder = proposals*\r
-<br/>**New:** *federation.defaultFrequency = 60 mins*\r
-<br/>**New:** *federation.sets =*\r
-<br/>**New:** *mail.* settings for sending emails\r
-<br/>**New:** user role *#notfederated* to prevent a user account from being pulled by a federated Gitblit instance\r
-- added: google-gson dependency\r
-- added: javamail dependency\r
-- updated: MarkdownPapers 1.1.1\r
-- updated: Wicket 1.4.18\r
-- updated: JGit 1.1.0\r
-- fixed: syndication urls for WAR deployments\r
-- fixed: authentication for zip downloads\r
+- added: IUserService.setup(IStoredSettings) for custom user service implementations\r
\r
issues, binaries, and sources @ [Google Code][googlecode]<br/>\r
sources @ [Github][gitbltsrc]\r
%BEGINCODE%\r
public interface IUserService {\r
\r
+ /**\r
+ * Setup the user service.\r
+ * \r
+ * @param settings\r
+ * @since 0.6.1\r
+ */\r
+ @Override\r
+ public void setup(IStoredSettings settings) {\r
+ }\r
+ \r
/**\r
* Does the user service support cookie authentication?\r
* \r
### Current Release\r
**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)) based on [%JGIT%][jgit] *released %BUILDDATE%*\r
\r
+- added: IUserService.setup(IStoredSettings) for custom user service implementations\r
+\r
+### Older Releases\r
+\r
+**0.6.0** ([go](http://code.google.com/p/gitblit/downloads/detail?name=gitblit-0.6.0.zip)|[war](http://code.google.com/p/gitblit/downloads/detail?name=gitblit-0.6.0.war)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=fedclient-0.6.0.zip)) based on [JGit 1.1.0 (201109151100-r)][jgit] *released 2011-09-27*\r
+\r
- added: federation feature to allow gitblit instances (or gitblit federation clients) to pull repositories and, optionally, settings and accounts from other gitblit instances. This is something like [svn-sync](http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.html) for gitblit.\r
<br/>**New:** *federation.name =*\r
<br/>**New:** *federation.passphrase =*\r
- fixed: syndication urls for WAR deployments\r
- fixed: authentication for zip downloads\r
\r
-### Older Releases\r
-\r
**0.5.2** ([go](http://code.google.com/p/gitblit/downloads/detail?name=gitblit-0.5.2.zip)|[war](http://code.google.com/p/gitblit/downloads/detail?name=gitblit-0.5.2.war)) based on [JGit 1.0.0 (201106090707-r)][jgit] *released 2011-07-27*\r
\r
- fixed: active repositories with a HEAD that pointed to an empty branch caused internal errors (issue 14)\r
super(realmFile.getAbsolutePath());\r
}\r
\r
+ /**\r
+ * Setup the user service.\r
+ * \r
+ * @param settings\r
+ * @since 0.6.1\r
+ */\r
+ @Override\r
+ public void setup(IStoredSettings settings) {\r
+ }\r
+\r
/**\r
* Does the user service support cookie authentication?\r
* \r
public void setUserService(IUserService userService) {\r
logger.info("Setting up user service " + userService.toString());\r
this.userService = userService;\r
+ this.userService.setup(settings);\r
}\r
\r
/**\r
*/\r
public interface IUserService {\r
\r
+ /**\r
+ * Setup the user service. This method allows custom implementations to\r
+ * retrieve settings from gitblit.properties or the web.xml file without\r
+ * relying on the GitBlit static singleton.\r
+ * \r
+ * @param settings\r
+ * @since 0.6.1\r
+ */\r
+ void setup(IStoredSettings settings);\r
+\r
/**\r
* Does the user service support cookie authentication?\r
* \r