Add blueprint runtime validator
[ccsdk/apps.git] / ms / controllerblueprints / modules / service / src / main / java / org / onap / ccsdk / apps / controllerblueprints / service / validator / ResourceDictionaryValidator.java
diff --git a/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/validator/ResourceDictionaryValidator.java b/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/validator/ResourceDictionaryValidator.java
deleted file mode 100644 (file)
index 57330d9..0000000
+++ /dev/null
@@ -1,60 +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.validator;\r
-\r
-import com.google.common.base.Preconditions;\r
-import org.apache.commons.lang3.StringUtils;\r
-import org.onap.ccsdk.apps.controllerblueprints.service.domain.ResourceDictionary;\r
-\r
-/**\r
- * ResourceDictionaryValidator.java Purpose: Provide Validation Service for Model Type Resource\r
- * Dictionary Validator\r
- *\r
- * @author Brinda Santh\r
- * @version 1.0\r
- */\r
-public class ResourceDictionaryValidator {\r
-\r
-    private ResourceDictionaryValidator() {}\r
-\r
-    /**\r
-     * This is a validateResourceDictionary method\r
-     * \r
-     * @param resourceDictionary\r
-     * @return boolean\r
-     *\r
-     */\r
-    public static boolean validateResourceDictionary(ResourceDictionary resourceDictionary) {\r
-\r
-        Preconditions.checkNotNull(resourceDictionary,"ResourceDictionary Information is missing." );\r
-\r
-        Preconditions.checkArgument( StringUtils.isNotBlank(resourceDictionary.getName()),\r
-                "DataDictionary Alias Name Information is missing.");\r
-        Preconditions.checkNotNull( resourceDictionary.getDefinition(),\r
-                "DataDictionary Definition Information is missing.");\r
-        Preconditions.checkArgument( StringUtils.isNotBlank(resourceDictionary.getDescription()),\r
-                "DataDictionary Description Information is missing.");\r
-        Preconditions.checkArgument( StringUtils.isNotBlank(resourceDictionary.getTags()),\r
-                "DataDictionary Tags Information is missing.");\r
-        Preconditions.checkArgument( StringUtils.isNotBlank(resourceDictionary.getUpdatedBy()),\r
-                "DataDictionary Updated By Information is missing.");\r
-        return true;\r
-\r
-    }\r
-\r
-}\r