Class AllocationToken
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.UpdateAutoTimestampEntity
google.registry.model.domain.token.AllocationToken
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
An entity representing an allocation token.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for constructingAllocationToken
objects, since they are immutable.static enum
Any special behavior that should be used when registering domains using this token.static enum
System behaves differently based on a token it gets inside a command.static enum
The status of this token with regard to any potential promotion.static enum
Type of the token that indicates how and where it should be used.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,
B extends Buildable.GenericBuilder<?, ?>>, Buildable.Overlayable<T> -
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<AllocationToken> get
(VKey<AllocationToken> key) static Map
<VKey<AllocationToken>, Optional<AllocationToken>> getAll
(com.google.common.collect.ImmutableList<VKey<AllocationToken>> keys) com.google.common.collect.ImmutableSet
<FeeQueryCommandExtensionItem.CommandName> com.google.common.collect.ImmutableSet
<String> com.google.common.collect.ImmutableSet
<String> Optional
<org.joda.time.DateTime> double
Optional
<org.joda.money.Money> int
Optional
<org.joda.money.Money> getToken()
boolean
static Optional
<AllocationToken> boolean
Methods inherited from class google.registry.model.UpdateAutoTimestampEntity
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
AllocationToken
public AllocationToken()
-
-
Method Details
-
maybeGetStaticTokenInstance
-
getToken
-
getRedemptionHistoryId
-
isRedeemed
public boolean isRedeemed() -
getDomainName
-
getCreationTime
-
getAllowedRegistrarIds
-
getAllowedTlds
-
getDiscountFraction
public double getDiscountFraction() -
getDiscountPrice
-
shouldDiscountPremiums
public boolean shouldDiscountPremiums() -
getDiscountYears
public int getDiscountYears() -
getTokenType
-
getTokenStatusTransitions
-
getAllowedEppActions
public com.google.common.collect.ImmutableSet<FeeQueryCommandExtensionItem.CommandName> getAllowedEppActions() -
getRenewalPriceBehavior
-
getRenewalPrice
-
getRegistrationBehavior
-
getTokenBehavior
-
get
-
getAll
public static Map<VKey<AllocationToken>,Optional<AllocationToken>> getAll(com.google.common.collect.ImmutableList<VKey<AllocationToken>> keys) -
createVKey
- Overrides:
createVKey
in classImmutableObject
-
asBuilder
-