X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Fclds%2Fsdc%2Fcontroller%2Finstaller%2FMicroService.java;h=ac4daeffbb3842b88158d3c84811e1dadcf90c1b;hb=5c37ec59dcc9f4dbb6baa3434ba5986d86ff7152;hp=287ac9a90afddab02c302b840d5775ffed8316fe;hpb=60e5cc9c7768ddda104069f7773fb636f77587e8;p=clamp.git diff --git a/src/main/java/org/onap/clamp/clds/sdc/controller/installer/MicroService.java b/src/main/java/org/onap/clamp/clds/sdc/controller/installer/MicroService.java index 287ac9a9..ac4daeff 100644 --- a/src/main/java/org/onap/clamp/clds/sdc/controller/installer/MicroService.java +++ b/src/main/java/org/onap/clamp/clds/sdc/controller/installer/MicroService.java @@ -17,52 +17,75 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END============================================ + * Modifications copyright (c) 2019 AT&T * =================================================================== * */ + package org.onap.clamp.clds.sdc.controller.installer; import java.util.Objects; public class MicroService { - private final String name; - private final String inputFrom; + private final String name; + private final String modelType; + private final String blueprintName; + private final String inputFrom; + private String mappedNameJpa; + + public MicroService(String name, String modelType, String inputFrom, String mappedNameJpa, String blueprintName) { + this.name = name; + this.inputFrom = inputFrom; + this.mappedNameJpa = mappedNameJpa; + this.modelType = modelType; + this.blueprintName = blueprintName; + } + + public String getName() { + return name; + } + + public String getModelType() { + return modelType; + } - public MicroService(String name, String inputFrom) { - this.name = name; - this.inputFrom = inputFrom; - } - public String getName() { - return name; - } + public String getInputFrom() { + return inputFrom; + } - public String getInputFrom() { - return inputFrom; - } + public String getBlueprintName() { + return blueprintName; + } - @Override - public String toString() { - return "MicroService{" + - "name='" + name + '\'' + - ", inputFrom='" + inputFrom + '\'' + - '}'; - } + @Override + public String toString() { + return "MicroService{" + "name='" + name + '\'' + ", modelType='" + modelType + '\'' + ", inputFrom='" + + inputFrom + '\'' + ", mappedNameJpa='" + mappedNameJpa + '\'' + ", blueprintName='" + + blueprintName + '\'' + '}'; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public String getMappedNameJpa() { + return mappedNameJpa; } - if (o == null || getClass() != o.getClass()) { - return false; + + public void setMappedNameJpa(String mappedNameJpa) { + this.mappedNameJpa = mappedNameJpa; } - MicroService that = (MicroService) o; - return name.equals(that.name) && - inputFrom.equals(that.inputFrom); - } - @Override - public int hashCode() { - return Objects.hash(name, inputFrom); - } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MicroService that = (MicroService) o; + return name.equals(that.name) && modelType.equals(that.modelType) && inputFrom.equals(that.inputFrom) && mappedNameJpa.equals(that.mappedNameJpa) && blueprintName.equals(that.blueprintName); + } + + @Override + public int hashCode() { + return Objects.hash(name, modelType, inputFrom, mappedNameJpa, blueprintName); + } }