Skip to content

Commit

Permalink
add defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Feb 22, 2024
1 parent 1acba08 commit b8926dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public PidProvider createPidProvider(String providerId) {
String managedList = JvmSettings.PID_PROVIDER_MANAGED_LIST.lookupOptional(providerId).orElse("");
String excludedList = JvmSettings.PID_PROVIDER_EXCLUDED_LIST.lookupOptional(providerId).orElse("");

String baseUrl = JvmSettings.EZID_API_URL.lookup(providerId);
String baseUrl = JvmSettings.EZID_API_URL.lookupOptional(providerId).orElse("https://ezid.cdlib.org");
String username = JvmSettings.EZID_USERNAME.lookup(providerId);
String password = JvmSettings.EZID_PASSWORD.lookup(providerId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public PidProvider createPidProvider(String providerId) {
String managedList = JvmSettings.PID_PROVIDER_MANAGED_LIST.lookupOptional(providerId).orElse("");
String excludedList = JvmSettings.PID_PROVIDER_EXCLUDED_LIST.lookupOptional(providerId).orElse("");

int index = JvmSettings.HANDLENET_INDEX.lookup(Integer.class, providerId);
int index = JvmSettings.HANDLENET_INDEX.lookupOptional(Integer.class, providerId).orElse(300);
boolean independentHandleService = JvmSettings.HANDLENET_INDEPENDENT_SERVICE
.lookupOptional(Boolean.class, providerId).orElse(false);
String handleAuthHandle = JvmSettings.HANDLENET_AUTH_HANDLE.lookup(providerId);
Expand Down

0 comments on commit b8926dc

Please sign in to comment.