Enum Class DefaultSubscriptionActionUnavailableReasons

java.lang.Object
java.lang.Enum<DefaultSubscriptionActionUnavailableReasons>
com.broadleafcommerce.subscriptionoperation.domain.enums.DefaultSubscriptionActionUnavailableReasons
All Implemented Interfaces:
Serializable, Comparable<DefaultSubscriptionActionUnavailableReasons>, Constable

public enum DefaultSubscriptionActionUnavailableReasons extends Enum<DefaultSubscriptionActionUnavailableReasons>
The default reasons on why an action is unavailable for a Subscription.
Author:
Sunny Yu
See Also:
  • Enum Constant Details

  • Method Details

    • 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

      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
    • getMessagePath

      public String getMessagePath()
    • isInsufficientPermissions

      public static boolean isInsufficientPermissions(String reason)
    • isNoUpgradeAvailable

      public static boolean isNoUpgradeAvailable(String reason)
    • isNoDowngradeAvailable

      public static boolean isNoDowngradeAvailable(String reason)
    • isDowngradeWindowPassed

      public static boolean isDowngradeWindowPassed(String reason)
    • isActionNotAllowed

      public static boolean isActionNotAllowed(String reason)
    • isIncorrectState

      public static boolean isIncorrectState(String reason)