@PermitAll public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService
| Constructor and Description |
|---|
RoleServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Role |
create(String name,
String description)
Creates a new Role based on the given name and description.
|
Role |
getById(UUID id)
Retrieves the persistent Role based on its ID.
|
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 |
getOrCreateByName(String name,
String description)
Retrieves a Role based on the given name.
|
Role |
produceRoleByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
CDI producer method for Role beans annotated with
NamedRole. |
getByIdpublic Role getById(UUID id)
RoleServicegetById in interface RoleServiceid - the role IDpublic Role create(String name, String description)
RoleServicecreate in interface RoleServicename - the role's name. Must be unique and non-nulldescription - free text, can be nullpublic Role getByName(String name)
RoleServicegetByName in interface RoleServicename - the common name for the role.public Set<Role> getImplicitUserRoles(String name)
RoleServicegetImplicitUserRoles in interface RoleServicename - the "top of hierarchy" role to get the incorporated roles fromRoleService.getImplicitUserRoles(Role)public Set<Role> getImplicitPermittedRoles(String name)
RoleServicegetImplicitPermittedRoles in interface RoleServicename - the "top of hierarchy" role to get the incorporated roles frompublic Set<Role> getImplicitUserRoles(Role role)
RoleServicegetImplicitUserRoles in interface RoleServicerole - the "top of hierarchy" role to get the incorporated roles frompublic Set<Role> getImplicitPermittedRoles(Role role)
RoleServicegetImplicitPermittedRoles in interface RoleServicerole - the "top of hierarchy" role to get the incorporated roles from@Produces public Role produceRoleByName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
RoleServiceNamedRole. This method is not intended to be called by
consumers of the API.produceRoleByName in interface RoleServiceinjectionPoint - the CDI InjectionPointpublic Role getOrCreateByName(String name, String description)
RoleServicegetOrCreateByName in interface RoleServicename - the name to use in the lookup of the Roledescription - a description to use, in case the role doesn't exist yetCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.