X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=inline;f=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2FUserAdminService.java;h=65bc4bb251eb2dba8afe374aa7a3baac656bb818;hb=0c7d4e488bf4e357ca33329c87a29baae63a5be9;hp=964c9dff2d7332a0630f943daef4ca07a78cf9e7;hpb=239b41dca64d630abc357e67f9d00391008264c9;p=lgpl%2Fargeo-commons.git
diff --git a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/UserAdminService.java b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/UserAdminService.java
index 964c9dff2..65bc4bb25 100644
--- a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/UserAdminService.java
+++ b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/UserAdminService.java
@@ -4,14 +4,15 @@ import java.util.Set;
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 this tip (modified to remove '-' and add upper-case)
+ * >this tip (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}.
@@ -24,6 +25,9 @@ public interface UserAdminService extends UserDetailsManager {
/*
* USERS
*/
+ /** List all users. */
+ public Set listUsers();
+
/** List users having this role (except the super user). */
public Set listUsersInRole(String role);