Class AllocationTokenCustomLogic
java.lang.Object
google.registry.flows.domain.token.AllocationTokenCustomLogic
A no-op base class for allocation token custom logic.
Extend this class and override the hook(s) to perform custom logic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<com.google.common.net.InternetDomainName, String> checkDomainsWithToken
(com.google.common.collect.ImmutableList<com.google.common.net.InternetDomainName> domainNames, AllocationToken token, String registrarId, org.joda.time.DateTime now) Performs additional custom logic for performing domain checks using a token.validateToken
(DomainCommand.Create command, AllocationToken token, Tld tld, String registrarId, org.joda.time.DateTime now) Performs additional custom logic for validating a token on a domain create.validateToken
(Domain domain, AllocationToken token, Tld tld, String registrarId, org.joda.time.DateTime now) Performs additional custom logic for validating a token on an existing domain.
-
Constructor Details
-
AllocationTokenCustomLogic
public AllocationTokenCustomLogic()
-
-
Method Details
-
validateToken
public AllocationToken validateToken(DomainCommand.Create command, AllocationToken token, Tld tld, 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, Tld tld, 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,String> checkDomainsWithToken(com.google.common.collect.ImmutableList<com.google.common.net.InternetDomainName> domainNames, AllocationToken token, String registrarId, org.joda.time.DateTime now) Performs additional custom logic for performing domain checks using a token.
-