aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-04-29 14:13:18 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2020-04-29 14:01:35 +0000
commit38ac58ba86b899f8d57c5e4b3d6b54a1092dc969 (patch)
treeaaa71c482991a3d7a56ddfe1b38c26ac68c00fa9 /catalog-model
parent08cb42224a5d20783e525cadbab1b7ae40a86f72 (diff)
Fix VFs and Service not visible in SDC Dashboard
Change-Id: Ia42775388c3ad9539b7d0020476f0f7a91ce8bb9 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2938
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java18
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/Service.java12
2 files changed, 8 insertions, 22 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java
index 7d4dfa72f4..bf1dfef243 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Component.java
@@ -57,7 +57,7 @@ import org.openecomp.sdc.common.log.api.ILogConfiguration;
@Getter
@Setter
-@EqualsAndHashCode
+@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public abstract class Component implements PropertiesOwner {
protected List<AdditionalInformationDefinition> additionalInformation;
@@ -66,6 +66,7 @@ public abstract class Component implements PropertiesOwner {
private Map<String, ArtifactDefinition> artifacts;
private Map<String, ArtifactDefinition> deploymentArtifacts;
private Map<String, ArtifactDefinition> toscaArtifacts;
+ @EqualsAndHashCode.Include
private List<CategoryDefinition> categories;
private List<ComponentInstance> componentInstances;
private List<RequirementCapabilityRelDef> componentInstancesRelations;
@@ -82,8 +83,6 @@ public abstract class Component implements PropertiesOwner {
private String derivedFromGenericVersion;
private String toscaType;
private Map<String, CINodeFilterDataDefinition> nodeFilterComponents;
- private Map<String, List<UploadNodeFilterInfo>> nodeFilters;
- private Map<String, List<UploadNodeFilterInfo>> serviceFilters;
private Map<String, InterfaceDefinition> interfaces;
private List<DataTypeDefinition> dataTypes;
@@ -97,6 +96,7 @@ public abstract class Component implements PropertiesOwner {
}
@Override
+ @EqualsAndHashCode.Include
public String getUniqueId() {
return componentMetadataDefinition.getMetadataDataDefinition().getUniqueId();
}
@@ -146,6 +146,7 @@ public abstract class Component implements PropertiesOwner {
}
@Override
+ @EqualsAndHashCode.Include
public String getName() {
return componentMetadataDefinition.getMetadataDataDefinition().getName();
}
@@ -272,6 +273,7 @@ public abstract class Component implements PropertiesOwner {
}
@Override
+ @EqualsAndHashCode.Include
public String getNormalizedName() {
return componentMetadataDefinition.getMetadataDataDefinition().getNormalizedName();
}
@@ -325,15 +327,6 @@ public abstract class Component implements PropertiesOwner {
.collect(Collectors.toList());
}
- public Map<String, List<ComponentInstanceProperty>> getComponentInstancesProperties() {
- return componentInstancesProperties;
- }
-
- public void setComponentInstancesProperties(
- Map<String, List<ComponentInstanceProperty>> resourceInstancesProperties) {
- this.componentInstancesProperties = resourceInstancesProperties;
- }
-
public Map<String, List<ComponentInstanceProperty>> safeGetComponentInstancesProperties() {
return componentInstancesProperties == null ? emptyMap() : componentInstancesProperties;
}
@@ -611,6 +604,7 @@ public abstract class Component implements PropertiesOwner {
return cmptInstanceProps == null ? emptyPropsList : cmptInstanceProps;
}
+
public void setSpecificComponetTypeArtifacts(Map<String, ArtifactDefinition> specificComponentTypeArtifacts) {
// Implement where needed
}
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Service.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Service.java
index 8168e73f01..3040f6bb6c 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Service.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Service.java
@@ -25,6 +25,7 @@ import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
+import lombok.ToString;
import org.apache.commons.lang.StringUtils;
import org.openecomp.sdc.be.datatypes.components.ComponentMetadataDataDefinition;
import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
@@ -36,6 +37,7 @@ import org.openecomp.sdc.be.model.jsonjanusgraph.datamodel.ToscaElementTypeEnum;
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
+@ToString
public class Service extends Component {
private Map<String, ArtifactDefinition> serviceApiArtifacts;
@@ -156,16 +158,6 @@ public class Service extends Component {
}
@Override
- public String toString() {
- return "Service [componentMetadataDefinition=" + getComponentMetadataDefinition()
- // + ", resourceInstances=" + resourceInstances + ",
- // resourceInstancesRelations=" + resourceInstancesRelations + ",
- // resourceInstancesRelations="
- // + resourceInstancesRelations
- + " ]";
- }
-
- @Override
public void setSpecificComponetTypeArtifacts(Map<String, ArtifactDefinition> specificComponentTypeArtifacts) {
setServiceApiArtifacts(specificComponentTypeArtifacts);
}