2 * ================================================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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 * ================================================================================
20 package org.openecomp.portalapp.portal.domain;
22 import java.util.Date;
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;
27 public class EPUserAppRolesRequest extends DomainVo {
29 private static final long serialVersionUID = -7225288307806389019L;
32 private Date createdDate;
33 private Date updatedDate;
34 private String requestStatus;
36 private Set<EPUserAppRolesRequestDetail> epRequestIdDetail;
38 public Long getUserId() {
42 public void setUserId(Long userId) {
46 public Long getAppId() {
50 public void setAppId(Long appId) {
54 public Date getCreatedDate() {
58 public void setCreatedDate(Date createdDate) {
59 this.createdDate = createdDate;
62 public Date getUpdatedDate() {
66 public void setUpdatedDate(Date updatedDate) {
67 this.updatedDate = updatedDate;
70 public String getRequestStatus() {
74 public void setRequestStatus(String requestStatus) {
75 this.requestStatus = requestStatus;
78 public Set<EPUserAppRolesRequestDetail> getEpRequestIdDetail() {
79 return epRequestIdDetail;
82 public void setEpRequestIdDetail(Set<EPUserAppRolesRequestDetail> epMyLoginsDetail) {
83 this.epRequestIdDetail = epMyLoginsDetail;
87 public int hashCode() {
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());
100 public boolean equals(Object obj) {
105 if (getClass() != obj.getClass())
107 EPUserAppRolesRequest other = (EPUserAppRolesRequest) obj;
109 if (other.appId != null)
111 } else if (!appId.equals(other.appId))
113 if (createdDate == null) {
114 if (other.createdDate != null)
116 } else if (!createdDate.equals(other.createdDate))
118 if (epRequestIdDetail == null) {
119 if (other.epRequestIdDetail != null)
121 } else if (!epRequestIdDetail.equals(other.epRequestIdDetail))
123 if (requestStatus == null) {
124 if (other.requestStatus != null)
126 } else if (!requestStatus.equals(other.requestStatus))
128 if (updatedDate == null) {
129 if (other.updatedDate != null)
131 } else if (!updatedDate.equals(other.updatedDate))
133 if (userId == null) {
134 if (other.userId != null)
136 } else if (!userId.equals(other.userId))