616246d87b2155a416c162725bf47c5a6879868d
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / EPUserAppRolesRequest.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 java.util.Date;
23 import java.util.Set;
24
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;
26
27 public class EPUserAppRolesRequest extends DomainVo {
28
29         private static final long serialVersionUID = -7225288307806389019L;
30         private Long userId;
31         private Long appId;
32         private Date createdDate;
33         private Date updatedDate;
34         private String requestStatus;
35
36         private Set<EPUserAppRolesRequestDetail> epRequestIdDetail;
37
38         public Long getUserId() {
39                 return userId;
40         }
41
42         public void setUserId(Long userId) {
43                 this.userId = userId;
44         }
45
46         public Long getAppId() {
47                 return appId;
48         }
49
50         public void setAppId(Long appId) {
51                 this.appId = appId;
52         }
53
54         public Date getCreatedDate() {
55                 return createdDate;
56         }
57
58         public void setCreatedDate(Date createdDate) {
59                 this.createdDate = createdDate;
60         }
61
62         public Date getUpdatedDate() {
63                 return updatedDate;
64         }
65
66         public void setUpdatedDate(Date updatedDate) {
67                 this.updatedDate = updatedDate;
68         }
69
70         public String getRequestStatus() {
71                 return requestStatus;
72         }
73
74         public void setRequestStatus(String requestStatus) {
75                 this.requestStatus = requestStatus;
76         }
77
78         public Set<EPUserAppRolesRequestDetail> getEpRequestIdDetail() {
79                 return epRequestIdDetail;
80         }
81
82         public void setEpRequestIdDetail(Set<EPUserAppRolesRequestDetail> epMyLoginsDetail) {
83                 this.epRequestIdDetail = epMyLoginsDetail;
84         }
85
86         @Override
87         public int hashCode() {
88                 final int prime = 31;
89                 int result = 1;
90                 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
91                 result = prime * result + ((createdDate == null) ? 0 : createdDate.hashCode());
92                 result = prime * result + ((epRequestIdDetail == null) ? 0 : epRequestIdDetail.hashCode());
93                 result = prime * result + ((requestStatus == null) ? 0 : requestStatus.hashCode());
94                 result = prime * result + ((updatedDate == null) ? 0 : updatedDate.hashCode());
95                 result = prime * result + ((userId == null) ? 0 : userId.hashCode());
96                 return result;
97         }
98
99         @Override
100         public boolean equals(Object obj) {
101                 if (this == obj)
102                         return true;
103                 if (obj == null)
104                         return false;
105                 if (getClass() != obj.getClass())
106                         return false;
107                 EPUserAppRolesRequest other = (EPUserAppRolesRequest) obj;
108                 if (appId == null) {
109                         if (other.appId != null)
110                                 return false;
111                 } else if (!appId.equals(other.appId))
112                         return false;
113                 if (createdDate == null) {
114                         if (other.createdDate != null)
115                                 return false;
116                 } else if (!createdDate.equals(other.createdDate))
117                         return false;
118                 if (epRequestIdDetail == null) {
119                         if (other.epRequestIdDetail != null)
120                                 return false;
121                 } else if (!epRequestIdDetail.equals(other.epRequestIdDetail))
122                         return false;
123                 if (requestStatus == null) {
124                         if (other.requestStatus != null)
125                                 return false;
126                 } else if (!requestStatus.equals(other.requestStatus))
127                         return false;
128                 if (updatedDate == null) {
129                         if (other.updatedDate != null)
130                                 return false;
131                 } else if (!updatedDate.equals(other.updatedDate))
132                         return false;
133                 if (userId == null) {
134                         if (other.userId != null)
135                                 return false;
136                 } else if (!userId.equals(other.userId))
137                         return false;
138                 return true;
139         }
140 }