2 * Copyright (c) 2018 Vodafone Group
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.nbi.apis.serviceorder.model.consumer;
19 import java.io.Serializable;
20 import java.sql.Timestamp;
22 public class OperationStatus implements Serializable {
27 private static final long serialVersionUID = 1L;
29 private String serviceId = null;
31 private String operationId = null;
33 private String serviceName = null;
35 private String operation = null;
37 private String userId = null;
39 private String result = null;
41 private String operationContent = null;
43 private String progress = "0";
45 private String reason = null;
47 private Timestamp operateAt = null;
49 private Timestamp finishedAt = null;
51 public String getServiceId() {
55 public void setServiceId(String serviceId) {
56 this.serviceId = serviceId;
59 public String getOperationId() {
63 public void setOperationId(String operationId) {
64 this.operationId = operationId;
67 public String getOperation() {
71 public void setOperation(String operation) {
72 this.operation = operation;
75 public String getUserId() {
79 public void setUserId(String userId) {
83 public String getResult() {
87 public void setResult(String result) {
91 public String getOperationContent() {
92 return operationContent;
95 public void setOperationContent(String operationContent) {
96 this.operationContent = operationContent;
99 public String getProgress() {
103 public void setProgress(String progress) {
104 this.progress = progress;
107 public String getReason() {
111 public void setReason(String reason) {
112 this.reason = reason;
115 public Timestamp getOperateAt() {
119 public void setOperateAt(Timestamp operateAt) {
120 this.operateAt = operateAt;
123 public Timestamp getFinishedAt() {
127 public void setFinishedAt(Timestamp finishedAt) {
128 this.finishedAt = finishedAt;
132 * @return Returns the serviceName.
134 public String getServiceName() {
139 * @param serviceName The serviceName to set.
141 public void setServiceName(String serviceName) {
142 this.serviceName = serviceName;
151 public int hashCode() {
152 final int prime = 31;
154 result = prime * result + ((operationId == null) ? 0 : operationId.hashCode());
155 result = prime * result + ((serviceId == null) ? 0 : serviceId.hashCode());
166 public boolean equals(Object obj) {
171 if (getClass() != obj.getClass())
173 OperationStatus other = (OperationStatus) obj;
174 if (operationId == null) {
175 if (other.operationId != null)
177 } else if (!operationId.equals(other.operationId))
179 if (serviceId == null) {
180 if (other.serviceId != null)
182 } else if (!serviceId.equals(other.serviceId))
188 public String toString() {
189 return "OperationStatus{" + "serviceId='" + serviceId + '\'' + ", operationId='" + operationId + '\''
190 + ", serviceName='" + serviceName + '\'' + ", operation='" + operation + '\'' + ", userId='" + userId
191 + '\'' + ", result='" + result + '\'' + ", operationContent='" + operationContent + '\''
192 + ", progress='" + progress + '\'' + ", reason='" + reason + '\'' + ", operateAt=" + operateAt
193 + ", finishedAt=" + finishedAt + '}';