public class ConfigurableRoleService extends Object implements RoleService<Role>, Serializable
RoleService| Constructor and Description |
|---|
ConfigurableRoleService() |
ConfigurableRoleService(List<Role> roles) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Authorization> |
getAuthFor(String authorizableId,
String roleName)
By default it uses an in-memory Map derived from all
Role definitions.If the combination of Roles and Authorizable.getAuthorizableId()s is large then override using something less memory intensive. |
List<Role> |
getRoles()
List of Roles recognized by this service.An Authorization that carries roles with it can derive its Authorizations using getAuthFor(String, String) |
void |
setRoles(List<Role> roles)
List of Roles recognized by this service.An Authorization that carries roles with it can derive its Authorizations using getAuthFor(String, String) |
public void setRoles(List<Role> roles)
List of Roles recognized by this service.Authorization that carries roles with it can derive its Authorizations using getAuthFor(String, String)public List<Role> getRoles()
List of Roles recognized by this service.Authorization that carries roles with it can derive its Authorizations using getAuthFor(String, String)getRoles in interface RoleService<Role>public Collection<Authorization> getAuthFor(String authorizableId, String roleName)
Role definitions.Roles and Authorizable.getAuthorizableId()s is large then override using something less memory intensive.getAuthFor in interface RoleService<Role>authorizableId - as StringroleName - as StringAuthorization (can be null)Copyright © 2018. All rights reserved.