Class ConsensusBased

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, AccessDecisionManager

    public class ConsensusBased
    extends AbstractAccessDecisionManager
    Simple concrete implementation of AccessDecisionManager that uses a consensus-based approach.

    "Consensus" here means majority-rule (ignoring abstains) rather than unanimous agreement (ignoring abstains). If you require unanimity, please see UnanimousBased.

    • Constructor Detail

      • ConsensusBased

        public ConsensusBased​(java.util.List<AccessDecisionVoter<?>> decisionVoters)
    • Method Detail

      • isAllowIfEqualGrantedDeniedDecisions

        public boolean isAllowIfEqualGrantedDeniedDecisions()
      • setAllowIfEqualGrantedDeniedDecisions

        public void setAllowIfEqualGrantedDeniedDecisions​(boolean allowIfEqualGrantedDeniedDecisions)