From 8f1c9fd7e0f7ea3d7d0b87788eb92ba2f0f09d59 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 29 Nov 2013 11:05:51 -0500 Subject: [PATCH] Extract UserManager from GitBlit singleton --- src/main/java/com/gitblit/IUserService.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/gitblit/IUserService.java b/src/main/java/com/gitblit/IUserService.java index 33f519f..316e4a5 100644 --- a/src/main/java/com/gitblit/IUserService.java +++ b/src/main/java/com/gitblit/IUserService.java @@ -18,6 +18,7 @@ import java.util.Collection; import java.util.List; +import com.gitblit.Constants.AccountType; import com.gitblit.manager.IRuntimeManager; import com.gitblit.models.TeamModel; import com.gitblit.models.UserModel; @@ -205,7 +206,7 @@ * @return list of all usernames that can bypass the access restriction * @since 0.8.0 */ - List<String> getTeamnamesForRepositoryRole(String role); + List<String> getTeamNamesForRepositoryRole(String role); /** * Sets the list of all teams who are allowed to bypass the access @@ -319,6 +320,14 @@ boolean deleteRepositoryRole(String role); /** + * Returns the account type for the user models. + * + * @return the account type + * @since 1.4.0 + */ + AccountType getAccountType(); + + /** * @See java.lang.Object.toString(); * @return string representation of the login service */ -- Gitblit v1.9.1