Package google.registry.flows.custom
Class DomainDeleteFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
google.registry.flows.custom.DomainDeleteFlowCustomLogic
A no-op base class for
DomainDeleteFlow
custom logic.
Extend this class and override the hook(s) to perform custom logic.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
A record to encapsulate parameters for a call toafterValidation(google.registry.flows.custom.DomainDeleteFlowCustomLogic.AfterValidationParameters)
.static final record
A record to encapsulate parameters for a call tobeforeResponse(google.registry.flows.custom.DomainDeleteFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for the return values from a call tobeforeResponse(google.registry.flows.custom.DomainDeleteFlowCustomLogic.BeforeResponseParameters)
.static final record
A record to encapsulate parameters for a call tobeforeSave(google.registry.flows.custom.DomainDeleteFlowCustomLogic.BeforeSaveParameters)
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DomainDeleteFlowCustomLogic
(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
A hook that runs at the end of the validation step to perform additional validation.A hook that runs before the response is returned.A hook that runs before new entities are persisted, allowing them to be changed.void
A hook that runs before any validation.Methods inherited from class google.registry.flows.custom.BaseFlowCustomLogic
getEppInput, getFlowMetadata, getSessionMetadata
-
Constructor Details
-
DomainDeleteFlowCustomLogic
protected DomainDeleteFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata)
-
-
Method Details
-
beforeValidation
A hook that runs before any validation. This is useful to e.g. add allowable extensions.- Throws:
EppException
-
afterValidation
public void afterValidation(DomainDeleteFlowCustomLogic.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(DomainDeleteFlowCustomLogic.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 DomainDeleteFlowCustomLogic.BeforeResponseReturnData beforeResponse(DomainDeleteFlowCustomLogic.BeforeResponseParameters parameters) throws EppException A hook that runs before the response is returned.This takes the
Result.Code
andEppResponse.ResponseExtension
s as input and returns them, potentially with modifications.- Throws:
EppException
-