Interface DataHubExtensionUploadService

All Known Implementing Classes:
DefaultDataHubExtensionUploadService

public interface DataHubExtensionUploadService
A service for deploying DataHub extensions to the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    uploadExtension(com.hybris.datahub.client.extension.ExtensionSource extSrc)
    Uploads a DataHub extension to the DataHub server.
  • Method Details

    • uploadExtension

      void uploadExtension(com.hybris.datahub.client.extension.ExtensionSource extSrc) throws IOException
      Uploads a DataHub extension to the DataHub server.
      Parameters:
      extSrc - a source of the extension definition.
      Throws:
      IOException - when failed to read extension definition from the source
      com.hybris.datahub.client.DataHubBlockedException - if extension cannot be uploaded now due to DataHub performing some uninterruptable operation. If this exception received, the extension deployment should be attempted later.
      com.hybris.datahub.client.extension.InvalidDataHubExtensionException - if the extension defined in the source is invalid or it's not in XML format or the XML is malformed.