Class SimpleCtsService

java.lang.Object
de.hybris.e2e.transport.cts.impl.SimpleCtsService
All Implemented Interfaces:
CtsService

public class SimpleCtsService extends Object implements CtsService
Simple wrapper over CTS+ export service
  • Constructor Details

    • SimpleCtsService

      public SimpleCtsService(String url, String wsName, String bindingName)
      Creates SimpleCtsService instance
      Parameters:
      url - - URL leading to export web service
      wsName - - basing on configuration of export web service binding in SOAMANAGER transaction this parameter represents service name and is case sensitive
      bindingName - - basing on configuration of export web service binding in SOAMANAGER transaction this parameter represents binding name and is case sensitive
  • Method Details

    • getDefaultRequest

      public CtsWsRequestResponse getDefaultRequest(String description, String refreshMode, CtsWsRequestFilter filter)
      Contacts export web service by sending configured @CtsWsRequestFilter and gets default request information like request id
      Specified by:
      getDefaultRequest in interface CtsService
      Parameters:
      description - - description of the request
      refreshMode - - refresh mode
      filter - - @CtsWsRequestFilter
      Returns:
    • uploadBytesIntoFile

      public CtsWsUploadResponse uploadBytesIntoFile(byte[] bytes, String fileName)
      Uploads file
      Specified by:
      uploadBytesIntoFile in interface CtsService
      Parameters:
      bytes - - file's bytes
      fileName - - file name
      Returns:
    • appendBytesIntoFile

      public CtsWsUploadResponse appendBytesIntoFile(byte[] bytes, String fileHandle)
      Appends file
      Specified by:
      appendBytesIntoFile in interface CtsService
      Parameters:
      bytes - - file's bytes
      fileHandle - - file handle
      Returns:
    • attachToRequest

      public CtsWsTraResponse attachToRequest(CtsWsTransportEntity entity, String requestId)
      Attaches uploaded file to given request
      Specified by:
      attachToRequest in interface CtsService
      Parameters:
      entity - - @CtsWsTransportEntity holding file meta-data
      requestId - - id of the request that file should be attached to
      Returns:
    • submitRequest

      public CtsWsTraResponse submitRequest(String requestId)
      Submits request
      Specified by:
      submitRequest in interface CtsService
      Parameters:
      requestId - - id of the request to be submitted
      Returns: