]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/UserAdminService.java
1 package org
.argeo
.security
;
5 import org
.springframework
.security
.userdetails
.UserDetailsManager
;
7 public interface UserAdminService
extends UserDetailsManager
{
9 * Usernames must match this regexp pattern ({@value #USERNAME_PATTERN}).
11 * "http://www.mkyong.com/regular-expressions/how-to-validate-username-with-regular-expression/"
12 * >this tip</a> (modified to remove '-' and add upper-case)
14 public final static String USERNAME_PATTERN
= "^[a-zA-Z0-9_]{3,15}$";
17 * Email addresses must match this regexp pattern ({@value #EMAIL_PATTERN}.
19 * "http://www.mkyong.com/regular-expressions/how-to-validate-email-address-with-regular-expression/"
22 public final static String EMAIL_PATTERN
= "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
27 /** List users having this role (except the super user). */
28 public Set
<String
> listUsersInRole(String role
);
30 /** Synchronize with the underlying DAO. */
31 public void synchronize();
36 public void newRole(String role
);
38 public Set
<String
> listEditableRoles();
40 public void deleteRole(String role
);