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 |
historicInstancePermissionsEnabled |
protected boolean |
isAuthorizationCheckEnabled
If true authorization check is enabled.
|
protected boolean |
isRevokeAuthorizationCheckEnabled
Indicates if the revoke authorization checks are enabled or not.
|
protected CompositePermissionCheck |
permissionChecks |
protected boolean |
shouldPerformAuthorizatioCheck
If true authorization check is performed.
|
Constructor and Description |
---|
AuthorizationCheck() |
AuthorizationCheck(String authUserId,
List<String> authGroupIds,
CompositePermissionCheck permissionCheck,
boolean isRevokeAuthorizationCheckEnabled) |
protected boolean isAuthorizationCheckEnabled
protected boolean shouldPerformAuthorizatioCheck
protected boolean isRevokeAuthorizationCheckEnabled
protected String authUserId
protected int authDefaultPerm
protected CompositePermissionCheck permissionChecks
protected boolean historicInstancePermissionsEnabled
public AuthorizationCheck()
public AuthorizationCheck(String authUserId, List<String> authGroupIds, CompositePermissionCheck permissionCheck, boolean isRevokeAuthorizationCheckEnabled)
public boolean isAuthorizationCheckEnabled()
public boolean getIsAuthorizationCheckEnabled()
public void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
public boolean shouldPerformAuthorizatioCheck()
public boolean getShouldPerformAuthorizatioCheck()
public void setShouldPerformAuthorizatioCheck(boolean shouldPerformAuthorizatioCheck)
protected boolean isPermissionChecksEmpty()
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)
public void setHistoricInstancePermissionsEnabled(boolean historicInstancePermissionsEnabled)
public boolean isHistoricInstancePermissionsEnabled()
Copyright © 2021. All rights reserved.