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;
|
package org.xbib.net;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.Collection;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public interface UserProfile {
|
public interface UserProfile {
|
||||||
|
|
||||||
|
@ -18,26 +19,31 @@ public interface UserProfile {
|
||||||
|
|
||||||
void addRole(String role);
|
void addRole(String role);
|
||||||
|
|
||||||
List<String> getRoles();
|
void setRoles(Collection<String> roles);
|
||||||
|
|
||||||
|
Collection<String> getRoles();
|
||||||
|
|
||||||
void addEffectiveRole(String role);
|
void addEffectiveRole(String role);
|
||||||
|
|
||||||
List<String> getEffectiveRoles();
|
void setEffectiveRoles(Collection<String> effectiveRoles);
|
||||||
|
|
||||||
|
Collection<String> getEffectiveRoles();
|
||||||
|
|
||||||
void addPermission(String permission);
|
void addPermission(String permission);
|
||||||
|
|
||||||
List<String> getPermissions();
|
void setPermissions(Collection<String> permissions);
|
||||||
|
|
||||||
|
Collection<String> getPermissions();
|
||||||
|
|
||||||
void addEffectivePermission(String permission);
|
void addEffectivePermission(String permission);
|
||||||
|
|
||||||
List<String> getEffectivePermissions();
|
void setEffectivePermissions(Collection<String> effectivePermissions);
|
||||||
|
|
||||||
|
Collection<String> getEffectivePermissions();
|
||||||
|
|
||||||
|
void setAttributes(Attributes attributes);
|
||||||
|
|
||||||
Attributes getAttributes();
|
Attributes getAttributes();
|
||||||
|
|
||||||
Attributes getEffectiveAttributes();
|
Map<String, Object> asMap();
|
||||||
|
|
||||||
void setRemembered(boolean remembered);
|
|
||||||
|
|
||||||
boolean isRemembered();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue