clean up user profile

This commit is contained in:
Jörg Prante 2024-04-20 17:23:18 +02:00
parent d2d628129b
commit 7736017bcf

View file

@ -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();
} }