public interface AuthorizationService
| Modifier and Type | Method and Description |
|---|---|
void |
checkHasRole(org.fabric3.api.SecuritySubject subject,
java.util.List<java.lang.String> roles)
Determines if the subject has one of the roles in the collection of roles.
|
void |
checkPermission(org.fabric3.api.SecuritySubject subject,
java.lang.String role)
Determines if the subject has a permission.
|
void |
checkPermissions(org.fabric3.api.SecuritySubject subject,
java.util.Collection<java.lang.String> roles)
Determines if the subject has the collection of permission.
|
void |
checkRole(org.fabric3.api.SecuritySubject subject,
java.lang.String role)
Determines if the subject has a role.
|
void |
checkRoles(org.fabric3.api.SecuritySubject subject,
java.util.Collection<java.lang.String> roles)
Determines if the subject has the collection of roles.
|
void checkRole(org.fabric3.api.SecuritySubject subject,
java.lang.String role)
throws AuthorizationException
subject - the subjectrole - the roleAuthorizationException - if the user does not have the role or there is a general error performing authorization. If the user does not have the
role, NotAuthorizedException will be thrown.void checkRoles(org.fabric3.api.SecuritySubject subject,
java.util.Collection<java.lang.String> roles)
throws AuthorizationException
subject - the subjectroles - the rolesAuthorizationException - if the user does not have the roles or there is a general error performing authorization. If the user does not have a
role, NotAuthorizedException will be thrown.void checkHasRole(org.fabric3.api.SecuritySubject subject,
java.util.List<java.lang.String> roles)
subject - the subjectroles - the rolesAuthorizationException - if the user does not have a roles or there is a general error performing authorization. If the user does not have at least
one role, NotAuthorizedException will be thrown.void checkPermission(org.fabric3.api.SecuritySubject subject,
java.lang.String role)
throws AuthorizationException
subject - the subjectrole - the roleAuthorizationException - if the user does not have the permission or there is a general error performing authorization. If the user does not have
the permission, NotAuthorizedException will be thrown.void checkPermissions(org.fabric3.api.SecuritySubject subject,
java.util.Collection<java.lang.String> roles)
throws AuthorizationException
subject - the subjectroles - the rolesAuthorizationException - if the user does not have the permissions or there is a general error performing authorization. If the user does not have
a permission, NotAuthorizedException will be thrown.