Package google.registry.flows.custom
Class DomainCreateFlowCustomLogic
- java.lang.Object
-
- google.registry.flows.custom.BaseFlowCustomLogic
-
- google.registry.flows.custom.DomainCreateFlowCustomLogic
-
public class DomainCreateFlowCustomLogic extends BaseFlowCustomLogic
A no-op base class forDomainCreateFlow
custom logic.Extend this class and override the hook(s) to perform custom logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainCreateFlowCustomLogic.AfterValidationParameters
A class to encapsulate parameters for a call toafterValidation(google.registry.flows.custom.DomainCreateFlowCustomLogic.AfterValidationParameters)
.static class
DomainCreateFlowCustomLogic.BeforeResponseParameters
A class to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainCreateFlowCustomLogic.BeforeResponseParameters)
.static class
DomainCreateFlowCustomLogic.BeforeResponseReturnData
A class to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainCreateFlowCustomLogic.BeforeResponseParameters)
.static class
DomainCreateFlowCustomLogic.BeforeSaveParameters
A class to encapsulate parameters for a call tobeforeSave(google.registry.flows.custom.DomainCreateFlowCustomLogic.BeforeSaveParameters)
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DomainCreateFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterValidation(DomainCreateFlowCustomLogic.AfterValidationParameters parameters)
A hook that runs at the end of the validation step to perform additional validation.DomainCreateFlowCustomLogic.BeforeResponseReturnData
beforeResponse(DomainCreateFlowCustomLogic.BeforeResponseParameters parameters)
A hook that runs before the response is returned.EntityChanges
beforeSave(DomainCreateFlowCustomLogic.BeforeSaveParameters parameters)
A hook that runs before new entities are persisted, allowing them to be changed.void
beforeValidation()
A hook that runs before any validation.-
Methods inherited from class google.registry.flows.custom.BaseFlowCustomLogic
getEppInput, getFlowMetadata, getSessionMetadata
-
-
-
-
Constructor Detail
-
DomainCreateFlowCustomLogic
protected DomainCreateFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
-
Method Detail
-
beforeValidation
public void beforeValidation() throws EppException
A hook that runs before any validation. This is useful to e.g. add allowable extensions.- Throws:
EppException
-
afterValidation
public void afterValidation(DomainCreateFlowCustomLogic.AfterValidationParameters parameters) throws EppException
A hook that runs at the end of the validation step to perform additional validation.- Throws:
EppException
-
beforeSave
public EntityChanges beforeSave(DomainCreateFlowCustomLogic.BeforeSaveParameters parameters) throws EppException
A hook that runs before new entities are persisted, allowing them to be changed.It returns the actual entity changes that should be persisted to the database. It is important to be careful when changing the flow behavior for existing entities, because the core logic across many different flows expects the existence of these entities and many of the fields on them.
- Throws:
EppException
-
beforeResponse
public DomainCreateFlowCustomLogic.BeforeResponseReturnData beforeResponse(DomainCreateFlowCustomLogic.BeforeResponseParameters parameters) throws EppException
A hook that runs before the response is returned.This takes the
EppResponse.ResponseData
andEppResponse.ResponseExtension
s as input and returns them, potentially with modifications.- Throws:
EppException
-
-