public interface RoleService
Role. Can be injected via CDI into managed beans as follows:
@Inject RoleService roleService;
Concrete implementations do not hold any state, but it's advised to get an instance through CDI or as an EJB.| Modifier and Type | Method and Description |
|---|---|
Role |
getByName(String name)
Retrieves the persistent Role based on its fixed name.
|
Set<Role> |
getImplicitPermittedRoles(Role role)
Following Wildfly's definition of roles, this method returns all roles that are implicit from the given role from
the perspective of an operation.
|
Set<Role> |
getImplicitPermittedRoles(String name)
Following Wildfly's definition of roles, this method returns all roles that are implicit from the given role from
the perspective of an operation.
|
Set<Role> |
getImplicitUserRoles(Role role)
Following Wildfly's definition of roles, this method returns all roles that are implicit from the given role from
the User's perspective (ie: user has the given role).
|
Set<Role> |
getImplicitUserRoles(String name)
Following Wildfly's definition of roles, this method returns all roles that are implicit from the given role from
the User's perspective (ie: user has the given role).
|
Role |
produceRoleByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
CDI producer method for Role beans annotated with
NamedRole. |
Role getByName(String name)
name - the common name for the role.Set<Role> getImplicitUserRoles(String name)
name - the "top of hierarchy" role to get the incorporated roles fromgetImplicitUserRoles(Role)Set<Role> getImplicitUserRoles(Role role)
role - the "top of hierarchy" role to get the incorporated roles fromSet<Role> getImplicitPermittedRoles(String name)
name - the "top of hierarchy" role to get the incorporated roles fromSet<Role> getImplicitPermittedRoles(Role role)
role - the "top of hierarchy" role to get the incorporated roles fromRole produceRoleByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
NamedRole. This method is not intended to be called by
consumers of the API.injectionPoint - the CDI InjectionPointCopyright © 2015 Red Hat, Inc.. All rights reserved.