Class AuthorizationCheck

java.lang.Object
org.camunda.bpm.engine.impl.db.AuthorizationCheck
All Implemented Interfaces:
Serializable

public class AuthorizationCheck extends Object implements Serializable

Input for the authorization check algorithm

Author:
Daniel Meyer
See Also:
  • Field Details

    • 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 String authUserId
      the id of the user to check permissions for
    • authGroupIds

      protected List<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 Details

    • AuthorizationCheck

      public AuthorizationCheck()
    • AuthorizationCheck

      public AuthorizationCheck(String authUserId, List<String> authGroupIds, CompositePermissionCheck permissionCheck, boolean isRevokeAuthorizationCheckEnabled)
  • Method Details

    • 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 String getAuthUserId()
    • setAuthUserId

      public void setAuthUserId(String authUserId)
    • getAuthGroupIds

      public List<String> getAuthGroupIds()
    • setAuthGroupIds

      public void setAuthGroupIds(List<String> authGroupIds)
    • getAuthDefaultPerm

      public int getAuthDefaultPerm()
    • setAuthDefaultPerm

      public void setAuthDefaultPerm(int authDefaultPerm)
    • getPermissionChecks

      public CompositePermissionCheck getPermissionChecks()
    • setAtomicPermissionChecks

      public void setAtomicPermissionChecks(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)