public interface AuthorizationManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthorizationManager.ProtectedOperation |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_ROLE |
static String |
OWNER_ROLE |
static String |
PUBLIC_GROUP |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAuthorization(String caseId)
Checks if the caller (based on identity provider) is authorized to work with a case identified by caseId
|
void |
checkOperationAuthorization(String caseId,
AuthorizationManager.ProtectedOperation operation)
Checks if the caller (based on identity provider) is authorized to perform given operation on a case.
|
static final String PUBLIC_GROUP
static final String OWNER_ROLE
static final String ADMIN_ROLE
void checkAuthorization(String caseId) throws SecurityException
caseId - unique id of the caseSecurityException - thrown when caller is not authorized to access the case instancevoid checkOperationAuthorization(String caseId, AuthorizationManager.ProtectedOperation operation) throws SecurityException
caseId - unique id of the caseoperation - operations that is being invokedSecurityException - thrown when caller is not authorized to access the case instanceCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.