1 package org.openecomp.sdc.be.components.upgrade;
3 import org.openecomp.sdc.be.dao.api.ActionStatus;
5 public class ServiceInfo {
6 private String uniqueId;
7 private String version;
9 private ActionStatus status;
12 status = ActionStatus.OK;
15 public ServiceInfo(String id, ActionStatus status){
19 public String getUniqueId() {
22 public void setUniqueId(String uniqueId) {
23 this.uniqueId = uniqueId;
25 public String getVersion() {
28 public void setVersion(String version) {
29 this.version = version;
31 public String getName() {
34 public void setName(String name) {
37 public ActionStatus getStatus() {
40 public void setStatus(ActionStatus status) {
45 public int hashCode() {
48 result = prime * result + ((name == null) ? 0 : name.hashCode());
49 result = prime * result + ((status == null) ? 0 : status.hashCode());
50 result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
51 result = prime * result + ((version == null) ? 0 : version.hashCode());
56 public boolean equals(Object obj) {
61 if (getClass() != obj.getClass())
63 ServiceInfo other = (ServiceInfo) obj;
65 if (other.name != null)
67 } else if (!name.equals(other.name))
69 if (status != other.status)
71 if (uniqueId == null) {
72 if (other.uniqueId != null)
74 } else if (!uniqueId.equals(other.uniqueId))
76 if (version == null) {
77 if (other.version != null)
79 } else if (!version.equals(other.version))