public boolean checkAdminCredential(URI remoteUrl, String username, String password) { try { return applicationLinkService.isAdminUserInRemoteApplication(remoteUrl, username, password); } catch (ResponseException e) { return false; } } }
boolean isAdminUser; try { isAdminUser = applicationLinkService.isAdminUserInRemoteApplication(linkDetails.getRemoteUrl(), linkDetails.getUsername(), linkDetails.getPassword()); } catch (ResponseException e) {
if (upgradeApplicationLinkRequestEntity.isCreateTwoWayLink()) { try { if (!applicationLinkService.isAdminUserInRemoteApplication( oldApplicationLink.getRpcUrl(), upgradeApplicationLinkRequestEntity.getUsername(),