google-nomulus/java/google/registry/tools
mcilwain d536cef20f Make Registrar load methods return Optionals instead of Nullables
This makes the code more understandable from callsites, and also forces
users of this function to deal with the situation where the registrar
with a given client ID might not be present (it was previously silently
NPEing from some of the callsites).

This also adds a test helper method loadRegistrar(clientId) that retains
the old functionality for terseness in tests. It also fixes some instances
of using the load method with the wrong cachedness -- some uses in high-
traffic situations (WHOIS) that should have caching, but also low-traffic
reporting that don't benefit from caching so might as well always be
current.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=162990468
2017-08-01 16:58:59 -04:00
..
javascrap Remove FixDomainTransferDataCommand 2017-06-21 09:53:03 -04:00
params Add the ability to get_keyring_secret the public key from key pairs 2017-08-01 16:49:29 -04:00
resources Add documentation about OAuth2 client id configuration 2017-07-12 11:03:50 -04:00
server Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
soy Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
sql Add type to RegistrarData billing BigQuery view 2017-05-17 12:00:09 -04:00
AllocateDomainCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
AppEngineConnection.java Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
AppEngineConnectionFlags.java Add Client-side OAuth2 to HTTP connections 2017-02-17 12:17:53 -05:00
AuctionStatusCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
AuthModule.java Make "throws" clause use IOException 2017-05-17 12:17:40 -04:00
BigqueryCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BigqueryCommandUtilities.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BigqueryParameters.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BUILD Update UpdateDomainCommand to use FormattingLogger 2017-07-10 11:26:37 -04:00
CanonicalizeLabelsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CheckSnapshotCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
Command.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CommandUtilities.java Fix CommandUtilities to fail gracefully if stdin is unavailable 2017-02-06 16:45:23 -05:00
ConfirmingCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ConvertIdnCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateAnchorTenantCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateAuctionCreditsCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateContactCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateCreditBalanceCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateCreditCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateDomainCommand.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
CreateHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateLrpTokensCommand.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
CreateOrUpdateDomainCommand.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
CreateOrUpdatePremiumListCommand.java Read from bloom filter for premium pricing checks 2017-02-27 11:22:21 -05:00
CreateOrUpdateRegistrarCommand.java Allow partial update of billing account map 2017-06-21 09:48:19 -04:00
CreateOrUpdateReservedListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateOrUpdateTldCommand.java Remove deprecated singular DNS writer field and update tooling 2017-08-01 16:50:49 -04:00
CreatePremiumListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateRegistrarCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateRegistrarGroupsCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateReservedListCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateTldCommand.java Require that DNS writer be set on Registry entities 2017-05-03 10:38:49 -04:00
DefaultRequestFactoryModule.java Implement login/logout commands 2017-03-07 13:45:11 -05:00
DeleteCreditCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
DeleteDomainCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteEntityCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteHostCommand.java Add delete_host nomulus tool command 2017-05-03 11:08:02 -04:00
DeletePremiumListCommand.java Move premium list static helper methods into their own class 2017-02-27 11:30:45 -05:00
DeleteReservedListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteTldCommand.java Add nomulus tool command to delete a TLD 2017-04-05 10:10:38 -04:00
DomainApplicationInfoCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckClaimsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckFeeCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EncryptEscrowDepositCommand.java Make EncryptEscrowDepositCommand a RemoteApiCommand 2017-05-17 11:58:35 -04:00
EppToolCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
EscrowDepositEncryptor.java Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
ExecuteEppCommand.java Fix two Gauava 20 deprecations across the tools package 2017-02-02 16:54:28 -05:00
GenerateApplicationsReportCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenerateAuctionDataCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
GenerateDnsReportCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenerateEscrowDepositCommand.java Fix parameter problem in GenerateEscrowDepositCommand 2017-05-23 17:22:49 -04:00
GenerateLordnCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenerateZoneFilesCommand.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
GetApplicationCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetApplicationIdsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetAppliedLabelsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetClaimsListCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
GetContactCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetDomainCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetEppResourceCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetHistoryEntriesCommand.java Throw error in get_history_entries if the specified ID is invalid 2017-05-03 10:57:20 -04:00
GetHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetKeyringSecretCommand.java Add the ability to get_keyring_secret the public key from key pairs 2017-08-01 16:49:29 -04:00
GetLrpTokenCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetRegistrarCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
GetResourceByKeyCommand.java Add command description to get_resource_by_key command 2017-03-13 10:41:15 -04:00
GetRoutingMapCommand.java Add golden files for request component routing maps 2017-06-05 18:17:09 -04:00
GetSchemaCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetSchemaTreeCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetTldCommand.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
GhostrydeCommand.java Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
HashCertificateCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
HelpCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Injector.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListCreditsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListCursorsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListDomainsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListHostsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListObjectsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListPremiumListsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListRegistrarsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListReservedListsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListTldsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoadSnapshotCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
LoadTestCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
logging.properties mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
LoggingParameters.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoginCommand.java Fix nomulus tool NPEs on login/logout commands when printing usage 2017-03-13 10:35:23 -04:00
LogoutCommand.java Remove unused injected ClientScopeQualifier 2017-04-10 13:25:11 -04:00
MakeBillingTablesCommand.java Add Registrar Account Data view in BigQuery snapshot 2017-04-05 10:06:04 -04:00
MutatingCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
MutatingEppToolCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PendingEscrowCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PublishDetailReportCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
RegistrarActivityReportCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarContactCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
RegistryCli.java Refactor command running around auth exceptions 2017-03-07 13:59:40 -05:00
RegistryTool.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
RegistryToolComponent.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
RegistryToolEnvironment.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistryToolModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResaveEntitiesCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
ResaveEnvironmentEntitiesCommand.java Make re-save environment entities command use batching 2017-08-01 16:10:00 -04:00
ResaveEppResourceCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
RestoreCommitLogsCommand.java Create nomulus tool restore command 2017-06-05 18:17:09 -04:00
SendEscrowReportToIcannCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ServerSideCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
SetupOteCommand.java Remove deprecated singular DNS writer field and update tooling 2017-08-01 16:50:49 -04:00
UniformRapidSuspensionCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateApplicationStatusCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateClaimsNoticeCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
UpdateCursorsCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateDomainCommand.java Update UpdateDomainCommand to use FormattingLogger 2017-07-10 11:26:37 -04:00
UpdateKmsKeyringCommand.java Add the ability to get_keyring_secret the public key from key pairs 2017-08-01 16:49:29 -04:00
UpdatePremiumListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateRegistrarCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateReservedListCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
UpdateServerLocksCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateSmdCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
UpdateTldCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UploadClaimsListCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UserIdProvider.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ValidateEscrowDepositCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ValidateLoginCredentialsCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
VerifyOteCommand.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
WhoisQueryCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00