mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add create timestamp as field on AllocationToken entity
This definitely seems like a useful thing to have around. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181401799
This commit is contained in:
parent
5f62947691
commit
ccbe958063
5 changed files with 56 additions and 3 deletions
|
@ -202,7 +202,8 @@ public abstract class EppResource extends BackupGroupRoot implements Buildable {
|
|||
* normal EPP flows.
|
||||
*/
|
||||
public B setCreationTime(DateTime creationTime) {
|
||||
checkState(getInstance().creationTime.timestamp == null,
|
||||
checkState(
|
||||
getInstance().creationTime.getTimestamp() == null,
|
||||
"creationTime can only be set once for EppResource.");
|
||||
getInstance().creationTime = CreateAutoTimestamp.create(creationTime);
|
||||
return thisCastToDerived();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue