James Moger
2012-10-13 c658df9e87d65b08d5482cf04489cb0532ff83dd
src/com/gitblit/IUserService.java
@@ -46,6 +46,22 @@
    * @since 1.0.0
    */   
   boolean supportsCredentialChanges();
   /**
    * Does the user service support changes to user display name?
    *
    * @return true or false
    * @since 1.0.0
    */
   boolean supportsDisplayNameChanges();
   /**
    * Does the user service support changes to user email address?
    *
    * @return true or false
    * @since 1.0.0
    */
   boolean supportsEmailAddressChanges();
   
   /**
    * Does the user service support changes to team memberships?
@@ -68,7 +84,7 @@
    * @param model
    * @return cookie value
    */
   char[] getCookie(UserModel model);
   String getCookie(UserModel model);
   /**
    * Authenticate a user based on their cookie.
@@ -88,6 +104,13 @@
   UserModel authenticate(String username, char[] password);
   /**
    * Logout a user.
    *
    * @param user
    */
   void logout(UserModel user);
   /**
    * Retrieve the user object for the specified username.
    * 
    * @param username
@@ -103,6 +126,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(List<UserModel> models);
   /**
    * Adds/updates a user object keyed by username. This method allows for
    * renaming a user.
@@ -182,7 +214,8 @@
    * @param teamnames
    * @return true if successful
    * @since 0.8.0
    */
    */
   @Deprecated
   boolean setTeamnamesForRepositoryRole(String role, List<String> teamnames);
   
   /**
@@ -203,6 +236,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(List<TeamModel> models);
   /**
    * Updates/writes and replaces a complete team object keyed by teamname.
    * This method allows for renaming a team.
@@ -254,6 +296,7 @@
    * @param usernames
    * @return true if successful
    */
   @Deprecated
   boolean setUsernamesForRepositoryRole(String role, List<String> usernames);
   /**