public interface RequiredRolesExtractor
Roles
from protected resources.Modifier and Type | Method and Description |
---|---|
Set<Role> |
extractAllRoles(RestrictedAccess annotation)
Get all roles required to access a particular resource with the given
RestrictedAccess
annotation. |
Set<Role> |
extractProvidedRoles(RestrictedAccess annotation)
Get the roles specified by all
RequiredRolesProviders from the
given annotation via RestrictedAccess.providers() . |
Set<Role> |
extractSimpleRoles(RestrictedAccess annotation)
Get all simple roles from the given annotation.
|
Set<Role> extractAllRoles(RestrictedAccess annotation)
RestrictedAccess
annotation.annotation
- The annotation from which roles will be extracted. Never null
.Roles
required to access the resource with the given
annotation. Never null
. This method returns exactly the union of roles
from extractSimpleRoles(RestrictedAccess)
and
extractProvidedRoles(RestrictedAccess)
.Set<Role> extractSimpleRoles(RestrictedAccess annotation)
RestrictedAccess.roles()
.annotation
- The annotation from which roles will be extracted. Never null
.Roles
created from the simple roles in the given annotation.
Never null
.Set<Role> extractProvidedRoles(RestrictedAccess annotation)
RequiredRolesProviders
from the
given annotation via RestrictedAccess.providers()
.annotation
- The annotation from which roles will be extracted. Never null
.Roles
from all RequiredRolesProviders
of an annotation. Never null
.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.