mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Flatten the domain and application create flows
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136601151
This commit is contained in:
parent
43821f650e
commit
475203532e
31 changed files with 1151 additions and 1410 deletions
|
@ -185,7 +185,13 @@ public class FlowModule {
|
|||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Optional<AuthInfo> provideAuthInfo(ResourceCommand resourceCommand) {
|
||||
static AuthInfo provideAuthInfo(ResourceCommand resourceCommand) {
|
||||
return ((SingleResourceCommand) resourceCommand).getAuthInfo();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Optional<AuthInfo> provideOptionalAuthInfo(ResourceCommand resourceCommand) {
|
||||
return Optional.fromNullable(((SingleResourceCommand) resourceCommand).getAuthInfo());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue