Code Review
/
multicloud
/
framework.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add subplugin field support and new Cloud Artifact class
[multicloud/framework.git]
/
artifactbroker
/
model
/
src
/
main
/
java
/
org
/
onap
/
policy
/
distribution
/
model
/
CloudArtifact.java
diff --git
a/artifactbroker/model/src/main/java/org/onap/policy/distribution/model/CloudArtifact.java
b/artifactbroker/model/src/main/java/org/onap/policy/distribution/model/CloudArtifact.java
index
2447c68
..
834bbcf
100644
(file)
--- a/
artifactbroker/model/src/main/java/org/onap/policy/distribution/model/CloudArtifact.java
+++ b/
artifactbroker/model/src/main/java/org/onap/policy/distribution/model/CloudArtifact.java
@@
-23,17
+23,19
@@
package org.onap.policy.distribution.model;
import java.util.List;
import java.util.Map;
import java.util.List;
import java.util.Map;
+import org.onap.sdc.api.notification.IArtifactInfo;
+
/**
* Represents a CloudArtifact that a {@link Policy} can be decoded from.
*/
public class CloudArtifact implements PolicyInput {
/**
* Represents a CloudArtifact that a {@link Policy} can be decoded from.
*/
public class CloudArtifact implements PolicyInput {
- List<VfModu
el
Model> vfModulePayload;
- Map<String,
String> artifactType
Map;
+ List<VfModu
le
Model> vfModulePayload;
+ Map<String,
IArtifactInfo> artifact
Map;
- public CloudArtifact(List<VfModu
elModel> vfModulePayload, Map<String, String> artifactType
Map) {
+ public CloudArtifact(List<VfModu
leModel> vfModulePayload, Map<String, IArtifactInfo> artifact
Map) {
this.vfModulePayload = vfModulePayload;
this.vfModulePayload = vfModulePayload;
- this.artifact
TypeMap = artifactType
Map;
+ this.artifact
Map = artifact
Map;
}
/**
}
/**
@@
-41,7
+43,7
@@
public class CloudArtifact implements PolicyInput {
*
* @return the path of the TOSCA file
*/
*
* @return the path of the TOSCA file
*/
-
List<VfModuel
Model> getVfModulePayload() {
+
public List<VfModule
Model> getVfModulePayload() {
return vfModulePayload;
}
return vfModulePayload;
}
@@
-50,8
+52,8
@@
public class CloudArtifact implements PolicyInput {
*
* @return the path of the TOSCA file
*/
*
* @return the path of the TOSCA file
*/
-
Map<String, String
> getArtifactTypeMap() {
- return artifact
Type
Map;
+
public Map<String, IArtifactInfo
> getArtifactTypeMap() {
+ return artifactMap;
}
}
}
}