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

Backbean for page with attributes from ontology. More...

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

Public Member Functions

 AttrO ()
 
String actionRemoveAttr (Integer id)
 
String actionEditAttr (Integer id)
 
String actionAddAttr ()
 
List< TypeAttrOntogetAttrList ()
 
TypeAttrOnto getAttr ()
 
void setAttr (TypeAttrOnto attr)
 
HtmlDataTable getListTable ()
 
void setListTable (HtmlDataTable listTable)
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 
List< UserGroupgetSelGroups ()
 
void setSelGroups (List< UserGroup > selGroups)
 
List< UserGroupgetSelGroupsS ()
 
void setSelGroupsS (List< String > selGroupsStrings)
 
List< SelectItem > getAllGroups ()
 

Private Attributes

HtmlDataTable listTable
 
List< UserGroupselGroups = null
 
TypeAttrOnto attr
 
String errorMessage = ""
 

Detailed Description

Backbean for page with attributes from ontology.

Backbean for page with attributes from ontology

Author
idytrych

Definition at line 41 of file AttrO.java.

Constructor & Destructor Documentation

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

Constructor

  • Sets selected user groups to user's joined groups

Definition at line 65 of file AttrO.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.web.AttrO.actionAddAttr ( )

Action listener for link for add attribute

Returns
Returns page outcome (identificator of transition)

Definition at line 119 of file AttrO.java.

String cz.vutbr.fit.knot.annotations.web.AttrO.actionEditAttr ( Integer  id)

Action listener for link for edit attribute

Parameters
idId of edited attribute
Returns
Returns page outcome (identificator of transition)

Definition at line 105 of file AttrO.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.AttrO.actionRemoveAttr ( Integer  id)

Action listener for link for remove attribute

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

Definition at line 77 of file AttrO.java.

Here is the call graph for this function:

List<SelectItem> cz.vutbr.fit.knot.annotations.web.AttrO.getAllGroups ( )

Gets all user groups

Returns
All user groups in list of SelectItem

Definition at line 283 of file AttrO.java.

Here is the call graph for this function:

TypeAttrOnto cz.vutbr.fit.knot.annotations.web.AttrO.getAttr ( )

Gets selected attribute in table

Returns
Returns selected attribute in table

Definition at line 154 of file AttrO.java.

List<TypeAttrOnto> cz.vutbr.fit.knot.annotations.web.AttrO.getAttrList ( )

Gets list of attributes from ontology

Returns
Returns list of attributes from ontology

Definition at line 129 of file AttrO.java.

Here is the caller graph for this function:

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

Gets error message displayed in form

Returns
Returns error message displayed in form

Definition at line 190 of file AttrO.java.

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

Gets table with attributes of given type of annotation

Returns
Returns table with attributes of given type of annotation

Definition at line 172 of file AttrO.java.

List<UserGroup> cz.vutbr.fit.knot.annotations.web.AttrO.getSelGroups ( )

Gets selected user groups

Returns
Returns selected user groups

Definition at line 208 of file AttrO.java.

List<UserGroup> cz.vutbr.fit.knot.annotations.web.AttrO.getSelGroupsS ( )

Gets selected user groups

Returns
Returns list of selected user groups

Definition at line 226 of file AttrO.java.

void cz.vutbr.fit.knot.annotations.web.AttrO.setAttr ( TypeAttrOnto  attr)

Sets selected attribute in table

Parameters
attrSelected attribute in table

Definition at line 163 of file AttrO.java.

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

Sets error message to be displayed in form

Parameters
errorMessageError message to be displayed in form

Definition at line 199 of file AttrO.java.

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

Sets table with attributes of given type of annotation

Parameters
listTableTable with attributes of given type of annotation

Definition at line 181 of file AttrO.java.

void cz.vutbr.fit.knot.annotations.web.AttrO.setSelGroups ( List< UserGroup selGroups)

Sets selected user groups

Parameters
selGroupsSelected user groups

Definition at line 217 of file AttrO.java.

void cz.vutbr.fit.knot.annotations.web.AttrO.setSelGroupsS ( List< String >  selGroupsStrings)

Sets selected user groups from strings with groups

Parameters
selGroupsStringsList of strings with selected user groups in format "cz.vutbr.fit.knot.annotations.entity.UserGroup[id=N]" (cz.vutbr.fit.knot.annotations.entity.UserGroup.toString())

Definition at line 237 of file AttrO.java.

Member Data Documentation

TypeAttrOnto cz.vutbr.fit.knot.annotations.web.AttrO.attr
private

Attribute selected in the table

Definition at line 53 of file AttrO.java.

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

Error message displayed in form

Definition at line 58 of file AttrO.java.

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

Table with attributes of given type of annotation

Definition at line 45 of file AttrO.java.

List<UserGroup> cz.vutbr.fit.knot.annotations.web.AttrO.selGroups = null
private

Selected user groups

Definition at line 49 of file AttrO.java.


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