Class ProductfileControllerImpl

java.lang.Object
de.dlr.proseo.storagemgr.rest.ProductfileControllerImpl
All Implemented Interfaces:
ProductfileController

@Component public class ProductfileControllerImpl extends Object implements ProductfileController
Spring MVC controller for the prosEO Storage Manager; implements the services required to manage product files
Author:
Ernst Melchinger, Denys Chaykovskiy
  • Constructor Details

    • ProductfileControllerImpl

      public ProductfileControllerImpl()
  • Method Details

    • getRestFileInfoByPathInfo

      public org.springframework.http.ResponseEntity<RestFileInfo> getRestFileInfoByPathInfo(String pathInfo)
      Copy source file named pathInfo to file cache used by processors. The local file name is: posixWorkerMountPoint + relative source file path
      Specified by:
      getRestFileInfoByPathInfo in interface ProductfileController
      Parameters:
      pathInfo - Source file name
      Returns:
      Local file name
    • updateProductfiles

      public org.springframework.http.ResponseEntity<RestFileInfo> updateProductfiles(String pathInfo, Long productId, Long fileSize)
      Copy local file named pathInfo to storage manager. The target file path is: default mount point + productId + relative source file path
      Specified by:
      updateProductfiles in interface ProductfileController
      Parameters:
      pathInfo - Source file name
      productId - Product id
      fileSize - File Size
      Returns:
      RestFileInfo Rest File Info
      Throws:
      Exception - Internal Server Error