improving user profile and user details
This commit is contained in:
parent
14f5bb29e8
commit
ebf8e781c8
3 changed files with 21 additions and 6 deletions
|
@ -1,3 +1,3 @@
|
|||
group = org.xbib
|
||||
name = net
|
||||
version = 4.6.1
|
||||
version = 4.7.0
|
||||
|
|
|
@ -9,9 +9,6 @@ public final class UserDetails {
|
|||
private String effectiveUserId;
|
||||
|
||||
public UserDetails() {
|
||||
this.name = "";
|
||||
this.userId = "";
|
||||
this.effectiveUserId = "";
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
|
|
|
@ -5,9 +5,21 @@ import java.util.Map;
|
|||
|
||||
public interface UserProfile {
|
||||
|
||||
void setName(String name);
|
||||
String USER_ID = "user_id";
|
||||
|
||||
String getName();
|
||||
String EFFECTIVE_USER_ID = "e_user_id";
|
||||
|
||||
String NAME = "name";
|
||||
|
||||
String ROLES = "roles";
|
||||
|
||||
String EFFECTIVE_ROLES = "e_roles";
|
||||
|
||||
String PERMISSIONS = "perms";
|
||||
|
||||
String EFFECTIVE_PERMISSIONS = "e_perms";
|
||||
|
||||
String ATTRIBUTES = "attrs";
|
||||
|
||||
void setUserId(String uid);
|
||||
|
||||
|
@ -17,6 +29,10 @@ public interface UserProfile {
|
|||
|
||||
String getEffectiveUserId();
|
||||
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void addRole(String role);
|
||||
|
||||
void setRoles(Collection<String> roles);
|
||||
|
@ -43,6 +59,8 @@ public interface UserProfile {
|
|||
|
||||
void setAttributes(Attributes attributes);
|
||||
|
||||
void updateAttribute(String key, Object value);
|
||||
|
||||
Attributes getAttributes();
|
||||
|
||||
Map<String, Object> asMap();
|
||||
|
|
Loading…
Reference in a new issue