Class AllocationTokenCustomLogic
- java.lang.Object
-
- google.registry.flows.domain.token.AllocationTokenCustomLogic
-
public class AllocationTokenCustomLogic extends java.lang.Object
A no-op base class for allocation token custom logic.Extend this class and override the hook(s) to perform custom logic.
-
-
Constructor Summary
Constructors Constructor Description AllocationTokenCustomLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableMap<com.google.common.net.InternetDomainName,java.lang.String>
checkDomainsWithToken(com.google.common.collect.ImmutableList<com.google.common.net.InternetDomainName> domainNames, AllocationToken token, java.lang.String registrarId, org.joda.time.DateTime now)
Performs additional custom logic for performing domain checks using a token.AllocationToken
validateToken(DomainCommand.Create command, AllocationToken token, Registry registry, java.lang.String registrarId, org.joda.time.DateTime now)
Performs additional custom logic for validating a token on a domain create.AllocationToken
validateToken(Domain domain, AllocationToken token, Registry registry, java.lang.String registrarId, org.joda.time.DateTime now)
Performs additional custom logic for validating a token on an existing domain.
-
-
-
Method Detail
-
validateToken
public AllocationToken validateToken(DomainCommand.Create command, AllocationToken token, Registry registry, java.lang.String registrarId, org.joda.time.DateTime now) throws EppException
Performs additional custom logic for validating a token on a domain create.- Throws:
EppException
-
validateToken
public AllocationToken validateToken(Domain domain, AllocationToken token, Registry registry, java.lang.String registrarId, org.joda.time.DateTime now) throws EppException
Performs additional custom logic for validating a token on an existing domain.- Throws:
EppException
-
checkDomainsWithToken
public com.google.common.collect.ImmutableMap<com.google.common.net.InternetDomainName,java.lang.String> checkDomainsWithToken(com.google.common.collect.ImmutableList<com.google.common.net.InternetDomainName> domainNames, AllocationToken token, java.lang.String registrarId, org.joda.time.DateTime now)
Performs additional custom logic for performing domain checks using a token.
-
-