Class PushAndPullSolutionServiceController


  • @Controller
    @RequestMapping("/")
    public class PushAndPullSolutionServiceController
    extends AbstractController
    • Constructor Detail

      • PushAndPullSolutionServiceController

        public PushAndPullSolutionServiceController()
    • Method Detail

      • downloadSolutionArtifact

        @RequestMapping(value="/downloads/{solutionId}",
                        method=GET,
                        produces="application/octet-stream")
        @ResponseBody
        public void downloadSolutionArtifact​(@PathVariable("solutionId")
                                             String solutionId,
                                             @RequestParam("artifactId")
                                             String artifactId,
                                             @RequestParam("revisionId")
                                             String revisionId,
                                             @RequestParam("userId")
                                             String userId,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
        Sends Dockerized Image Tar ball file of the Artifact for the Solution.
        Parameters:
        solutionId - solution ID
        artifactId - artifact ID
        revisionId - revision ID
        userId - user ID
        request - HttpServletRequest
        response - HttpServletResponse
      • uploadModel

        @RequestMapping(value="/model/upload/{userId}",
                        method=POST,
                        consumes="multipart/form-data")
        @ResponseBody
        public JsonResponse<Boolean> uploadModel​(@RequestParam("file")
                                                 org.springframework.web.multipart.MultipartFile file,
                                                 @PathVariable("userId")
                                                 String userId,
                                                 @RequestParam("licUploadFlag")
                                                 boolean licUploadFlag,
                                                 javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response)
                                          throws IOException
        Upload the model zip file to the temporary folder on server.
        Parameters:
        file - zip file
        userId - user ID
        request - HttpServletRequest
        response - HttpServletResponse
        Throws:
        IOException
      • downloadSolRevDocument

        @RequestMapping(value="/solution/revision/document/{documentId}",
                        method=GET,
                        produces="application/octet-stream")
        @ResponseBody
        public void downloadSolRevDocument​(@PathVariable
                                           String documentId,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response)
        Sends document file of the revision for the Solution.
        Parameters:
        documentId - document ID
        request - HttpServletRequest
        response - HttpServletResponse
      • createJsonFile

        @RequestMapping(value="/writeJsonToFile/userId/{userId}",
                        method=POST)
        @ResponseBody
        public JsonResponse<Boolean> createJsonFile​(javax.servlet.http.HttpServletRequest request,
                                                    @PathVariable("userId")
                                                    String userId,
                                                    @RequestBody
                                                    String json,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws IOException
        Throws:
        IOException
      • deleteLicenseFile

        @RequestMapping(value="/deleteLicenseFile/{userId}",
                        method=POST)
        @ResponseBody
        public JsonResponse<String> deleteLicenseFile​(javax.servlet.http.HttpServletRequest request,
                                                      @PathVariable("userId")
                                                      String userId,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws IOException
        Throws:
        IOException
      • uploadProtoFile

        @RequestMapping(value="/proto/upload",
                        method=POST,
                        consumes="multipart/form-data")
        @ResponseBody
        public JsonResponse<Boolean> uploadProtoFile​(@RequestParam("file")
                                                     org.springframework.web.multipart.MultipartFile file,
                                                     @RequestHeader("Authorization")
                                                     String authorization,
                                                     @RequestParam("protoUploadFlag")
                                                     boolean protoUploadFlag,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws IOException
        Throws:
        IOException
      • deleteProtoFile

        @RequestMapping(value="/deleteProtoFile",
                        method=POST)
        @ResponseBody
        public JsonResponse<String> deleteProtoFile​(javax.servlet.http.HttpServletRequest request,
                                                    @RequestHeader("Authorization")
                                                    String authorization,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws IOException
        Throws:
        IOException