1st drop integration with BluePrintCatalogService
[ccsdk/apps.git] / ms / controllerblueprints / modules / service / src / main / java / org / onap / ccsdk / apps / controllerblueprints / service / rs / ModelTypeRest.java
diff --git a/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ModelTypeRest.java b/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ModelTypeRest.java
deleted file mode 100644 (file)
index 12ed0a5..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-package org.onap.ccsdk.apps.controllerblueprints.service.rs;\r
-\r
-import org.onap.ccsdk.apps.controllerblueprints.core.BluePrintException;\r
-import org.onap.ccsdk.apps.controllerblueprints.service.domain.ModelType;\r
-import org.onap.ccsdk.apps.controllerblueprints.service.handler.ModelTypeHandler;\r
-import org.springframework.http.MediaType;\r
-import org.springframework.web.bind.annotation.*;\r
-\r
-import java.util.List;\r
-\r
-/**\r
- * {@inheritDoc}\r
- */\r
-@Deprecated\r
-//@RestController\r
-//@RequestMapping(value = "/api/v1/model-type")\r
-public class ModelTypeRest {\r
-\r
-    private ModelTypeHandler modelTypeService;\r
-\r
-    /**\r
-     * This is a ModelTypeResourceImpl, used to save and get the model types stored in database\r
-     *\r
-     * @param modelTypeService Model Type Service\r
-     */\r
-    public ModelTypeRest(ModelTypeHandler modelTypeService) {\r
-        this.modelTypeService = modelTypeService;\r
-    }\r
-\r
-    @GetMapping(path = "/{name}", produces = MediaType.APPLICATION_JSON_VALUE)\r
-    public ModelType getModelTypeByName(@PathVariable(value = "name") String name) {\r
-        return modelTypeService.getModelTypeByName(name);\r
-    }\r
-\r
-    @GetMapping(path = "/search/{tags}", produces = MediaType.APPLICATION_JSON_VALUE)\r
-    public List<ModelType> searchModelTypes(@PathVariable(value = "tags") String tags) {\r
-        return modelTypeService.searchModelTypes(tags);\r
-    }\r
-\r
-    @GetMapping(path = "/by-definition/{definitionType}", produces = MediaType.APPLICATION_JSON_VALUE)\r
-    public @ResponseBody\r
-    List<ModelType> getModelTypeByDefinitionType(@PathVariable(value = "definitionType") String definitionType) {\r
-        return modelTypeService.getModelTypeByDefinitionType(definitionType);\r
-    }\r
-\r
-    @PostMapping(path = "", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)\r
-    public @ResponseBody\r
-    ModelType saveModelType(@RequestBody ModelType modelType) throws BluePrintException {\r
-        return modelTypeService.saveModel(modelType);\r
-    }\r
-\r
-    @DeleteMapping(path = "/{name}")\r
-    public void deleteModelTypeByName(@PathVariable(value = "name") String name) {\r
-        modelTypeService.deleteByModelName(name);\r
-    }\r
-}\r