1
0
mirror of https://github.com/google/nomulus synced 2026-01-09 23:47:49 +00: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:
cgoldfeder
2016-10-19 09:00:30 -07:00
committed by Ben McIlwain
parent 43821f650e
commit 475203532e
31 changed files with 1151 additions and 1410 deletions

View File

@@ -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());
}