From 7736017bcf7276de8e1b710235fda026ececb03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Sat, 20 Apr 2024 17:23:18 +0200 Subject: [PATCH] clean up user profile --- .../main/java/org/xbib/net/UserProfile.java | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/net/src/main/java/org/xbib/net/UserProfile.java b/net/src/main/java/org/xbib/net/UserProfile.java index 0acb77e..f5473db 100644 --- a/net/src/main/java/org/xbib/net/UserProfile.java +++ b/net/src/main/java/org/xbib/net/UserProfile.java @@ -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 getRoles(); + void setRoles(Collection roles); + + Collection getRoles(); void addEffectiveRole(String role); - List getEffectiveRoles(); + void setEffectiveRoles(Collection effectiveRoles); + + Collection getEffectiveRoles(); void addPermission(String permission); - List getPermissions(); + void setPermissions(Collection permissions); + + Collection getPermissions(); void addEffectivePermission(String permission); - List getEffectivePermissions(); + void setEffectivePermissions(Collection effectivePermissions); + + Collection getEffectivePermissions(); + + void setAttributes(Attributes attributes); Attributes getAttributes(); - Attributes getEffectiveAttributes(); - - void setRemembered(boolean remembered); - - boolean isRemembered(); - + Map asMap(); }