| Modifier and Type | Method and Description |
|---|---|
IAuthorizationService.AuthState |
IMenuAuthLogic.getItemAuthState(MenuItemState currentState,
User user)
Determine the Authorization State of a Menu Item after reading its Auth Configuration
(If its
MenuItem is of type AuthorizableMenuItem). |
IAuthorizationService.AuthState |
StaticMenuLogic.getItemAuthState(MenuItemState currentState,
User user) |
| Modifier and Type | Method and Description |
|---|---|
IAuthorizationService.AuthState |
Authorization.getState()
If it matches the
AuthorizationService should return this as a result |
| Modifier and Type | Method and Description |
|---|---|
void |
Authorization.setState(IAuthorizationService.AuthState state)
If it matches the
AuthorizationService should return this as a result |
| Constructor and Description |
|---|
Authorization(IAuthorizationType type,
AuthorizationExtent extent,
IAuthorizationService.AuthState state) |
| Modifier and Type | Method and Description |
|---|---|
protected IAuthorizationService.AuthState |
AuthorizationService.eval(IAuthorizationService.AuthState currentAuthState,
Authorization reqAuth,
Authorization userAuth)
Evaluate
Authorizations to determine the final outcome as an AuthStateNote that while evaluation Role are an extension of Authorization. |
IAuthorizationService.AuthState |
AuthorizationException.getState() |
IAuthorizationService.AuthState |
AuthorizationService.isAuthorized(Authorization reqAuth,
Collection<Authorization> userAuthsForFeature)
featureRequiredAuth is the Minimum required Authorization from the Collection of user auths
|
IAuthorizationService.AuthState |
IAuthorizationService.isAuthorized(Authorization featureRequiredAuth,
Collection<Authorization> userAuthsForFeature)
|
IAuthorizationService.AuthState |
AuthorizationService.isAuthorized(Collection<Authorization> featureRequiredAuths,
Collection<Authorization> userAuthsForFeature)
Check if userAuthsForFeature satisfies any one of the featureRequiredAuths
|
IAuthorizationService.AuthState |
IAuthorizationService.isAuthorized(Collection<Authorization> featureRequiredAuths,
Collection<Authorization> userAuthsForFeature)
Authorize the
Users Authorizations against the Authorizations required by the feature.This is completely left to implementation as a general rule the user must satisfy one of the roles demanded by the feature (but some implementation may choose to upset this rule if required) |
static IAuthorizationService.AuthState |
IAuthorizationService.AuthState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IAuthorizationService.AuthState[] |
IAuthorizationService.AuthState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected IAuthorizationService.AuthState |
AuthorizationService.eval(IAuthorizationService.AuthState currentAuthState,
Authorization reqAuth,
Authorization userAuth)
Evaluate
Authorizations to determine the final outcome as an AuthStateNote that while evaluation Role are an extension of Authorization. |
T |
AuthorizationModule.handleAuthState(IAuthorizationService.AuthState state) |
void |
AuthorizationException.setState(IAuthorizationService.AuthState state) |
| Constructor and Description |
|---|
AuthorizationException(IAuthorizationService.AuthState t) |
| Modifier and Type | Method and Description |
|---|---|
protected IAuthorizationService.AuthState |
commonAdminDialogTemplate.deriveAuthStateOfPage()
Determine what is the Authorization state (
IAuthorizationService.AuthState) of the page |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commonAdminDialogTemplate.handleAuthState(IAuthorizationService.AuthState state)
Ensure user is authorized and no hacking on page.
One can override this to redirect to say a page, run some service, log etc. |
protected void |
commonAdminTemplate.handleAuthState(IAuthorizationService.AuthState state)
A
Consumer/Handler for AuthState; define custom action.Ensure user is authorized and no hacking on page. One can override this to redirect to say a page, run some service, log etc. |
Copyright © 2018. All rights reserved.