1 package org.openecomp.sdc.be.components;
3 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
4 import org.openecomp.sdc.be.model.ArtifactDefinition;
5 import org.openecomp.sdc.be.model.Component;
6 import org.openecomp.sdc.be.model.ComponentInstance;
8 public interface ArtifactsResolver {
11 * searching for an artifact with the give {@code artifactId} on the given {@code component}
12 * @param component the component to look for artifact in
13 * @param componentType the type of the component to look for artifact in
14 * @param artifactId the id of the artifact to find
15 * @return the found artifact or null if not exist
17 ArtifactDefinition findArtifactOnComponent(Component component, ComponentTypeEnum componentType, String artifactId);
20 * searching for an artifact with the give {@code artifactId} on the given {@code componentInstance}
21 * @param componentInstance the component instance to look for the artifact in
22 * @param artifactId the if of the artifact to find
23 * @return the found artifact or null if not exist
25 ArtifactDefinition findArtifactOnComponentInstance(ComponentInstance componentInstance, String artifactId);