summaryrefslogtreecommitdiffstats
path: root/common-be/src
diff options
context:
space:
mode:
Diffstat (limited to 'common-be/src')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoArtifactInfo.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoArtifactInfo.java b/common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoArtifactInfo.java
index a193cdd6db..f5e26ab2b6 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoArtifactInfo.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoArtifactInfo.java
@@ -20,19 +20,33 @@
package org.openecomp.sdc.be.csar.storage;
-import lombok.AllArgsConstructor;
import lombok.Getter;
-@AllArgsConstructor
@Getter
public class MinIoArtifactInfo implements ArtifactInfo {
private final String bucket;
private final String objectName;
+ private byte[] artifactBytes;
+
+ public MinIoArtifactInfo(final String bucket, final String objectName) {
+ this.bucket = bucket;
+ this.objectName = objectName;
+ }
@Override
public String getInfo() {
return String.format("bucket: %s\n"
+ "object: %s", bucket, objectName);
}
+
+ @Override
+ public byte[] getBytes() {
+ return artifactBytes;
+ }
+
+ @Override
+ public void setBytes(final byte[] artifactBytes) {
+ this.artifactBytes = artifactBytes;
+ }
}