aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java4
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java1
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java12
3 files changed, 13 insertions, 4 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java
index 75847704c8..91426537ef 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java
@@ -20,13 +20,11 @@
package org.openecomp.sdc.be.csar.storage;
-import java.nio.file.Path;
-
/**
* Represents the stored artifact
*/
public interface ArtifactInfo {
- Path getPath();
+ String getInfo();
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java
index edac694933..0ad73c6590 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java
@@ -25,4 +25,5 @@ package org.openecomp.sdc.be.csar.storage;
*/
public interface ArtifactStorageConfig {
+ String getTempPath();
}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java
index da06db0e68..0a4f355642 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java
@@ -52,6 +52,16 @@ public interface ArtifactStorageManager {
*
* @return {@code true} if enable, {@code false} otherwise
*/
- boolean isEnabled();
+ default boolean isEnabled() {
+ return false;
+ }
+ /**
+ * @return Storage Configuration
+ */
+ ArtifactStorageConfig getStorageConfiguration();
+
+ InputStream get(final ArtifactInfo artifactInfo);
+
+ void delete(ArtifactInfo artifactInfo);
}