package org.onap.ccsdk.cds.controllerblueprints.core.interfaces
-import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException
+import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintException
import java.io.File
import java.nio.file.Path
-interface BluePrintCatalogService {
+interface BlueprintCatalogService {
/**
* Save the CBA to database.
* @param blueprintFile Either a directory, or an archive
* @param validate whether to validate blueprint content. Default true.
* @return The unique blueprint identifier
- * @throws BluePrintException if process failed
+ * @throws BlueprintException if process failed
*/
- @Throws(BluePrintException::class)
+ @Throws(BlueprintException::class)
suspend fun saveToDatabase(processingId: String, blueprintFile: File, validate: Boolean = true): String
/**
* @param version Version of the blueprint
* @param extract true to extract the content, false for archived content. Default to true
* @return Path where CBA is located
- * @throws BluePrintException if process failed
+ * @throws BlueprintException if process failed
*/
- @Throws(BluePrintException::class)
+ @Throws(BlueprintException::class)
suspend fun getFromDatabase(name: String, version: String, extract: Boolean = true): Path
/**
* Delete the CBA from database.
* @param name Name of the blueprint
* @param version Version of the blueprint
- * @throws BluePrintException if process failed
+ * @throws BlueprintException if process failed
*/
- @Throws(BluePrintException::class)
+ @Throws(BlueprintException::class)
suspend fun deleteFromDatabase(name: String, version: String)
}