923d24449fde2ef3956fb33058fafc1861943452
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / domain / EPUserAppRolesRequest.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  *
8  * Unless otherwise specified, all software contained herein is licensed
9  * under the Apache License, Version 2.0 (the "License");
10  * you may not use this software except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *             http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  * Unless otherwise specified, all documentation contained herein is licensed
22  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23  * you may not use this documentation except in compliance with the License.
24  * You may obtain a copy of the License at
25  *
26  *             https://creativecommons.org/licenses/by/4.0/
27  *
28  * Unless required by applicable law or agreed to in writing, documentation
29  * distributed under the License is distributed on an "AS IS" BASIS,
30  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31  * See the License for the specific language governing permissions and
32  * limitations under the License.
33  *
34  * ============LICENSE_END============================================
35  *
36  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
37  */
38 package org.onap.portalapp.portal.domain;
39
40 import java.util.Date;
41 import java.util.Set;
42
43 import org.onap.portalsdk.core.domain.support.DomainVo;
44
45 public class EPUserAppRolesRequest extends DomainVo {
46
47         private static final long serialVersionUID = -7225288307806389019L;
48         private Long userId;
49         private Long appId;
50         private Date createdDate;
51         private Date updatedDate;
52         private String requestStatus;
53
54         private Set<EPUserAppRolesRequestDetail> epRequestIdDetail;
55
56         public Long getUserId() {
57                 return userId;
58         }
59
60         public void setUserId(Long userId) {
61                 this.userId = userId;
62         }
63
64         public Long getAppId() {
65                 return appId;
66         }
67
68         public void setAppId(Long appId) {
69                 this.appId = appId;
70         }
71
72         public Date getCreatedDate() {
73                 return createdDate;
74         }
75
76         public void setCreatedDate(Date createdDate) {
77                 this.createdDate = createdDate;
78         }
79
80         public Date getUpdatedDate() {
81                 return updatedDate;
82         }
83
84         public void setUpdatedDate(Date updatedDate) {
85                 this.updatedDate = updatedDate;
86         }
87
88         public String getRequestStatus() {
89                 return requestStatus;
90         }
91
92         public void setRequestStatus(String requestStatus) {
93                 this.requestStatus = requestStatus;
94         }
95
96         public Set<EPUserAppRolesRequestDetail> getEpRequestIdDetail() {
97                 return epRequestIdDetail;
98         }
99
100         public void setEpRequestIdDetail(Set<EPUserAppRolesRequestDetail> epMyLoginsDetail) {
101                 this.epRequestIdDetail = epMyLoginsDetail;
102         }
103
104         @Override
105         public int hashCode() {
106                 final int prime = 31;
107                 int result = 1;
108                 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
109                 result = prime * result + ((createdDate == null) ? 0 : createdDate.hashCode());
110                 result = prime * result + ((epRequestIdDetail == null) ? 0 : epRequestIdDetail.hashCode());
111                 result = prime * result + ((requestStatus == null) ? 0 : requestStatus.hashCode());
112                 result = prime * result + ((updatedDate == null) ? 0 : updatedDate.hashCode());
113                 result = prime * result + ((userId == null) ? 0 : userId.hashCode());
114                 return result;
115         }
116
117         @Override
118         public boolean equals(Object obj) {
119                 if (this == obj)
120                         return true;
121                 if (obj == null)
122                         return false;
123                 if (getClass() != obj.getClass())
124                         return false;
125                 EPUserAppRolesRequest other = (EPUserAppRolesRequest) obj;
126                 if (appId == null) {
127                         if (other.appId != null)
128                                 return false;
129                 } else if (!appId.equals(other.appId))
130                         return false;
131                 if (createdDate == null) {
132                         if (other.createdDate != null)
133                                 return false;
134                 } else if (!createdDate.equals(other.createdDate))
135                         return false;
136                 if (epRequestIdDetail == null) {
137                         if (other.epRequestIdDetail != null)
138                                 return false;
139                 } else if (!epRequestIdDetail.equals(other.epRequestIdDetail))
140                         return false;
141                 if (requestStatus == null) {
142                         if (other.requestStatus != null)
143                                 return false;
144                 } else if (!requestStatus.equals(other.requestStatus))
145                         return false;
146                 if (updatedDate == null) {
147                         if (other.updatedDate != null)
148                                 return false;
149                 } else if (!updatedDate.equals(other.updatedDate))
150                         return false;
151                 if (userId == null) {
152                         if (other.userId != null)
153                                 return false;
154                 } else if (!userId.equals(other.userId))
155                         return false;
156                 return true;
157         }
158 }