From a2ce62e1f360e9cdb2221cfa3b091c02bda857eb Mon Sep 17 00:00:00 2001
From: Laurens Vrijnsen <laurens.vrijnsen@sioux.eu>
Date: Fri, 22 Mar 2013 07:36:52 -0400
Subject: [PATCH] Added enforced HTTP Basic Authentication

---
 src/com/gitblit/IUserService.java |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/com/gitblit/IUserService.java b/src/com/gitblit/IUserService.java
index 8822d02..a57b0da 100644
--- a/src/com/gitblit/IUserService.java
+++ b/src/com/gitblit/IUserService.java
@@ -15,6 +15,7 @@
  */
 package com.gitblit;
 
+import java.util.Collection;
 import java.util.List;
 
 import com.gitblit.models.TeamModel;
@@ -127,6 +128,15 @@
 	boolean updateUserModel(UserModel model);
 
 	/**
+	 * Updates/writes all specified user objects.
+	 * 
+	 * @param models a list of user models
+	 * @return true if update is successful
+	 * @since 1.2.0
+	 */
+	boolean updateUserModels(Collection<UserModel> models);
+	
+	/**
 	 * Adds/updates a user object keyed by username. This method allows for
 	 * renaming a user.
 	 * 
@@ -205,7 +215,8 @@
 	 * @param teamnames
 	 * @return true if successful
 	 * @since 0.8.0
-	 */	
+	 */
+	@Deprecated
 	boolean setTeamnamesForRepositoryRole(String role, List<String> teamnames);
 	
 	/**
@@ -226,6 +237,15 @@
 	 */	
 	boolean updateTeamModel(TeamModel model);
 
+	/**
+	 * Updates/writes all specified team objects.
+	 * 
+	 * @param models a list of team models
+	 * @return true if update is successful
+	 * @since 1.2.0
+	 */	
+	boolean updateTeamModels(Collection<TeamModel> models);
+	
 	/**
 	 * Updates/writes and replaces a complete team object keyed by teamname.
 	 * This method allows for renaming a team.
@@ -277,6 +297,7 @@
 	 * @param usernames
 	 * @return true if successful
 	 */
+	@Deprecated
 	boolean setUsernamesForRepositoryRole(String role, List<String> usernames);
 
 	/**

--
Gitblit v1.9.1