kieker.webgui.web.beans.view
Class UserManagementBean

java.lang.Object
  extended by kieker.webgui.web.beans.view.UserManagementBean

@Component
@Scope(value="view")
public final class UserManagementBean
extends Object

This class contains the necessary data behind an instance of the user management page. It is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple instances of the page at a time without causing any problems.

Author:
Nils Christian Ehmke

Constructor Summary
UserManagementBean()
          Default constructor.
 
Method Summary
 void addUser(NewUserBean newUserBean)
          This method adds the given user to the database and informs about success via the growl component.
 void changeUserEnableState(User user)
          This method changes the enabled state of the given user and informs about success via the growl component.
 void deleteUser()
          This method removes the currently selected user from the database and informs about success via the growl component.
 void editUser()
          This method edits the currently selected user within the database and informs about success via the growl component.
 void editUserWithPassword()
          This method edits the currently selected user within the database and informs about success via the growl component.
 User getSelectedUser()
           
 User getSelectedUserCopy()
           
 List<User> getUsers()
           
protected  void initialialize()
          This method initializes the bean.
 void setSelectedUser(User selectedUser)
          Setter for the property selectedUser.
 void updateList()
          Updates the list containing the available users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagementBean

public UserManagementBean()
Default constructor. Do not call this constructor manually. It will only be accessed by Spring.

Method Detail

initialialize

@PostConstruct
protected void initialialize()
This method initializes the bean. Do not call this method manually. It will only be accessed by Spring.


addUser

public void addUser(NewUserBean newUserBean)
This method adds the given user to the database and informs about success via the growl component.

Parameters:
newUserBean - The bean containing the necessary data to create the user.

deleteUser

public void deleteUser()
This method removes the currently selected user from the database and informs about success via the growl component.


editUser

public void editUser()
This method edits the currently selected user within the database and informs about success via the growl component. The password will not be changed.


editUserWithPassword

public void editUserWithPassword()
This method edits the currently selected user within the database and informs about success via the growl component. The password will be changed.


changeUserEnableState

public void changeUserEnableState(User user)
This method changes the enabled state of the given user and informs about success via the growl component.

Parameters:
user - The user whose state should be changed.

updateList

public void updateList()
Updates the list containing the available users.


setSelectedUser

public void setSelectedUser(User selectedUser)
Setter for the property selectedUser.

Parameters:
selectedUser - The new value of the property.

getUsers

public List<User> getUsers()

getSelectedUser

public User getSelectedUser()

getSelectedUserCopy

public User getSelectedUserCopy()


Copyright © 2015. All rights reserved.