streamline userprofile
This commit is contained in:
parent
01ea1c7c0b
commit
e272ab6e3b
4 changed files with 10 additions and 43 deletions
|
@ -1,3 +1,3 @@
|
|||
group = org.xbib
|
||||
name = net
|
||||
version = 4.3.2
|
||||
version = 4.4.0
|
||||
|
|
|
@ -18,17 +18,4 @@ public abstract class SecurityRealm {
|
|||
|
||||
public abstract Authenticator getAuthenticator();
|
||||
|
||||
/**
|
||||
* @return {@link UsersProvider} associated with this realm, null if not supported
|
||||
*/
|
||||
public UsersProvider getUsersProvider() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link GroupsProvider} associated with this realm, null if not supported
|
||||
*/
|
||||
public GroupsProvider getGroupsProvider() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,9 @@ import java.util.List;
|
|||
|
||||
public interface UserProfile {
|
||||
|
||||
boolean isLoggedIn();
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void setUserId(String uid);
|
||||
|
||||
|
@ -14,46 +16,28 @@ public interface UserProfile {
|
|||
|
||||
String getEffectiveUserId();
|
||||
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void addRole(String role);
|
||||
|
||||
void addEffectiveRole(String role);
|
||||
|
||||
List<String> getRoles();
|
||||
|
||||
void addEffectiveRole(String role);
|
||||
|
||||
List<String> getEffectiveRoles();
|
||||
|
||||
boolean hasRole(String role);
|
||||
|
||||
boolean hasEffectiveRole(String role);
|
||||
|
||||
boolean hasAnyRole(String[] expectedRoles);
|
||||
|
||||
boolean hasAnyEffectiveRole(String[] expectedRoles);
|
||||
|
||||
boolean hasAllRoles(String[] expectedRoles);
|
||||
|
||||
boolean hasAllEffectiveRoles(String[] expectedRoles);
|
||||
|
||||
void addPermission(String permission);
|
||||
|
||||
void removePermission(String permission);
|
||||
|
||||
List<String> getPermissions();
|
||||
|
||||
void addEffectivePermission(String permission);
|
||||
|
||||
List<String> getEffectivePermissions();
|
||||
|
||||
Attributes attributes();
|
||||
Attributes getAttributes();
|
||||
|
||||
Attributes effectiveAttributes();
|
||||
Attributes getEffectiveAttributes();
|
||||
|
||||
void setRemembered(boolean remembered);
|
||||
|
||||
boolean isRemembered();
|
||||
|
||||
boolean hasAccess(String requireAnyRole, String requireAllRoles);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Classes for URL building and parsing.
|
||||
*/
|
||||
package org.xbib.net;
|
Loading…
Reference in a new issue