<?xml version="1.0" encoding="UTF-8"?>\r
<!--\r
~ Copyright © 2017-2018 AT&T Intellectual Property.\r
- ~\r
~ Modifications Copyright © 2018 IBM.\r
~\r
~ Licensed under the Apache License, Version 2.0 (the "License");\r
-->\r
\r
<project\r
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"\r
- xmlns="http://maven.apache.org/POM/4.0.0"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"\r
+ xmlns="http://maven.apache.org/POM/4.0.0"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
<modelVersion>4.0.0</modelVersion>\r
<parent>\r
<groupId>org.onap.ccsdk.apps.components</groupId>\r
--- /dev/null
+/*
+ * Copyright © 2019 Bell Canada
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.apps.controllerblueprints.core.common
+
+object ApplicationConstants {
+ const val ACTIVE_Y = "Y"
+ const val ACTIVE_N = "N"
+ const val ASDC_ARTIFACT_TYPE_SDNC_MODEL = "SDNC_MODEL"
+}
--- /dev/null
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.apps.controllerblueprints.core.config
+
+open class BluePrintLoadConfiguration {
+
+ lateinit var blueprintDeployPath: String
+ lateinit var blueprintArchivePath: String
+ lateinit var blueprintEnrichmentPath: String
+
+ var loadInitialData: Boolean = false
+ var loadBluePrint: Boolean = false
+ var loadBluePrintPaths: String? = null
+
+ var loadModelType: Boolean = false
+ var loadModeTypePaths: String? = null
+
+ var loadResourceDictionary: Boolean = false
+ var loadResourceDictionaryPaths: String? = null
+}
\ No newline at end of file
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
import org.apache.commons.io.IOUtils
-import org.apache.commons.io.filefilter.DirectoryFileFilter
import org.onap.ccsdk.apps.controllerblueprints.core.BluePrintException
import org.onap.ccsdk.apps.controllerblueprints.core.BluePrintProcessorException
-import reactor.core.publisher.zip
import java.io.*
import java.nio.charset.Charset
-import java.nio.file.Files
import java.util.zip.ZipFile
class BluePrintArchiveUtils {