public class AuthorizationCheck extends Object implements Serializable
Input for the authorization check algorithm
Modifier and Type | Field and Description |
---|---|
protected int |
authDefaultPerm
the default permissions to use if no matching authorization
can be found.
|
protected List<String> |
authGroupIds
the ids of the groups to check permissions for
|
protected String |
authUserId
the id of the user to check permissions for
|
protected boolean |
isAuthorizationCheckEnabled
If true authorization check is performed.
|
protected boolean |
isRevokeAuthorizationCheckEnabled
Indicates if the revoke authorization checks are enabled or not.
|
protected CompositePermissionCheck |
permissionChecks |
Constructor and Description |
---|
AuthorizationCheck() |
AuthorizationCheck(String authUserId,
List<String> authGroupIds,
CompositePermissionCheck permissionCheck,
boolean isRevokeAuthorizationCheckEnabled) |
AuthorizationCheck(String authUserId,
List<String> authGroupIds,
List<PermissionCheck> permissionChecks,
boolean isRevokeAuthorizationCheckEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
addAtomicPermissionCheck(PermissionCheck permissionCheck) |
int |
getAuthDefaultPerm() |
List<String> |
getAuthGroupIds() |
String |
getAuthUserId() |
boolean |
getIsAuthorizationCheckEnabled()
is used by myBatis
|
CompositePermissionCheck |
getPermissionChecks() |
boolean |
isAuthorizationCheckEnabled() |
boolean |
isRevokeAuthorizationCheckEnabled() |
void |
setAtomicPermissionChecks(List<PermissionCheck> permissionChecks) |
void |
setAuthDefaultPerm(int authDefaultPerm) |
void |
setAuthGroupIds(List<String> authGroupIds) |
void |
setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed) |
void |
setAuthUserId(String authUserId) |
void |
setPermissionChecks(CompositePermissionCheck permissionChecks) |
void |
setRevokeAuthorizationCheckEnabled(boolean isRevokeAuthorizationCheckEnabled) |
protected boolean isAuthorizationCheckEnabled
protected boolean isRevokeAuthorizationCheckEnabled
protected String authUserId
protected int authDefaultPerm
protected CompositePermissionCheck permissionChecks
public AuthorizationCheck()
public AuthorizationCheck(String authUserId, List<String> authGroupIds, List<PermissionCheck> permissionChecks, boolean isRevokeAuthorizationCheckEnabled)
public AuthorizationCheck(String authUserId, List<String> authGroupIds, CompositePermissionCheck permissionCheck, boolean isRevokeAuthorizationCheckEnabled)
public boolean isAuthorizationCheckEnabled()
public boolean getIsAuthorizationCheckEnabled()
public void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
public String getAuthUserId()
public void setAuthUserId(String authUserId)
public int getAuthDefaultPerm()
public void setAuthDefaultPerm(int authDefaultPerm)
public CompositePermissionCheck getPermissionChecks()
public void setAtomicPermissionChecks(List<PermissionCheck> permissionChecks)
public void addAtomicPermissionCheck(PermissionCheck permissionCheck)
public void setPermissionChecks(CompositePermissionCheck permissionChecks)
public boolean isRevokeAuthorizationCheckEnabled()
public void setRevokeAuthorizationCheckEnabled(boolean isRevokeAuthorizationCheckEnabled)
Copyright © 2017. All rights reserved.