Class AuthorizationCheck

    • 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 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.
      • historicInstancePermissionsEnabled

        protected boolean historicInstancePermissionsEnabled
      • useLeftJoin

        protected boolean useLeftJoin
    • Constructor Detail

      • AuthorizationCheck

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

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