import org.springframework.security.userdetails.UserDetailsManager;
+/** Enrich {@link UserDetailsManager} in order to provide roles semantics. */
public interface UserAdminService extends UserDetailsManager {
/**
* Usernames must match this regexp pattern ({@value #USERNAME_PATTERN}).
* Thanks to <a href=
* "http://www.mkyong.com/regular-expressions/how-to-validate-username-with-regular-expression/"
- * >this tip</a> (modified to remove '-' and add upper-case)
+ * >this tip</a> (modified to add upper-case, add '@')
*/
- public final static String USERNAME_PATTERN = "^[a-zA-Z0-9_]{3,15}$";
+ //public final static String USERNAME_PATTERN = "^[a-zA-Z0-9_-@]{3,64}$";
/**
* Email addresses must match this regexp pattern ({@value #EMAIL_PATTERN}.
/*
* USERS
*/
+ /** List all users. */
+ public Set<String> listUsers();
+
/** List users having this role (except the super user). */
public Set<String> listUsersInRole(String role);