Class EcommerceDataController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    public class EcommerceDataController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • EcommerceDataController

        public EcommerceDataController()
    • Method Detail

      • handleUploadData

        @PostMapping("/api/v1/uploadData")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleUploadData​(@RequestParam
                                                                           org.springframework.web.multipart.MultipartFile file,
                                                                           @RequestParam
                                                                           UploadType command,
                                                                           @RequestParam(value="payload",required=false)
                                                                           java.lang.String payload,
                                                                           @RequestParam(value="id",required=false)
                                                                           java.lang.String id,
                                                                           javax.servlet.http.HttpServletResponse response)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleRemoveData

        @PostMapping("/api/v1/removeDocument")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleRemoveData​(@RequestParam("payload")
                                                                           java.lang.String payload,
                                                                           @RequestParam("command")
                                                                           UploadType command,
                                                                           @RequestParam(value="id",required=false)
                                                                           java.lang.String id,
                                                                           java.security.Principal principal)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleDownloadData

        @GetMapping(path="/api/v1/downloadData")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleDownloadData​(@RequestParam("pathName")
                                                                             java.lang.String pathName,
                                                                             @RequestParam(value="fileName",required=false)
                                                                             java.lang.String fileName,
                                                                             java.security.Principal principal,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleDownloadReports

        @PostMapping("/api/v1/downloadReportsData")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleDownloadReports​(@RequestParam("payload")
                                                                                java.lang.String payload,
                                                                                @RequestParam("command")
                                                                                ReportType command,
                                                                                javax.servlet.http.HttpServletResponse response)
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleUploadSkuData

        public org.springframework.http.ResponseEntity<?> handleUploadSkuData​(org.springframework.web.multipart.MultipartFile file,
                                                                              java.lang.String payload)
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleDownloadReportsData

        public org.springframework.http.ResponseEntity<?> handleDownloadReportsData​(java.lang.String payload,
                                                                                    javax.servlet.http.HttpServletResponse response)
                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • handleExportSearchData

        public org.springframework.http.ResponseEntity<?> handleExportSearchData​(java.lang.String payload)
                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • handleUploadSellerSkuData

        public org.springframework.http.ResponseEntity<?> handleUploadSellerSkuData​(org.springframework.web.multipart.MultipartFile file)
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleRemoveSellerDocument

        public org.springframework.http.ResponseEntity<?> handleRemoveSellerDocument​(java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                     java.lang.String sellerId)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleRemoveOrderAttachment

        public org.springframework.http.ResponseEntity<?> handleRemoveOrderAttachment​(java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                      java.lang.String orderId,
                                                                                      java.security.Principal principal)
      • handleRemoveMessageAttachment

        public org.springframework.http.ResponseEntity<?> handleRemoveMessageAttachment​(java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                        java.lang.String messageId,
                                                                                        java.security.Principal principal)
      • handleRemoveSkuDocument

        public org.springframework.http.ResponseEntity<?> handleRemoveSkuDocument​(java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                  java.lang.String skuId)
                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleUploadSellerSkuDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadSellerSkuDocumentData​(org.springframework.web.multipart.MultipartFile file,
                                                                                            java.lang.String payload,
                                                                                            java.lang.String id)
      • handleUploadSkuDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadSkuDocumentData​(org.springframework.web.multipart.MultipartFile file,
                                                                                      java.lang.String payload,
                                                                                      java.lang.String id)
      • handleUploadSellerDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadSellerDocumentData​(org.springframework.web.multipart.MultipartFile file,
                                                                                         java.lang.String payload,
                                                                                         java.lang.String id)
      • handleUploadOrderDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadOrderDocumentData​(org.springframework.web.multipart.MultipartFile file,
                                                                                        java.lang.String payload,
                                                                                        java.lang.String id)
      • handleUploadMessageDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadMessageDocumentData​(org.springframework.web.multipart.MultipartFile file,
                                                                                          java.lang.String payload,
                                                                                          java.lang.String id)
      • handleRemoveSellerSkuDocument

        public org.springframework.http.ResponseEntity<?> handleRemoveSellerSkuDocument​(java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                        java.lang.String sellerSkuId)
      • handleDownloadDocument

        private org.springframework.http.ResponseEntity<?> handleDownloadDocument​(java.lang.String pathName)
      • handleSeoMetaInfoUpload

        private org.springframework.http.ResponseEntity<?> handleSeoMetaInfoUpload​(org.springframework.web.multipart.MultipartFile file,
                                                                                   java.lang.String payload)
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleTranslationsUpload

        private org.springframework.http.ResponseEntity<?> handleTranslationsUpload​(org.springframework.web.multipart.MultipartFile file)
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • allowsToDownload

        private boolean allowsToDownload​(java.lang.String sharedUsers)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception