Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Summary
`User` | `copy()` Delivers a copy of this user, but with empty password field.
`String` | `getName()`
`String` | `getPassword()`
`Role` | `getRole()`
`boolean` | `isEnabled()`
`void` | `setEnabled(boolean enabled)`
`void` | `setName(String name)`
`void` | `setPassword(String password)`
`void` | `setRole(Role role)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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.

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All rights reserved.