public class AuthorizationCheck extends Object implements Serializable
Input for the authorization check alogrithm
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 CompositePermissionCheck |
permissionChecks |
Constructor and Description |
---|
AuthorizationCheck() |
Modifier and Type | Method and Description |
---|---|
void |
addAtomicPermissionCheck(PermissionCheck permissionCheck) |
int |
getAuthDefaultPerm() |
List<String> |
getAuthGroupIds() |
String |
getAuthUserId() |
CompositePermissionCheck |
getPermissionChecks() |
boolean |
isAuthorizationCheckEnabled() |
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) |
protected boolean isAuthorizationCheckEnabled
protected String authUserId
protected int authDefaultPerm
protected CompositePermissionCheck permissionChecks
public boolean isAuthorizationCheckEnabled()
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)
Copyright © 2018. All rights reserved.