Enum ReservationType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ReservationType>

    public enum ReservationType
    extends java.lang.Enum<ReservationType>
    Enum describing reservation on a label in a ReservedList.

    Note that superusers can override reservations and register a domain no matter what.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALLOWED_IN_SUNRISE
      The domain can only be registered during sunrise, and is reserved thereafter.
      FULLY_BLOCKED
      The domain can never be registered.
      NAME_COLLISION
      The domain can only be registered during sunrise for defensive purposes, and will never resolve.
      RESERVED_FOR_ANCHOR_TENANT
      The domain is for an anchor tenant and can only be registered using a specific token.
      RESERVED_FOR_SPECIFIC_USE
      The domain can only be registered by providing a specific token.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessageForCheck()  
      static ReservationType getTypeOfHighestSeverity​(java.util.Set<ReservationType> types)
      Returns the ReservationType with the highest severity, used when a label has multiple reservation types and a reservation message is needed.
      static ReservationType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ReservationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ALLOWED_IN_SUNRISE

        public static final ReservationType ALLOWED_IN_SUNRISE
        The domain can only be registered during sunrise, and is reserved thereafter.
      • RESERVED_FOR_SPECIFIC_USE

        public static final ReservationType RESERVED_FOR_SPECIFIC_USE
        The domain can only be registered by providing a specific token.
      • RESERVED_FOR_ANCHOR_TENANT

        public static final ReservationType RESERVED_FOR_ANCHOR_TENANT
        The domain is for an anchor tenant and can only be registered using a specific token.
      • NAME_COLLISION

        public static final ReservationType NAME_COLLISION
        The domain can only be registered during sunrise for defensive purposes, and will never resolve.
      • FULLY_BLOCKED

        public static final ReservationType FULLY_BLOCKED
        The domain can never be registered.
    • Method Detail

      • values

        public static ReservationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ReservationType c : ReservationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReservationType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessageForCheck

        @Nullable
        public java.lang.String getMessageForCheck()
      • getTypeOfHighestSeverity

        public static ReservationType getTypeOfHighestSeverity​(java.util.Set<ReservationType> types)
        Returns the ReservationType with the highest severity, used when a label has multiple reservation types and a reservation message is needed.
        Parameters:
        types - the set of reservation types that a label is associated with.
        Returns:
        the reservation type with the highest severity.