Class CatalogServiceController


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

      • CatalogServiceController

        public CatalogServiceController()
    • Method Detail

      • getCatalogs

        @RequestMapping(value="/catalogs",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.transport.RestPageResponse<MLCatalog>> getCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                              @RequestHeader("Authorization")
                                                                                              String authorization,
                                                                                              @RequestBody
                                                                                              JsonRequest<org.acumos.cds.transport.RestPageRequest> pageRequestJson,
                                                                                              javax.servlet.http.HttpServletResponse response)
      • getPublicCatalogs

        @RequestMapping(value="/catalogs/public",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.transport.RestPageResponse<MLCatalog>> getPublicCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                                    @RequestBody
                                                                                                    JsonRequest<org.acumos.cds.transport.RestPageRequest> pageRequestJson,
                                                                                                    javax.servlet.http.HttpServletResponse response)
      • searchCatalogs

        @RequestMapping(value="/catalogs/search",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.transport.RestPageResponse<MLCatalog>> searchCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                                 @RequestBody
                                                                                                 JsonRequest<CatalogSearchRequest> searchRequestJson,
                                                                                                 javax.servlet.http.HttpServletResponse response)
      • getCatalog

        @RequestMapping(value="/catalog/{catalogId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPCatalog> getCatalog​(javax.servlet.http.HttpServletRequest request,
                                                                         @PathVariable
                                                                         String catalogId,
                                                                         javax.servlet.http.HttpServletResponse response)
      • createCatalog

        @RequestMapping(value="/catalog",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPCatalog> createCatalog​(javax.servlet.http.HttpServletRequest request,
                                                                            @RequestBody
                                                                            JsonRequest<org.acumos.cds.domain.MLPCatalog> catalogJson,
                                                                            javax.servlet.http.HttpServletResponse response)
      • updateCatalog

        @RequestMapping(value="/catalog",
                        method=PUT,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> updateCatalog​(javax.servlet.http.HttpServletRequest request,
                                                  @RequestBody
                                                  JsonRequest<org.acumos.cds.domain.MLPCatalog> catalogJson,
                                                  javax.servlet.http.HttpServletResponse response)
      • deleteCatalog

        @RequestMapping(value="/catalog/{catalogId}",
                        method=DELETE,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> deleteCatalog​(javax.servlet.http.HttpServletRequest request,
                                                  @PathVariable
                                                  String catalogId,
                                                  javax.servlet.http.HttpServletResponse response)
      • getPeerAccessCatalogIds

        @RequestMapping(value="/catalog/peer/{peerId}/access",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<String>> getPeerAccessCatalogIds​(javax.servlet.http.HttpServletRequest request,
                                                                  @PathVariable
                                                                  String peerId,
                                                                  javax.servlet.http.HttpServletResponse response)
      • addPeerCatalogAccess

        @RequestMapping(value="/catalog/{catalogId}/addPeers",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> addPeerCatalogAccess​(javax.servlet.http.HttpServletRequest request,
                                                         @PathVariable
                                                         String catalogId,
                                                         @RequestBody
                                                         JsonRequest<List<String>> peerId,
                                                         javax.servlet.http.HttpServletResponse response)
      • dropPeerCatalogAccess

        @RequestMapping(value="/catalog/{catalogId}/dropPeer",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> dropPeerCatalogAccess​(javax.servlet.http.HttpServletRequest request,
                                                          @PathVariable
                                                          String catalogId,
                                                          @RequestBody
                                                          JsonRequest<List<String>> peerId,
                                                          javax.servlet.http.HttpServletResponse response)
      • getCatalogSolutionCount

        @RequestMapping(value="/catalog/{catalogId}/solution/count",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Long> getCatalogSolutionCount​(javax.servlet.http.HttpServletRequest request,
                                                          @PathVariable
                                                          String catalogId,
                                                          javax.servlet.http.HttpServletResponse response)
      • getSolutionsInCatalogs

        @RequestMapping(value="/catalogs/solutions",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.transport.RestPageResponse<org.acumos.cds.domain.MLPSolution>> getSolutionsInCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                                                                 @RequestParam(name="ctlg",required=true)
                                                                                                                                 String[] catalogIds,
                                                                                                                                 @RequestBody
                                                                                                                                 JsonRequest<org.acumos.cds.transport.RestPageRequest> pageRequestJson,
                                                                                                                                 javax.servlet.http.HttpServletResponse response)
      • getSolutionCatalogs

        @RequestMapping(value="/catalog/solution/{solutionId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<org.acumos.cds.domain.MLPCatalog>> getSolutionCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                        @PathVariable
                                                                                        String solutionId,
                                                                                        javax.servlet.http.HttpServletResponse response)
      • addSolutionToCatalog

        @RequestMapping(value="/catalog/{catalogId}/solution/{solutionId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> addSolutionToCatalog​(javax.servlet.http.HttpServletRequest request,
                                                         @PathVariable
                                                         String solutionId,
                                                         @PathVariable
                                                         String catalogId,
                                                         javax.servlet.http.HttpServletResponse response)
      • dropSolutionFromCatalog

        @RequestMapping(value="/catalog/{catalogId}/solution/{solutionId}",
                        method=DELETE,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> dropSolutionFromCatalog​(javax.servlet.http.HttpServletRequest request,
                                                            @PathVariable
                                                            String solutionId,
                                                            @PathVariable
                                                            String catalogId,
                                                            javax.servlet.http.HttpServletResponse response)
      • getUserFavoriteCatalogs

        @RequestMapping(value="/catalog/user/{userId}/favorite",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<String>> getUserFavoriteCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                  @PathVariable
                                                                  String userId,
                                                                  javax.servlet.http.HttpServletResponse response)
      • addUserFavoriteCatalog

        @RequestMapping(value="/catalog/{catalogId}/user/{userId}/favorite",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> addUserFavoriteCatalog​(javax.servlet.http.HttpServletRequest request,
                                                           @PathVariable
                                                           String catalogId,
                                                           @PathVariable
                                                           String userId,
                                                           javax.servlet.http.HttpServletResponse response)
      • dropUserFavoriteCatalog

        @RequestMapping(value="/catalog/{catalogId}/user/{userId}/favorite",
                        method=DELETE,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<Object> dropUserFavoriteCatalog​(javax.servlet.http.HttpServletRequest request,
                                                            @PathVariable
                                                            String catalogId,
                                                            @PathVariable
                                                            String userId,
                                                            javax.servlet.http.HttpServletResponse response)
      • getCatalogAccessPeers

        @RequestMapping(value="/peer/catalog/{catalogId}/access",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<org.acumos.cds.domain.MLPPeer>> getCatalogAccessPeers​(javax.servlet.http.HttpServletRequest request,
                                                                                       @PathVariable
                                                                                       String catalogId,
                                                                                       javax.servlet.http.HttpServletResponse response)