Class 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 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.
      • 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)
      • setAtomicPermissionChecks

        public void setAtomicPermissionChecks​(java.util.List<PermissionCheck> permissionChecks)
      • addAtomicPermissionCheck

        public void addAtomicPermissionCheck​(PermissionCheck permissionCheck)
      • 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)