mirror of
https://github.com/google/nomulus.git
synced 2025-07-29 22:16:29 +02:00
Add extra flow logic hook for application create
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137396935
This commit is contained in:
parent
bc0116f3a0
commit
60cb1b4dfb
5 changed files with 113 additions and 0 deletions
|
@ -99,6 +99,26 @@ public class TestExtraLogicManager implements RegistryExtraFlowLogic {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for an application create command. Any changes should not be
|
||||
* persisted to Datastore until commitAdditionalLogicChanges is called.
|
||||
*/
|
||||
@Override
|
||||
public void performAdditionalApplicationCreateLogic(
|
||||
DomainApplication application,
|
||||
String clientId,
|
||||
DateTime asOfDate,
|
||||
int years,
|
||||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException {
|
||||
FlagsCreateCommandExtension flags =
|
||||
eppInput.getSingleExtension(FlagsCreateCommandExtension.class);
|
||||
if (flags == null) {
|
||||
return;
|
||||
}
|
||||
messageToThrow = Joiner.on(',').join(flags.getFlags());
|
||||
}
|
||||
|
||||
/** Computes the expected create cost, for use in fee challenges and the like. */
|
||||
@Override
|
||||
public BaseFee getCreateFeeOrCredit(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue