Renaming Files having BluePrint to have Blueprint
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / blueprint-core / src / main / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / service / BlueprintJinjaTemplateService.kt
@@ -24,9 +24,9 @@ import com.hubspot.jinjava.JinjavaConfig
 import com.hubspot.jinjava.interpret.JinjavaInterpreter
 import com.hubspot.jinjava.loader.ResourceLocator
 import com.hubspot.jinjava.loader.ResourceNotFoundException
-import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintProcessorException
-import org.onap.ccsdk.cds.controllerblueprints.core.config.BluePrintLoadConfiguration
-import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BluePrintJsonNodeFactory
+import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintProcessorException
+import org.onap.ccsdk.cds.controllerblueprints.core.config.BlueprintLoadConfiguration
+import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.BlueprintJsonNodeFactory
 import org.onap.ccsdk.cds.controllerblueprints.core.normalizedPathName
 import org.onap.ccsdk.cds.controllerblueprints.core.removeNullNode
 import java.io.IOException
@@ -34,13 +34,13 @@ import java.nio.charset.Charset
 import java.nio.file.Files.readAllBytes
 import java.nio.file.Paths
 
-object BluePrintJinjaTemplateService {
+object BlueprintJinjaTemplateService {
 
     /**
      * To enable inheritance within CBA, we need Jinja runtime to know where to load the templates.
      */
     class BlueprintRelatedTemplateLocator(
-        private val bluePrintLoadConfiguration: BluePrintLoadConfiguration,
+        private val bluePrintLoadConfiguration: BlueprintLoadConfiguration,
         private val artifactName: String,
         private val artifactVersion: String
     ) : ResourceLocator {
@@ -68,7 +68,7 @@ object BluePrintJinjaTemplateService {
         json: String,
         ignoreJsonNull: Boolean,
         additionalContext: MutableMap<String, Any>,
-        bluePrintLoadConfiguration: BluePrintLoadConfiguration,
+        bluePrintLoadConfiguration: BlueprintLoadConfiguration,
         artifactName: String,
         artifactVersion: String
     ): String {
@@ -95,13 +95,13 @@ object BluePrintJinjaTemplateService {
         }
 
         val mapper = ObjectMapper()
-        val nodeFactory = BluePrintJsonNodeFactory()
+        val nodeFactory = BlueprintJsonNodeFactory()
         mapper.nodeFactory = nodeFactory
 
         // Add the JSON Data to the context
         if (json.isNotEmpty()) {
             val jsonNode = mapper.readValue<JsonNode>(json, JsonNode::class.java)
-                ?: throw BluePrintProcessorException("couldn't get json node from json")
+                ?: throw BlueprintProcessorException("couldn't get json node from json")
             if (ignoreJsonNull) {
                 jsonNode.removeNullNode()
             }