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 List<PermissionCheck> |
permissionChecks |
Constructor and Description |
---|
AuthorizationCheck() |
Modifier and Type | Method and Description |
---|---|
void |
addPermissionCheck(PermissionCheck permissionCheck) |
int |
getAuthDefaultPerm() |
List<String> |
getAuthGroupIds() |
String |
getAuthUserId() |
List<PermissionCheck> |
getPermissionChecks() |
boolean |
isAuthorizationCheckEnabled() |
void |
setAuthDefaultPerm(int authDefaultPerm) |
void |
setAuthGroupIds(List<String> authGroupIds) |
void |
setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed) |
void |
setAuthUserId(String authUserId) |
void |
setPermissionChecks(List<PermissionCheck> permissionChecks) |
protected boolean isAuthorizationCheckEnabled
protected String authUserId
protected int authDefaultPerm
protected List<PermissionCheck> 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 List<PermissionCheck> getPermissionChecks()
public void setPermissionChecks(List<PermissionCheck> permissionChecks)
public void addPermissionCheck(PermissionCheck permissionCheck)
Copyright © 2018. All rights reserved.