clean up user profile
This commit is contained in:
parent
d2d628129b
commit
7736017bcf
1 changed files with 17 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.xbib.net;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
public interface UserProfile {
|
||||
|
||||
|
@ -18,26 +19,31 @@ public interface UserProfile {
|
|||
|
||||
void addRole(String role);
|
||||
|
||||
List<String> getRoles();
|
||||
void setRoles(Collection<String> roles);
|
||||
|
||||
Collection<String> getRoles();
|
||||
|
||||
void addEffectiveRole(String role);
|
||||
|
||||
List<String> getEffectiveRoles();
|
||||
void setEffectiveRoles(Collection<String> effectiveRoles);
|
||||
|
||||
Collection<String> getEffectiveRoles();
|
||||
|
||||
void addPermission(String permission);
|
||||
|
||||
List<String> getPermissions();
|
||||
void setPermissions(Collection<String> permissions);
|
||||
|
||||
Collection<String> getPermissions();
|
||||
|
||||
void addEffectivePermission(String permission);
|
||||
|
||||
List<String> getEffectivePermissions();
|
||||
void setEffectivePermissions(Collection<String> effectivePermissions);
|
||||
|
||||
Collection<String> getEffectivePermissions();
|
||||
|
||||
void setAttributes(Attributes attributes);
|
||||
|
||||
Attributes getAttributes();
|
||||
|
||||
Attributes getEffectiveAttributes();
|
||||
|
||||
void setRemembered(boolean remembered);
|
||||
|
||||
boolean isRemembered();
|
||||
|
||||
Map<String, Object> asMap();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue