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.
16 package org.onap.nbi.apis.serviceorder.model.consumer;
18 import java.io.Serializable;
19 import java.sql.Timestamp;
21 public class OperationStatus implements Serializable {
26 private static final long serialVersionUID = 1L;
28 private String serviceId = null;
30 private String operationId = null;
32 private String serviceName = null;
34 private String operation = null;
36 private String userId = null;
38 private String result = null;
40 private String operationContent = null;
42 private String progress = "0";
44 private String reason = null;
46 private Timestamp operateAt = null;
48 private Timestamp finishedAt = null;
51 public String getServiceId() {
56 public void setServiceId(String serviceId) {
57 this.serviceId = serviceId;
61 public String getOperationId() {
66 public void setOperationId(String operationId) {
67 this.operationId = operationId;
71 public String getOperation() {
76 public void setOperation(String operation) {
77 this.operation = operation;
81 public String getUserId() {
86 public void setUserId(String userId) {
91 public String getResult() {
96 public void setResult(String result) {
101 public String getOperationContent() {
102 return operationContent;
106 public void setOperationContent(String operationContent) {
107 this.operationContent = operationContent;
111 public String getProgress() {
116 public void setProgress(String progress) {
117 this.progress = progress;
121 public String getReason() {
126 public void setReason(String reason) {
127 this.reason = reason;
131 public Timestamp getOperateAt() {
136 public void setOperateAt(Timestamp operateAt) {
137 this.operateAt = operateAt;
141 public Timestamp getFinishedAt() {
146 public void setFinishedAt(Timestamp finishedAt) {
147 this.finishedAt = finishedAt;
153 * @return Returns the serviceName.
155 public String getServiceName() {
162 * @param serviceName The serviceName to set.
164 public void setServiceName(String serviceName) {
165 this.serviceName = serviceName;
175 public int hashCode() {
176 final int prime = 31;
178 result = prime * result + ((operationId == null) ? 0 : operationId.hashCode());
179 result = prime * result + ((serviceId == null) ? 0 : serviceId.hashCode());
191 public boolean equals(Object obj) {
196 if(getClass() != obj.getClass())
198 OperationStatus other = (OperationStatus)obj;
199 if(operationId == null) {
200 if(other.operationId != null)
202 } else if(!operationId.equals(other.operationId))
204 if(serviceId == null) {
205 if(other.serviceId != null)
207 } else if(!serviceId.equals(other.serviceId))
213 public String toString() {
214 return "OperationStatus{" +
215 "serviceId='" + serviceId + '\'' +
216 ", operationId='" + operationId + '\'' +
217 ", serviceName='" + serviceName + '\'' +
218 ", operation='" + operation + '\'' +
219 ", userId='" + userId + '\'' +
220 ", result='" + result + '\'' +
221 ", operationContent='" + operationContent + '\'' +
222 ", progress='" + progress + '\'' +
223 ", reason='" + reason + '\'' +
224 ", operateAt=" + operateAt +
225 ", finishedAt=" + finishedAt +