Merge "Reorder modifiers"
[so.git] / mso-api-handlers / mso-requests-db / src / main / java / org / openecomp / mso / requestsdb / OperationStatus.java
index 796a3f9..f61b272 100644 (file)
-/*-\r
- * ============LICENSE_START=======================================================\r
- * ONAP - SO\r
- * ================================================================================\r
- * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.\r
- * ================================================================================\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- * \r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- * \r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ============LICENSE_END=========================================================\r
- */\r
-package org.openecomp.mso.requestsdb;\r
-\r
-import java.io.Serializable;\r
-import java.sql.Timestamp;\r
-\r
-/**\r
- * The service operation status \r
- * <br>\r
- * <p>\r
- * </p>\r
- * \r
- * @author\r
- * @version     ONAP Amsterdam Release  2017-08-28\r
- */\r
-public class OperationStatus implements Serializable{\r
-    \r
-    /**\r
-     * \r
-     */\r
-    private static final long serialVersionUID = 1L;\r
-\r
-    private String serviceId;\r
-    \r
-    private String operationId;\r
-    \r
-    private String operation;\r
-    \r
-    private String userId;\r
-    \r
-    private String result;\r
-    \r
-    private String operationContent;\r
-    \r
-    private String progress = "0";\r
-    \r
-    private String reason;\r
-\r
-    private Timestamp operateAt;\r
-    \r
-    private Timestamp finishedAt;\r
-\r
-    \r
-    public String getServiceId() {\r
-        return serviceId;\r
-    }\r
-\r
-    \r
-    public void setServiceId(String serviceId) {\r
-        this.serviceId = serviceId;\r
-    }\r
-\r
-    \r
-    public String getOperationId() {\r
-        return operationId;\r
-    }\r
-\r
-    \r
-    public void setOperationId(String operationId) {\r
-        this.operationId = operationId;\r
-    }\r
-\r
-    \r
-    public String getOperation() {\r
-        return operation;\r
-    }\r
-\r
-    \r
-    public void setOperation(String operation) {\r
-        this.operation = operation;\r
-    }\r
-\r
-    \r
-    public String getUserId() {\r
-        return userId;\r
-    }\r
-\r
-    \r
-    public void setUserId(String userId) {\r
-        this.userId = userId;\r
-    }\r
-\r
-    \r
-    public String getResult() {\r
-        return result;\r
-    }\r
-\r
-    \r
-    public void setResult(String result) {\r
-        this.result = result;\r
-    }\r
-\r
-    \r
-    public String getOperationContent() {\r
-        return operationContent;\r
-    }\r
-\r
-    \r
-    public void setOperationContent(String operationContent) {\r
-        this.operationContent = operationContent;\r
-    }\r
-\r
-    \r
-    public String getProgress() {\r
-        return progress;\r
-    }\r
-\r
-    \r
-    public void setProgress(String progress) {\r
-        this.progress = progress;\r
-    }\r
-\r
-    \r
-    public String getReason() {\r
-        return reason;\r
-    }\r
-\r
-    \r
-    public void setReason(String reason) {\r
-        this.reason = reason;\r
-    }\r
-\r
-    \r
-    public Timestamp getOperateAt() {\r
-        return operateAt;\r
-    }\r
-\r
-    \r
-    public void setOperateAt(Timestamp operateAt) {\r
-        this.operateAt = operateAt;\r
-    }\r
-\r
-    \r
-    public Timestamp getFinishedAt() {\r
-        return finishedAt;\r
-    }\r
-\r
-    \r
-    public void setFinishedAt(Timestamp finishedAt) {\r
-        this.finishedAt = finishedAt;\r
-    }\r
-\r
-\r
-    /**\r
-     * <br>\r
-     * \r
-     * @return\r
-     * @since   ONAP Amsterdam Release \r
-     */\r
-    @Override\r
-    public int hashCode() {\r
-        final int prime = 31;\r
-        int result = 1;\r
-        result = prime * result + ((operationId == null) ? 0 : operationId.hashCode());\r
-        result = prime * result + ((serviceId == null) ? 0 : serviceId.hashCode());\r
-        return result;\r
-    }\r
-\r
-\r
-    /**\r
-     * <br>\r
-     * \r
-     * @param obj\r
-     * @return\r
-     * @since   ONAP Amsterdam Release \r
-     */\r
-    @Override\r
-    public boolean equals(Object obj) {\r
-        if(this == obj)\r
-            return true;\r
-        if(obj == null)\r
-            return false;\r
-        if(getClass() != obj.getClass())\r
-            return false;\r
-        OperationStatus other = (OperationStatus)obj;\r
-        if(operationId == null) {\r
-            if(other.operationId != null)\r
-                return false;\r
-        } else if(!operationId.equals(other.operationId))\r
-            return false;\r
-        if(serviceId == null) {\r
-            if(other.serviceId != null)\r
-                return false;\r
-        } else if(!serviceId.equals(other.serviceId))\r
-            return false;\r
-        return true;\r
-    }\r
-\r
-\r
-}\r
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+package org.openecomp.mso.requestsdb;
+
+import java.io.Serializable;
+import java.sql.Timestamp;
+
+/**
+ * The service operation status 
+ * <br>
+ * <p>
+ * </p>
+ * 
+ * @author
+ * @version     ONAP Amsterdam Release  2017-08-28
+ */
+public class OperationStatus implements Serializable{
+    
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+
+    private String serviceId = null;
+    
+    private String operationId = null;
+    
+    private String serviceName = null;
+    
+    private String operation = null;
+    
+    private String userId = null;
+    
+    private String result = null;
+    
+    private String operationContent = null;
+    
+    private String progress = "0";
+    
+    private String reason = null;
+
+    private Timestamp operateAt = null;
+    
+    private Timestamp finishedAt = null;
+
+    
+    public String getServiceId() {
+        return serviceId;
+    }
+
+    
+    public void setServiceId(String serviceId) {
+        this.serviceId = serviceId;
+    }
+
+    
+    public String getOperationId() {
+        return operationId;
+    }
+
+    
+    public void setOperationId(String operationId) {
+        this.operationId = operationId;
+    }
+
+    
+    public String getOperation() {
+        return operation;
+    }
+
+    
+    public void setOperation(String operation) {
+        this.operation = operation;
+    }
+
+    
+    public String getUserId() {
+        return userId;
+    }
+
+    
+    public void setUserId(String userId) {
+        this.userId = userId;
+    }
+
+    
+    public String getResult() {
+        return result;
+    }
+
+    
+    public void setResult(String result) {
+        this.result = result;
+    }
+
+    
+    public String getOperationContent() {
+        return operationContent;
+    }
+
+    
+    public void setOperationContent(String operationContent) {
+        this.operationContent = operationContent;
+    }
+
+    
+    public String getProgress() {
+        return progress;
+    }
+
+    
+    public void setProgress(String progress) {
+        this.progress = progress;
+    }
+
+    
+    public String getReason() {
+        return reason;
+    }
+
+    
+    public void setReason(String reason) {
+        this.reason = reason;
+    }
+
+    
+    public Timestamp getOperateAt() {
+        return operateAt;
+    }
+
+    
+    public void setOperateAt(Timestamp operateAt) {
+        this.operateAt = operateAt;
+    }
+
+    
+    public Timestamp getFinishedAt() {
+        return finishedAt;
+    }
+
+    
+    public void setFinishedAt(Timestamp finishedAt) {
+        this.finishedAt = finishedAt;
+    }
+
+
+    
+    /**
+     * @return Returns the serviceName.
+     */
+    public String getServiceName() {
+        return serviceName;
+    }
+
+
+    
+    /**
+     * @param serviceName The serviceName to set.
+     */
+    public void setServiceName(String serviceName) {
+        this.serviceName = serviceName;
+    }
+
+
+    /**
+     * <br>
+     * 
+     * @return
+     * @since   ONAP Amsterdam Release 
+     */
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((operationId == null) ? 0 : operationId.hashCode());
+        result = prime * result + ((serviceId == null) ? 0 : serviceId.hashCode());
+        return result;
+    }
+
+
+    /**
+     * <br>
+     * 
+     * @param obj
+     * @return
+     * @since   ONAP Amsterdam Release 
+     */
+    @Override
+    public boolean equals(Object obj) {
+        if(this == obj)
+            return true;
+        if(obj == null)
+            return false;
+        if(getClass() != obj.getClass())
+            return false;
+        OperationStatus other = (OperationStatus)obj;
+        if(operationId == null) {
+            if(other.operationId != null)
+                return false;
+        } else if(!operationId.equals(other.operationId))
+            return false;
+        if(serviceId == null) {
+            if(other.serviceId != null)
+                return false;
+        } else if(!serviceId.equals(other.serviceId))
+            return false;
+        return true;
+    }
+
+
+}