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