Class LicensingServiceController


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

      • LicensingServiceController

        public LicensingServiceController()
    • Method Detail

      • uploadLicense

        @RequestMapping(value="/license/upload/{userId}/{solutionId}/{revisionId}/{versionId}",
                        method=POST,
                        consumes="multipart/form-data")
        @ResponseBody
        public JsonResponse<String> uploadLicense​(@RequestParam("file")
                                                  org.springframework.web.multipart.MultipartFile file,
                                                  @PathVariable("userId")
                                                  String userId,
                                                  @PathVariable
                                                  String solutionId,
                                                  @PathVariable
                                                  String revisionId,
                                                  @PathVariable
                                                  String versionId,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)
                                           throws IOException
        Throws:
        IOException
      • createJsonFile

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

        @RequestMapping(value="/getAllLicenseProfile",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<org.acumos.cds.domain.MLPLicenseProfileTemplate>> getTemplates​(javax.servlet.http.HttpServletRequest request,
                                                                                                javax.servlet.http.HttpServletResponse response)
      • getTemplate

        @RequestMapping(value="/templateId/{templateId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPLicenseProfileTemplate> getTemplate​(javax.servlet.http.HttpServletRequest request,
                                                                                         @PathVariable
                                                                                         long templateId,
                                                                                         javax.servlet.http.HttpServletResponse response)
      • getDocurl

        @RequestMapping(value="/licenseProfileUrl",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<String> getDocurl​(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)
      • createTemplate

        @RequestMapping(value="/createLicenseProfileTemplate",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPLicenseProfileTemplate> createTemplate​(javax.servlet.http.HttpServletRequest request,
                                                                                            @RequestBody
                                                                                            JsonRequest<org.acumos.cds.domain.MLPLicenseProfileTemplate> templateJson,
                                                                                            javax.servlet.http.HttpServletResponse response)
      • updateTemplate

        @RequestMapping(value="/updateLicenseProfileTemplate",
                        method=PUT,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<String> updateTemplate​(javax.servlet.http.HttpServletRequest request,
                                                   @RequestBody
                                                   JsonRequest<org.acumos.cds.domain.MLPLicenseProfileTemplate> templateJson,
                                                   javax.servlet.http.HttpServletResponse response)