2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
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 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.webseal.simulator;
25 private String firstName;
26 private String lastName;
28 private String userId;
31 private String password;
36 public User(String userId){
40 public User(String firstName,String lastName,String email,String userId, String role, String password){
42 setFirstName(firstName);
43 setLastName(lastName);
45 setPassword(password);
49 public String getFirstName() {
52 public void setFirstName(String firstName) {
53 this.firstName = firstName;
55 public String getLastName() {
58 public void setLastName(String lastName) {
59 this.lastName = lastName;
61 public String getEmail() {
64 public void setEmail(String email) {
67 public String getUserId() {
70 public void setUserId(String userId) {
73 public String getPassword() {
77 public void setPassword(String password) {
78 this.password = password;
81 public String getRole() {
85 public void setRole(String role) {
89 public String getUserRef() {
90 return "<a href='?userId="+getUserId()+"&password="+getPassword()+"'>"+getFirstName()+" "+getLastName()+"</a>";
93 public String getUserCreateRef() {
94 return "<a href='create?userId="+getUserId()+"&firstName="+getFirstName()+"&lastName="+getLastName()+"&role=" + getRole() + "&email=" + getEmail() + "' target='resultFrame'>create</a>";
98 public String toString() {
99 return "User [firstName=" + firstName + ", lastName=" + lastName + ", email=" + email + ", userId=" + userId
100 + ", role=" + role + ", password=" + password + "]";