test_class.file: herd-code/herd-tools/herd-uploader/src/test/java/org/finra/herd/tools/uploader/UploaderWebClientTest.java
test_class.identifier: UploaderWebClientTest
test_class.superclass: extends AbstractUploaderTest
test_case.body: @Test
      public void testGetBusinessObjectDataVersions() throws Exception
      {
          testGetBusinessObjectDataVersions(null, null, null, false);
      }
test_case.class_method_signature: UploaderWebClientTest.testGetBusinessObjectDataVersions()
test_case.full_signature: @Test public void testGetBusinessObjectDataVersions()
test_case.identifier: testGetBusinessObjectDataVersions
test_case.invocations: testGetBusinessObjectDataVersions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectDataVersions()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(UploaderWebClient.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(UploaderWebClient.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: jsonHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JsonHelper jsonHelper;
focal_class.type: JsonHelper
focal_class.var_name: jsonHelper
focal_class.file: herd-code/herd-tools/herd-uploader/src/main/java/org/finra/herd/tools/uploader/UploaderWebClient.java
focal_class.identifier: UploaderWebClient
focal_class.class_method_signature: UploaderWebClient.getBusinessObjectDataUploadCredential(DataBridgeBaseManifestDto manifest, String storageName,
          Integer businessObjectDataVersion, Boolean createNewVersion)
focal_class.full_signature: public BusinessObjectDataUploadCredential getBusinessObjectDataUploadCredential(DataBridgeBaseManifestDto manifest, String storageName,
          Integer businessObjectDataVersion, Boolean createNewVersion)
focal_class.identifier: getBusinessObjectDataUploadCredential
focal_class.modifiers: public
focal_class.parameters: (DataBridgeBaseManifestDto manifest, String storageName,
          Integer businessObjectDataVersion, Boolean createNewVersion)
focal_class.return: BusinessObjectDataUploadCredential
focal_class.signature: BusinessObjectDataUploadCredential getBusinessObjectDataUploadCredential(DataBridgeBaseManifestDto manifest, String storageName,
          Integer businessObjectDataVersion, Boolean createNewVersion)
focal_class.class_method_signature: UploaderWebClient.getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
focal_class.full_signature: public BusinessObjectDataVersions getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
focal_class.identifier: getBusinessObjectDataVersions
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataKey businessObjectDataKey)
focal_class.return: BusinessObjectDataVersions
focal_class.signature: BusinessObjectDataVersions getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
focal_class.class_method_signature: UploaderWebClient.updateBusinessObjectDataStatusIgnoreException(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
focal_class.full_signature: public void updateBusinessObjectDataStatusIgnoreException(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
focal_class.identifier: updateBusinessObjectDataStatusIgnoreException
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
focal_class.return: void
focal_class.signature: void updateBusinessObjectDataStatusIgnoreException(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
focal_class.class_method_signature: UploaderWebClient.getBusinessObjectDataVersions(CloseableHttpResponse httpResponse)
focal_class.full_signature: protected BusinessObjectDataVersions getBusinessObjectDataVersions(CloseableHttpResponse httpResponse)
focal_class.identifier: getBusinessObjectDataVersions
focal_class.modifiers: protected
focal_class.parameters: (CloseableHttpResponse httpResponse)
focal_class.return: BusinessObjectDataVersions
focal_class.signature: BusinessObjectDataVersions getBusinessObjectDataVersions(CloseableHttpResponse httpResponse)
focal_class.class_method_signature: UploaderWebClient.getBusinessObjectDataUploadCredential(CloseableHttpResponse response)
focal_class.full_signature: private BusinessObjectDataUploadCredential getBusinessObjectDataUploadCredential(CloseableHttpResponse response)
focal_class.identifier: getBusinessObjectDataUploadCredential
focal_class.modifiers: private
focal_class.parameters: (CloseableHttpResponse response)
focal_class.return: BusinessObjectDataUploadCredential
focal_class.signature: BusinessObjectDataUploadCredential getBusinessObjectDataUploadCredential(CloseableHttpResponse response)
focal_class.superclass: extends DataBridgeWebClient
focal_method.body: public BusinessObjectDataVersions getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
          throws URISyntaxException, IOException, JAXBException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
      {
          LOGGER.info("Retrieving business object data versions from the registration server...");
  
          BusinessObjectDataVersions businessObjectDataVersions;
          try (CloseableHttpClient client = httpClientHelper
              .createHttpClient(regServerAccessParamsDto.isTrustSelfSignedCertificate(), regServerAccessParamsDto.isDisableHostnameVerification()))
          {
              StringBuilder uriPathBuilder = new StringBuilder(300);
              uriPathBuilder.append(HERD_APP_REST_URI_PREFIX);
              uriPathBuilder.append("/businessObjectData/namespaces/").append(businessObjectDataKey.getNamespace());
              uriPathBuilder.append("/businessObjectDefinitionNames/").append(businessObjectDataKey.getBusinessObjectDefinitionName());
              uriPathBuilder.append("/businessObjectFormatUsages/").append(businessObjectDataKey.getBusinessObjectFormatUsage());
              uriPathBuilder.append("/businessObjectFormatFileTypes/").append(businessObjectDataKey.getBusinessObjectFormatFileType());
              uriPathBuilder.append("/versions");
  
              URIBuilder uriBuilder = new URIBuilder().setScheme(getUriScheme()).setHost(regServerAccessParamsDto.getRegServerHost())
                  .setPort(regServerAccessParamsDto.getRegServerPort()).setPath(uriPathBuilder.toString())
                  .setParameter("partitionValue", businessObjectDataKey.getPartitionValue());
  
              if (businessObjectDataKey.getSubPartitionValues() != null)
              {
                  uriBuilder.setParameter("subPartitionValues", herdStringHelper.join(businessObjectDataKey.getSubPartitionValues(), "|", "\\"));
              }
  
              if (businessObjectDataKey.getBusinessObjectFormatVersion() != null)
              {
                  uriBuilder.setParameter("businessObjectFormatVersion", businessObjectDataKey.getBusinessObjectFormatVersion().toString());
              }
  
              if (businessObjectDataKey.getBusinessObjectDataVersion() != null)
              {
                  uriBuilder.setParameter("businessObjectDataVersion", businessObjectDataKey.getBusinessObjectDataVersion().toString());
              }
  
              HttpGet httpGet = new HttpGet(uriBuilder.build());
              httpGet.addHeader("Accepts", DEFAULT_ACCEPT);
  
              // If SSL is enabled, set the client authentication header.
              if (regServerAccessParamsDto.isUseSsl())
              {
                  httpGet.addHeader(getAuthorizationHeader());
              }
  
              LOGGER.info(String.format("    HTTP GET URI: %s", httpGet.getURI().toString()));
  
              businessObjectDataVersions = getBusinessObjectDataVersions(httpClientOperations.execute(client, httpGet));
          }
  
          LOGGER.info(String.format("Successfully retrieved %d already registered version(s) for the business object data. businessObjectDataKey=%s",
              businessObjectDataVersions.getBusinessObjectDataVersions().size(), jsonHelper.objectToJson(businessObjectDataKey)));
  
          return businessObjectDataVersions;
      }
focal_method.class_method_signature: UploaderWebClient.getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
focal_method.full_signature: public BusinessObjectDataVersions getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)
focal_method.identifier: getBusinessObjectDataVersions
focal_method.invocations: info createHttpClient isTrustSelfSignedCertificate isDisableHostnameVerification append append append getNamespace append append getBusinessObjectDefinitionName append append getBusinessObjectFormatUsage append append getBusinessObjectFormatFileType append setParameter setPath setPort setHost setScheme getUriScheme getRegServerHost getRegServerPort toString getPartitionValue getSubPartitionValues setParameter join getSubPartitionValues getBusinessObjectFormatVersion setParameter toString getBusinessObjectFormatVersion getBusinessObjectDataVersion setParameter toString getBusinessObjectDataVersion build addHeader isUseSsl addHeader getAuthorizationHeader info format toString getURI getBusinessObjectDataVersions execute info format size getBusinessObjectDataVersions objectToJson
focal_method.modifiers: public
focal_method.parameters: (BusinessObjectDataKey businessObjectDataKey)
focal_method.return: BusinessObjectDataVersions
focal_method.signature: BusinessObjectDataVersions getBusinessObjectDataVersions(BusinessObjectDataKey businessObjectDataKey)