[SDC-29] rebase continue work to align source
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / ArtifactsResolver.java
1 package org.openecomp.sdc.be.components;
2
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;
7
8 public interface ArtifactsResolver {
9
10     /**
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
16      */
17     ArtifactDefinition findArtifactOnComponent(Component component, ComponentTypeEnum componentType, String artifactId);
18
19     /**
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
24      */
25     ArtifactDefinition findArtifactOnComponentInstance(ComponentInstance componentInstance, String artifactId);
26
27 }