2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 * https://creativecommons.org/licenses/by/4.0/
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.
34 * ============LICENSE_END============================================
38 package org.onap.portalapp.portal.domain;
40 import java.util.Date;
43 import org.onap.portalsdk.core.domain.support.DomainVo;
45 public class EPUserAppRolesRequest extends DomainVo {
47 private static final long serialVersionUID = -7225288307806389019L;
50 private Date createdDate;
51 private Date updatedDate;
52 private String requestStatus;
54 private Set<EPUserAppRolesRequestDetail> epRequestIdDetail;
56 public Long getUserId() {
60 public void setUserId(Long userId) {
64 public Long getAppId() {
68 public void setAppId(Long appId) {
72 public Date getCreatedDate() {
76 public void setCreatedDate(Date createdDate) {
77 this.createdDate = createdDate;
80 public Date getUpdatedDate() {
84 public void setUpdatedDate(Date updatedDate) {
85 this.updatedDate = updatedDate;
88 public String getRequestStatus() {
92 public void setRequestStatus(String requestStatus) {
93 this.requestStatus = requestStatus;
96 public Set<EPUserAppRolesRequestDetail> getEpRequestIdDetail() {
97 return epRequestIdDetail;
100 public void setEpRequestIdDetail(Set<EPUserAppRolesRequestDetail> epMyLoginsDetail) {
101 this.epRequestIdDetail = epMyLoginsDetail;
105 public int hashCode() {
106 final int prime = 31;
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());
118 public boolean equals(Object obj) {
123 if (getClass() != obj.getClass())
125 EPUserAppRolesRequest other = (EPUserAppRolesRequest) obj;
127 if (other.appId != null)
129 } else if (!appId.equals(other.appId))
131 if (createdDate == null) {
132 if (other.createdDate != null)
134 } else if (!createdDate.equals(other.createdDate))
136 if (epRequestIdDetail == null) {
137 if (other.epRequestIdDetail != null)
139 } else if (!epRequestIdDetail.equals(other.epRequestIdDetail))
141 if (requestStatus == null) {
142 if (other.requestStatus != null)
144 } else if (!requestStatus.equals(other.requestStatus))
146 if (updatedDate == null) {
147 if (other.updatedDate != null)
149 } else if (!updatedDate.equals(other.updatedDate))
151 if (userId == null) {
152 if (other.userId != null)
154 } else if (!userId.equals(other.userId))