java.lang.Object
java.lang.Enum<DenyAll>
org.axonframework.commandhandling.distributed.commandfilter.DenyAll
All Implemented Interfaces:
Serializable, Comparable<DenyAll>, Constable, CommandMessageFilter

public enum DenyAll extends Enum<DenyAll> implements CommandMessageFilter
Since:
3.0
Author:
Koen Lavooij
  • Enum Constant Details

    • INSTANCE

      public static final DenyAll INSTANCE
      Singleton instance of the DenyAll filter.
  • Method Details

    • values

      public static DenyAll[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DenyAll valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • matches

      public boolean matches(@Nonnull CommandMessage<?> message)
      Description copied from interface: CommandMessageFilter
      Indicates whether the given commandMessage matches this filter.
      Specified by:
      matches in interface CommandMessageFilter
      Parameters:
      message - the message to match
      Returns:
      true if the command matches, otherwise false
    • and

      public CommandMessageFilter and(@Nonnull CommandMessageFilter other)
      Description copied from interface: CommandMessageFilter
      Returns a filter that matches when both this instance and the given other match.
      Specified by:
      and in interface CommandMessageFilter
      Parameters:
      other - the other filter to match against
      Returns:
      a filter that matches when both this instance and the other match
    • negate

      public CommandMessageFilter negate()
      Description copied from interface: CommandMessageFilter
      Returns a filter that matches when this instance doesn't, and vice versa.
      Specified by:
      negate in interface CommandMessageFilter
      Returns:
      a filter that negates the result of this instance
    • or

      public CommandMessageFilter or(@Nonnull CommandMessageFilter other)
      Description copied from interface: CommandMessageFilter
      Returns a filter that matches when either this instance or the given other matches.
      Specified by:
      or in interface CommandMessageFilter
      Parameters:
      other - the other filter to match against
      Returns:
      a filter that matches when either this instance or the other matches
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DenyAll>