added default type to user manager

This commit is contained in:
Sebastian Sdorra
2012-03-16 09:44:32 +01:00
parent d122b0bae6
commit e1162ed025
5 changed files with 52 additions and 24 deletions

View File

@@ -40,7 +40,9 @@ import sonia.scm.Manager;
import sonia.scm.search.Searchable;
/**
*
* The central class for managing {@link User} objects.
* This class is a singleton and is available via injection.
*
* @author Sebastian Sdorra
*/
public interface UserManager
@@ -49,12 +51,23 @@ public interface UserManager
{
/**
* Method description
* Returns true if a user with the specified username exists.
*
*
* @param username
* @param username username of the user
*
* @return
* @return true if the user exists
*/
public boolean contains(String username);
//~--- get methods ----------------------------------------------------------
/**
* Returns the default type for users.
*
*
* @return default user type
* @since 1.14
*/
public String getDefaultType();
}