Package google.registry.flows.custom
Class DomainUpdateFlowCustomLogic
java.lang.Object
google.registry.flows.custom.BaseFlowCustomLogic
google.registry.flows.custom.DomainUpdateFlowCustomLogic
A no-op base class for
DomainUpdateFlow
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.DomainUpdateFlowCustomLogic.AfterValidationParameters)
.static final record
A record to encapsulate parameters for a call tobeforeSave(google.registry.flows.custom.DomainUpdateFlowCustomLogic.BeforeSaveParameters)
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DomainUpdateFlowCustomLogic
(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 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
-
DomainUpdateFlowCustomLogic
protected DomainUpdateFlowCustomLogic(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(DomainUpdateFlowCustomLogic.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(DomainUpdateFlowCustomLogic.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
-