eeb344514a14f2cd8d328a1fcfca61d52837ee53
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / EPUserAppRolesRequestDetail.java
1 /*-
2  * ================================================================================
3  * ECOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
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  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.domain;
21
22 import org.openecomp.portalsdk.core.domain.support.DomainVo;
23
24 public class EPUserAppRolesRequestDetail extends DomainVo {
25
26         private static final long serialVersionUID = -4908856671135348157L;
27
28         private Long reqRoleId;
29         private String reqType;
30         private EPUserAppRolesRequest epRequestIdData;
31
32         public EPUserAppRolesRequest getEpRequestIdData() {
33                 return epRequestIdData;
34         }
35
36         public void setEpRequestIdData(EPUserAppRolesRequest epRequestIdData) {
37                 this.epRequestIdData = epRequestIdData;
38         }
39
40         public Long getReqRoleId() {
41                 return reqRoleId;
42         }
43
44         public void setReqRoleId(Long reqRoleId) {
45                 this.reqRoleId = reqRoleId;
46         }
47
48         public String getReqType() {
49                 return reqType;
50         }
51
52         public void setReqType(String reqType) {
53                 this.reqType = reqType;
54         }
55
56         @Override
57         public int hashCode() {
58                 final int prime = 31;
59                 int result = 1;
60                 result = prime * result + ((epRequestIdData == null) ? 0 : epRequestIdData.hashCode());
61                 result = prime * result + ((reqRoleId == null) ? 0 : reqRoleId.hashCode());
62                 result = prime * result + ((reqType == null) ? 0 : reqType.hashCode());
63                 return result;
64         }
65
66         @Override
67         public boolean equals(Object obj) {
68                 if (this == obj)
69                         return true;
70                 if (obj == null)
71                         return false;
72                 if (getClass() != obj.getClass())
73                         return false;
74                 EPUserAppRolesRequestDetail other = (EPUserAppRolesRequestDetail) obj;
75                 if (epRequestIdData == null) {
76                         if (other.epRequestIdData != null)
77                                 return false;
78                 } else if (!epRequestIdData.equals(other.epRequestIdData))
79                         return false;
80                 if (reqRoleId == null) {
81                         if (other.reqRoleId != null)
82                                 return false;
83                 } else if (!reqRoleId.equals(other.reqRoleId))
84                         return false;
85                 if (reqType == null) {
86                         if (other.reqType != null)
87                                 return false;
88                 } else if (!reqType.equals(other.reqType))
89                         return false;
90                 return true;
91         }
92
93 }