kieker.webgui.domain
Class User
java.lang.Object
kieker.webgui.domain.User
public final class User
- extends Object
This is a domain object representing a user within the system.
- Author:
- Nils Christian Ehmke
Constructor Summary |
User(String name,
String password,
Role role,
boolean enabled)
Creates a new user with the given parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
User
public User(String name,
String password,
Role role,
boolean enabled)
- Creates a new user with the given parameters. The user will not be saved within the data base though.
- Parameters:
name
- The name of the user.password
- The password of the user.role
- The role of the user.enabled
- A flag whether the user is enabled or not.
copy
public User copy()
- Delivers a copy of this user, but with empty password field.
- Returns:
- A copy of this instance.
getName
public String getName()
setName
public void setName(String name)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getRole
public Role getRole()
setRole
public void setRole(Role role)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
Copyright © 2015. All rights reserved.