Package de.dlr.proseo.storagemgr.rest
Class ProductfileControllerImpl
java.lang.Object
de.dlr.proseo.storagemgr.rest.ProductfileControllerImpl
- All Implemented Interfaces:
ProductfileController
Spring MVC controller for the prosEO Storage Manager; implements the services
required to manage product files
- Author:
- Ernst Melchinger, Denys Chaykovskiy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<RestFileInfo> getRestFileInfoByPathInfo(String pathInfo) Copy source file named pathInfo to file cache used by processors.org.springframework.http.ResponseEntity<RestFileInfo> updateProductfiles(String pathInfo, Long productId, Long fileSize) Copy local file named pathInfo to storage manager.
-
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:
getRestFileInfoByPathInfoin interfaceProductfileController- 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:
updateProductfilesin interfaceProductfileController- Parameters:
pathInfo- Source file nameproductId- Product idfileSize- File Size- Returns:
- RestFileInfo Rest File Info
- Throws:
Exception- Internal Server Error
-