Package org.camunda.bpm.engine.impl.db
Class AuthorizationCheck
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.AuthorizationCheck
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthorizationCheck extends java.lang.Object implements java.io.Serializable
Input for the authorization check algorithm
- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
authDefaultPerm
the default permissions to use if no matching authorization can be found.protected java.util.List<java.lang.String>
authGroupIds
the ids of the groups to check permissions forprotected java.lang.String
authUserId
the id of the user to check permissions forprotected 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.protected boolean
useLeftJoin
-
Constructor Summary
Constructors Constructor Description AuthorizationCheck()
AuthorizationCheck(java.lang.String authUserId, java.util.List<java.lang.String> authGroupIds, CompositePermissionCheck permissionCheck, boolean isRevokeAuthorizationCheckEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAtomicPermissionCheck(PermissionCheck permissionCheck)
int
getAuthDefaultPerm()
java.util.List<java.lang.String>
getAuthGroupIds()
java.lang.String
getAuthUserId()
boolean
getIsAuthorizationCheckEnabled()
CompositePermissionCheck
getPermissionChecks()
boolean
getShouldPerformAuthorizatioCheck()
is used by myBatisboolean
isAuthorizationCheckEnabled()
boolean
isHistoricInstancePermissionsEnabled()
Used in SQL mappingprotected boolean
isPermissionChecksEmpty()
boolean
isRevokeAuthorizationCheckEnabled()
boolean
isUseLeftJoin()
void
setAtomicPermissionChecks(java.util.List<PermissionCheck> permissionChecks)
void
setAuthDefaultPerm(int authDefaultPerm)
void
setAuthGroupIds(java.util.List<java.lang.String> authGroupIds)
void
setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
void
setAuthUserId(java.lang.String authUserId)
void
setHistoricInstancePermissionsEnabled(boolean historicInstancePermissionsEnabled)
void
setPermissionChecks(CompositePermissionCheck permissionChecks)
void
setRevokeAuthorizationCheckEnabled(boolean isRevokeAuthorizationCheckEnabled)
void
setShouldPerformAuthorizatioCheck(boolean shouldPerformAuthorizatioCheck)
void
setUseLeftJoin(boolean useLeftJoin)
boolean
shouldPerformAuthorizatioCheck()
-
-
-
Field Detail
-
isAuthorizationCheckEnabled
protected boolean isAuthorizationCheckEnabled
If true authorization check is enabled. for This switch is useful when implementing a query which may perform an authorization check only under certain circumstances.
-
shouldPerformAuthorizatioCheck
protected boolean shouldPerformAuthorizatioCheck
If true authorization check is performed.
-
isRevokeAuthorizationCheckEnabled
protected boolean isRevokeAuthorizationCheckEnabled
Indicates if the revoke authorization checks are enabled or not. The authorization checks without checking revoke permissions are much more faster.
-
authUserId
protected java.lang.String authUserId
the id of the user to check permissions for
-
authGroupIds
protected java.util.List<java.lang.String> authGroupIds
the ids of the groups to check permissions for
-
authDefaultPerm
protected int authDefaultPerm
the default permissions to use if no matching authorization can be found.
-
permissionChecks
protected CompositePermissionCheck permissionChecks
-
historicInstancePermissionsEnabled
protected boolean historicInstancePermissionsEnabled
-
useLeftJoin
protected boolean useLeftJoin
-
-
Constructor Detail
-
AuthorizationCheck
public AuthorizationCheck()
-
AuthorizationCheck
public AuthorizationCheck(java.lang.String authUserId, java.util.List<java.lang.String> authGroupIds, CompositePermissionCheck permissionCheck, boolean isRevokeAuthorizationCheckEnabled)
-
-
Method Detail
-
isAuthorizationCheckEnabled
public boolean isAuthorizationCheckEnabled()
-
getIsAuthorizationCheckEnabled
public boolean getIsAuthorizationCheckEnabled()
-
setAuthorizationCheckEnabled
public void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
-
shouldPerformAuthorizatioCheck
public boolean shouldPerformAuthorizatioCheck()
-
getShouldPerformAuthorizatioCheck
public boolean getShouldPerformAuthorizatioCheck()
is used by myBatis
-
setShouldPerformAuthorizatioCheck
public void setShouldPerformAuthorizatioCheck(boolean shouldPerformAuthorizatioCheck)
-
isPermissionChecksEmpty
protected boolean isPermissionChecksEmpty()
-
getAuthUserId
public java.lang.String getAuthUserId()
-
setAuthUserId
public void setAuthUserId(java.lang.String authUserId)
-
getAuthGroupIds
public java.util.List<java.lang.String> getAuthGroupIds()
-
setAuthGroupIds
public void setAuthGroupIds(java.util.List<java.lang.String> authGroupIds)
-
getAuthDefaultPerm
public int getAuthDefaultPerm()
-
setAuthDefaultPerm
public void setAuthDefaultPerm(int authDefaultPerm)
-
getPermissionChecks
public CompositePermissionCheck getPermissionChecks()
-
setAtomicPermissionChecks
public void setAtomicPermissionChecks(java.util.List<PermissionCheck> permissionChecks)
-
addAtomicPermissionCheck
public void addAtomicPermissionCheck(PermissionCheck permissionCheck)
-
setPermissionChecks
public void setPermissionChecks(CompositePermissionCheck permissionChecks)
-
isRevokeAuthorizationCheckEnabled
public boolean isRevokeAuthorizationCheckEnabled()
-
setRevokeAuthorizationCheckEnabled
public void setRevokeAuthorizationCheckEnabled(boolean isRevokeAuthorizationCheckEnabled)
-
setHistoricInstancePermissionsEnabled
public void setHistoricInstancePermissionsEnabled(boolean historicInstancePermissionsEnabled)
-
isHistoricInstancePermissionsEnabled
public boolean isHistoricInstancePermissionsEnabled()
Used in SQL mapping
-
isUseLeftJoin
public boolean isUseLeftJoin()
-
setUseLeftJoin
public void setUseLeftJoin(boolean useLeftJoin)
-
-