4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.web.EditUG Class Reference

Backbean for adding, editing and deleting of user group. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.web.EditUG:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.web.EditUG:
Collaboration graph

Public Member Functions

 EditUG ()
 
String btnSaveAction ()
 
String btnSaveNewAction ()
 
String btnCancelAction ()
 
String btnDeleteAction ()
 
UserGroup getUserGroup ()
 
void setUserGroup (UserGroup userGroup)
 
String getName ()
 
void setName (String name)
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 
HtmlDataTable getListTable ()
 
void setListTable (HtmlDataTable listTable)
 
List< UsergetUsersList ()
 
User getUser ()
 
void setUser (User user)
 
String actionRemoveUser (Integer id)
 
String actionAddUser ()
 

Private Attributes

String name = null
 
String errorMessage = ""
 
HtmlDataTable listTable
 
User user
 
UserGroup userGroup = null
 

Detailed Description

Backbean for adding, editing and deleting of user group.

Backbean for pages for adding, editing and deleting of user group

Author
idytrych

Definition at line 38 of file EditUG.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.web.EditUG.EditUG ( )

Constructor

Definition at line 63 of file EditUG.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.web.EditUG.actionAddUser ( )

Action listener for link for add user to edited group

Returns
Returns page outcome (identificator of transition)

Definition at line 347 of file EditUG.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditUG.actionRemoveUser ( Integer  id)

Action listener for remove link in the table. Removes user from user group

Parameters
idId of removed user
Returns
Returns null to stay in this page

Definition at line 309 of file EditUG.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditUG.btnCancelAction ( )

Action listener for cancel button

Returns
Returns page outcome (identificator of next page or null to stay here)

Definition at line 131 of file EditUG.java.

String cz.vutbr.fit.knot.annotations.web.EditUG.btnDeleteAction ( )

Action listener for delete button on deleting page

Returns
Returns page outcome (identificator of next page or null to stay here)

Definition at line 142 of file EditUG.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditUG.btnSaveAction ( )

Action listener for save button in the page for editing of the user group

Returns
Returns page outcome (identificator of next page or null to stay here)

Definition at line 71 of file EditUG.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditUG.btnSaveNewAction ( )

Action listener for seve button on page for adding new groups

Returns
Returns page outcome (identificator of next page or null to stay here)

Definition at line 103 of file EditUG.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditUG.getErrorMessage ( )

Gets error message displayed in form

Returns
Returns error message displayed in form

Definition at line 242 of file EditUG.java.

HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditUG.getListTable ( )

Gets table with users in given user group

Returns
Returns table with users in given user group

Definition at line 260 of file EditUG.java.

String cz.vutbr.fit.knot.annotations.web.EditUG.getName ( )

Gets value of user group name field in form If user group not set yet, pick up it from session

Returns
Returns value of user group name field in form

Definition at line 205 of file EditUG.java.

Here is the call graph for this function:

User cz.vutbr.fit.knot.annotations.web.EditUG.getUser ( )

Gets user selected in the table

Returns
Returns user selected in the table

Definition at line 290 of file EditUG.java.

UserGroup cz.vutbr.fit.knot.annotations.web.EditUG.getUserGroup ( )

Gets edited user group If user group not set yet, pick up it from session

Returns
Returns edited user group

Definition at line 183 of file EditUG.java.

List<User> cz.vutbr.fit.knot.annotations.web.EditUG.getUsersList ( )

Gets list of all users in edited user group

Returns
List of all users in edited user group

Definition at line 278 of file EditUG.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.EditUG.setErrorMessage ( String  errorMessage)

Sets error message to be displayed in form

Parameters
errorMessageError message to be displayed in form

Definition at line 251 of file EditUG.java.

void cz.vutbr.fit.knot.annotations.web.EditUG.setListTable ( HtmlDataTable  listTable)

Sets table with users in given user group

Parameters
listTableTable with users in given user group

Definition at line 269 of file EditUG.java.

void cz.vutbr.fit.knot.annotations.web.EditUG.setName ( String  name)

Sets value of user group name field in form

Parameters
nameValue of user group name field in form

Definition at line 233 of file EditUG.java.

void cz.vutbr.fit.knot.annotations.web.EditUG.setUser ( User  user)

Sets user selected in the table

Parameters
userUser selected in the table

Definition at line 299 of file EditUG.java.

void cz.vutbr.fit.knot.annotations.web.EditUG.setUserGroup ( UserGroup  userGroup)

Sets edited user group

Parameters
userGroupEdited user group

Definition at line 195 of file EditUG.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.web.EditUG.errorMessage = ""
private

Error message displayed in form

Definition at line 46 of file EditUG.java.

HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditUG.listTable
private

Table with users in given user group

Definition at line 50 of file EditUG.java.

String cz.vutbr.fit.knot.annotations.web.EditUG.name = null
private

Value of user group name field in form

Definition at line 42 of file EditUG.java.

User cz.vutbr.fit.knot.annotations.web.EditUG.user
private

User selected in the table

Definition at line 54 of file EditUG.java.

UserGroup cz.vutbr.fit.knot.annotations.web.EditUG.userGroup = null
private

Edited user group or user group to be deleted

Definition at line 58 of file EditUG.java.


The documentation for this class was generated from the following file: