mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Inject two fields into flows.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125453450
This commit is contained in:
parent
c9a16f7f11
commit
317e92d88c
3 changed files with 9 additions and 10 deletions
|
@ -20,6 +20,7 @@ import static google.registry.model.ofy.ObjectifyService.ofy;
|
|||
import com.googlecode.objectify.Key;
|
||||
|
||||
import google.registry.flows.EppException.AuthorizationErrorException;
|
||||
import google.registry.flows.FlowModule.InputXml;
|
||||
import google.registry.model.EppResource;
|
||||
import google.registry.model.domain.Period;
|
||||
import google.registry.model.domain.metadata.MetadataExtension;
|
||||
|
@ -28,6 +29,8 @@ import google.registry.model.eppoutput.EppOutput;
|
|||
import google.registry.model.reporting.HistoryEntry;
|
||||
import google.registry.util.TypeUtils.TypeInstantiator;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* An EPP flow that creates or mutates a single stored resource.
|
||||
*
|
||||
|
@ -40,6 +43,9 @@ public abstract class ResourceCreateOrMutateFlow
|
|||
<R extends EppResource, C extends SingleResourceCommand> extends SingleResourceFlow<R, C>
|
||||
implements TransactionalFlow {
|
||||
|
||||
@Inject EppRequestSource eppRequestSource;
|
||||
@Inject @InputXml byte[] inputXmlBytes;
|
||||
|
||||
String repoId;
|
||||
protected R newResource;
|
||||
protected HistoryEntry historyEntry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue