Class EcommerceDataController

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      org.springframework.http.ResponseEntity<?> handleDownloadData​(java.lang.String pathName, java.lang.String fileName, javax.servlet.http.HttpServletResponse response)  
      org.springframework.http.ResponseEntity<?> handleDownloadData​(java.lang.String payload, javax.servlet.http.HttpServletResponse response)  
      org.springframework.http.ResponseEntity<?> handleDownloadReportsData​(java.lang.String payload, javax.servlet.http.HttpServletResponse response)  
      org.springframework.http.ResponseEntity<?> handleRemoveImage​(java.lang.String payload, UploadType command, java.lang.String sellerSkuId, java.lang.String sellerId)  
      org.springframework.http.ResponseEntity<?> handleRemoveSellerDocument​(java.util.Map<java.lang.String,​java.lang.Object> payload, java.lang.String sellerId)  
      org.springframework.http.ResponseEntity<?> handleRemoveSellerSkuDocument​(java.util.Map<java.lang.String,​java.lang.Object> payload, java.lang.String sellerSkuId)  
      org.springframework.http.ResponseEntity<?> handleStripeWebhooks​(java.lang.String payload, javax.servlet.http.HttpServletResponse response)  
      org.springframework.http.ResponseEntity<?> handleUploadData​(org.springframework.web.multipart.MultipartFile file, UploadType command, java.lang.String payload, java.lang.String id, javax.servlet.http.HttpServletResponse response)  
      org.springframework.http.ResponseEntity<?> handleUploadSellerDocumentData​(org.springframework.web.multipart.MultipartFile file, java.lang.String payload, java.lang.String id)  
      org.springframework.http.ResponseEntity<?> handleUploadSellerSkuData​(org.springframework.web.multipart.MultipartFile file)  
      org.springframework.http.ResponseEntity<?> handleUploadSellerSkuDocumentData​(org.springframework.web.multipart.MultipartFile file, java.lang.String payload, java.lang.String id)  
      org.springframework.http.ResponseEntity<?> handleUploadSkuData​(org.springframework.web.multipart.MultipartFile file, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • handleRemoveImage

        @PostMapping("/api/v1/removeDocument")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleRemoveImage​(@RequestParam("payload")
                                                                            java.lang.String payload,
                                                                            @RequestParam("command")
                                                                            UploadType command,
                                                                            @RequestParam(value="sellerSkuId",required=false)
                                                                            java.lang.String sellerSkuId,
                                                                            @RequestParam(value="sellerId",required=false)
                                                                            java.lang.String sellerId)
                                                                     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,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleDownloadData

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

        @PostMapping("/api/v1/stripe")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleStripeWebhooks​(@RequestBody
                                                                               java.lang.String payload,
                                                                               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,
                                                                              javax.servlet.http.HttpServletResponse response)
                                                                       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
      • 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
      • handleUploadSellerSkuDocumentData

        public org.springframework.http.ResponseEntity<?> handleUploadSellerSkuDocumentData​(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)
                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleRemoveSellerSkuDocument

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

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