mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Remove commitAdditionalLogicChanges(), part 1
Now that the flows are flattened, the commitAdditionalLogicChanges() call, which used to come later in the flow to actually save the Datastore objects, is now happening right after the performAdditionalXXXLogic() call. So we can instead just do the saves in performAdditionalXXXLogic(), and get rid of the separate call. As a first step, this CL simply makes commitAdditionalLogicChanges() a private method that gets called internally by the extra logic manager. Later, we can move the saves into their proper position, affecting only the extra logic class itself. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137529991
This commit is contained in:
parent
bbd20ec71d
commit
78a36925f4
12 changed files with 43 additions and 93 deletions
|
@ -63,12 +63,7 @@ public interface RegistryExtraFlowLogic {
|
|||
int years,
|
||||
EppInput eppInput) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a create command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for a create command. */
|
||||
public void performAdditionalDomainCreateLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -77,12 +72,7 @@ public interface RegistryExtraFlowLogic {
|
|||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a delete command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for a delete command. */
|
||||
public void performAdditionalDomainDeleteLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -102,12 +92,7 @@ public interface RegistryExtraFlowLogic {
|
|||
int years,
|
||||
EppInput eppInput) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a renew command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for a renew command. */
|
||||
public void performAdditionalDomainRenewLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -116,12 +101,7 @@ public interface RegistryExtraFlowLogic {
|
|||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a restore command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for a restore command. */
|
||||
public void performAdditionalDomainRestoreLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -129,12 +109,7 @@ public interface RegistryExtraFlowLogic {
|
|||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for a transfer command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for a transfer command. */
|
||||
public void performAdditionalDomainTransferLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
|
@ -154,19 +129,11 @@ public interface RegistryExtraFlowLogic {
|
|||
DateTime asOfDate,
|
||||
EppInput eppInput) throws EppException;
|
||||
|
||||
/**
|
||||
* Performs additional tasks required for an update command.
|
||||
*
|
||||
* <p>Any changes should not be persisted to Datastore until commitAdditionalLogicChanges is
|
||||
* called.
|
||||
*/
|
||||
/** Performs additional tasks required for an update command. */
|
||||
public void performAdditionalDomainUpdateLogic(
|
||||
DomainResource domain,
|
||||
String clientId,
|
||||
DateTime asOfDate,
|
||||
EppInput eppInput,
|
||||
HistoryEntry historyEntry) throws EppException;
|
||||
|
||||
/** Commits any changes made as a result of a call to one of the performXXX methods. */
|
||||
public void commitAdditionalLogicChanges();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue