mirror of
https://github.com/google/nomulus
synced 2026-04-05 09:09:38 +00:00
Add extra logic for all relevant flows
This CL enhances various domain flows (check, create, delete, renew, restore, transfer, update) so that they invoke the appropriate methods on the object implementing the TLD's RegistryExtraFlowLogic (if any). TldSpecificLogicProxy is also updated to invoke RegistryExtraFlowLogic proxy (if any) to fetch the appropriate price. The tests use a made-up extra flow logic object which can be attached to a test TLD to make sure that the proper routines are being invoked. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132486734
This commit is contained in:
@@ -36,7 +36,7 @@ public abstract class ResourceSyncDeleteFlow
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
protected final R createOrMutateResource() {
|
||||
protected final R createOrMutateResource() throws EppException {
|
||||
B builder = (B) prepareDeletedResourceAsBuilder(existingResource, now);
|
||||
setDeleteProperties(builder);
|
||||
return builder.build();
|
||||
@@ -52,7 +52,7 @@ public abstract class ResourceSyncDeleteFlow
|
||||
|
||||
/** Set any resource-specific properties before deleting. */
|
||||
@SuppressWarnings("unused")
|
||||
protected void setDeleteProperties(B builder) {}
|
||||
protected void setDeleteProperties(B builder) throws EppException {}
|
||||
|
||||
/** Modify any other resources that need to be informed of this delete. */
|
||||
protected void modifySyncDeleteRelatedResources() {}
|
||||
|
||||
Reference in New Issue
Block a user