Replaced all tabs with spaces in java and pom.xml
[so.git] / mso-api-handlers / mso-requests-db / src / main / java / org / onap / so / db / request / beans / InfraActiveRequests.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.db.request.beans;
22
23 import java.util.Objects;
24 import javax.persistence.Entity;
25 import javax.persistence.Table;
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import org.apache.commons.lang3.builder.ToStringBuilder;
28
29 /**
30  * InfraActiveRequests generated by hbm2java
31  */
32 @JsonIgnoreProperties(ignoreUnknown = true)
33 @Entity
34 @Table(name = "infra_active_requests")
35 public class InfraActiveRequests extends InfraRequests {
36
37     private static final long serialVersionUID = -6818265918910035170L;
38
39     public InfraActiveRequests() {}
40
41     public InfraActiveRequests(final String requestId, final String action) {
42         setRequestId(requestId);
43         setAction(action);
44     }
45
46     public InfraActiveRequests(final String requestId) {
47         setRequestId(requestId);
48     }
49
50     @Override
51     public boolean equals(final Object other) {
52         if (this == other) {
53             return true;
54         }
55         if (!(other instanceof InfraActiveRequests)) {
56             return false;
57         }
58         final InfraActiveRequests castOther = (InfraActiveRequests) other;
59         return Objects.equals(getRequestId(), castOther.getRequestId());
60     }
61
62     @Override
63     public int hashCode() {
64         return Objects.hash(getRequestId());
65     }
66
67     @Override
68     public String toString() {
69         return new ToStringBuilder(this).append("requestId", getRequestId())
70                 .append("clientRequestId", getClientRequestId()).append("action", getAction())
71                 .append("requestStatus", getRequestStatus()).append("statusMessage", getStatusMessage())
72                 .append("progress", getProgress()).append("startTime", getStartTime()).append("endTime", getEndTime())
73                 .append("source", getSource()).append("vnfId", getVnfId()).append("vnfName", getVnfName())
74                 .append("vnfType", getVnfType()).append("serviceType", getServiceType())
75                 .append("aicNodeClli", getAicNodeClli()).append("tenantId", getTenantId())
76                 .append("provStatus", getProvStatus()).append("vnfParams", getVnfParams())
77                 .append("vnfOutputs", getVnfOutputs()).append("requestBody", getRequestBody())
78                 .append("responseBody", getResponseBody()).append("lastModifiedBy", getLastModifiedBy())
79                 .append("modifyTime", getModifyTime()).append("requestType", getRequestType())
80                 .append("volumeGroupId", getVolumeGroupId()).append("volumeGroupName", getVolumeGroupName())
81                 .append("vfModuleId", getVfModuleId()).append("vfModuleName", getVfModuleName())
82                 .append("vfModuleModelName", getVfModuleModelName()).append("aaiServiceId", getAaiServiceId())
83                 .append("aicCloudRegion", getAicCloudRegion()).append("callBackUrl", getCallBackUrl())
84                 .append("correlator", getCorrelator()).append("serviceInstanceId", getServiceInstanceId())
85                 .append("serviceInstanceName", getServiceInstanceName()).append("requestScope", getRequestScope())
86                 .append("requestAction", getRequestAction()).append("networkId", getNetworkId())
87                 .append("networkName", getNetworkName()).append("networkType", getNetworkType())
88                 .append("requestorId", getRequestorId()).append("configurationId", getConfigurationId())
89                 .append("configurationName", getConfigurationName()).append("operationalEnvId", getOperationalEnvId())
90                 .append("operationalEnvName", getOperationalEnvName()).append("requestUrl", getRequestUrl()).toString();
91     }
92 }