2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 AT&T Intellectual Property and Nokia
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 * ========================LICENSE_END===================================
22 * TODO: this mocks user properties until integration with ONAP Portal is done.
24 package org.oransc.ric.portal.dashboard.model;
26 import java.util.Objects;
28 public class DashboardUser {
31 private String firstName;
32 private String lastName;
33 private String status;
35 public DashboardUser() {
38 public DashboardUser(long id, String firstName, String lastName, String status) {
40 this.firstName = firstName;
41 this.lastName = lastName;
49 public void setId(long id) {
53 public String getFirstName() {
57 public void setFirstName(String firstName) {
58 this.firstName = firstName;
61 public String getLastName() {
65 public void setLastName(String lastName) {
66 this.lastName = lastName;
69 public String getStatus() {
73 public void setStatus(String status) {
78 public int hashCode() {
81 result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
82 result = prime * result + (int) (id ^ (id >>> 32));
83 result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
84 result = prime * result + ((status == null) ? 0 : status.hashCode());
89 public boolean equals(Object obj) {
94 if (getClass() != obj.getClass())
96 DashboardUser other = (DashboardUser) obj;
97 return Objects.equals(id, other.id) && Objects.equals(firstName, other.firstName)
98 && Objects.equals(lastName, other.lastName) && Objects.equals(status, other.status);