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

Backbean for adding, editing and deleting of types of annotations. More...

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

Public Member Functions

String btnSaveAction ()
 
String btnCancelAction ()
 
String actionRemoveAttr (Integer id)
 
String actionEditAttr (Integer id)
 
String actionRemoveAnc (Integer id)
 
String actionAddAttr ()
 
String actionAddAnc ()
 
String btnSaveNewAction ()
 
String btnDeleteAction ()
 
List< AnnotTypeAttrgetAttrList ()
 
List< AnnotTypegetAncList ()
 
String getComment ()
 
void setComment (String comment)
 
String getName ()
 
void setName (String name)
 
String getGroup ()
 
void setGroup (String group)
 
Boolean getRestrictedAtt ()
 
void setRestrictedAtt (Boolean restrictedAtt)
 
String getUriInOntology ()
 
void setUriInOntology (String uriInOntology)
 
AnnotTypeAttr getAttr ()
 
void setAttr (AnnotTypeAttr attr)
 
AnnotType getAnc ()
 
void setAnc (AnnotType anc)
 
HtmlDataTable getListTable ()
 
void setListTable (HtmlDataTable listTable)
 
HtmlDataTable getAncTable ()
 
void setAncTable (HtmlDataTable ancTable)
 
String getPrAncStr ()
 
void setPrAncStr (String prAncStr)
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 
AnnotType getAnnotType ()
 
void setAnnotType (AnnotType annotType)
 

Private Member Functions

AnnotType createBackup ()
 
AnnotType getBackup ()
 
void addSelAncestor (AnnotType newAnc)
 

Static Private Member Functions

static AnnotType queryType (String uri, EntityManager em) throws RuntimeException
 

Private Attributes

HtmlDataTable listTable
 
HtmlDataTable ancTable
 
AnnotTypeAttr attr
 
String prAncStr
 
AnnotType anc
 
AnnotType annotType = null
 
String name = null
 
String group = null
 
String comment = null
 
Boolean restrictedAtt = null
 
String uriInOntology = null
 
String errorMessage = ""
 

Detailed Description

Backbean for adding, editing and deleting of types of annotations.

Backbean for pages for adding, editing and deleting of types of annotations

Author
idytrych

Definition at line 46 of file EditAT.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.web.EditAT.actionAddAnc ( )

Action listener for link for add ancestor to edited type of annotation

Returns
Returns page outcome (identificator of transition)

Definition at line 529 of file EditAT.java.

Here is the call graph for this function:

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

Action listener for link for add attribute to edited type of annotation

Returns
Returns page outcome (identificator of transition)

Definition at line 469 of file EditAT.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditAT.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 409 of file EditAT.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditAT.actionRemoveAnc ( Integer  id)

Action listener for link for remove ancestor from edited type of annotation

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

Definition at line 427 of file EditAT.java.

Here is the call graph for this function:

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

Action listener for link for remove attribute from edited type of annotation

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

Definition at line 365 of file EditAT.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.web.EditAT.addSelAncestor ( AnnotType  newAnc)
private

Adds selected type of annotation to ancestors

Parameters
newAncType of annotation to add to ancestors

Definition at line 994 of file EditAT.java.

Here is the caller graph for this function:

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

Action listener for cancel button

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

Definition at line 352 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.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 652 of file EditAT.java.

Here is the call graph for this function:

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

Action listener for save button in the page for editing of the type of annotation

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

Definition at line 112 of file EditAT.java.

Here is the call graph for this function:

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

Action listener for seve button on page for adding new type of annotation

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

Definition at line 544 of file EditAT.java.

Here is the call graph for this function:

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.createBackup ( )
private

Creates object with backup of form data

Returns
Returns object with backup of form data

Definition at line 482 of file EditAT.java.

Here is the call graph for this function:

Here is the caller graph for this function:

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.getAnc ( )

Gets selected ancestor in table

Returns
Returns selected attribute in table

Definition at line 885 of file EditAT.java.

List<AnnotType> cz.vutbr.fit.knot.annotations.web.EditAT.getAncList ( )

Gets list of ancestors of given type of annotation

Returns
Returns list of ancestors of given type of annotation

Definition at line 726 of file EditAT.java.

Here is the call graph for this function:

Here is the caller graph for this function:

HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditAT.getAncTable ( )

Gets table with ancestors of given type of annotation

Returns
Returns table with ancestors of given type of annotation

Definition at line 922 of file EditAT.java.

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.getAnnotType ( )

Gets edited type of annotation

Returns
Returns edited type of annotation

Definition at line 1054 of file EditAT.java.

Here is the call graph for this function:

AnnotTypeAttr cz.vutbr.fit.knot.annotations.web.EditAT.getAttr ( )

Gets selected attribute in table

Returns
Returns selected attribute in table

Definition at line 867 of file EditAT.java.

List<AnnotTypeAttr> cz.vutbr.fit.knot.annotations.web.EditAT.getAttrList ( )

Gets list of attributes of given type of annotation

Returns
Returns list of attributes of given type of annotation

Definition at line 716 of file EditAT.java.

Here is the call graph for this function:

Here is the caller graph for this function:

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.getBackup ( )
private

Gets backup of form data If user came from another page, gets edited type of annotation from session. If user now returned from selection of new ancestor, adds this ancestor to type.

Returns
If backup is available, returns backup of form data, null otherwise

Definition at line 967 of file EditAT.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditAT.getComment ( )

Gets value of comment field in form

Returns
Returns value of comment field in form

Definition at line 736 of file EditAT.java.

Here is the call graph for this function:

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

Gets error message displayed in form

Returns
Returns error message displayed in form

Definition at line 1036 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.getGroup ( )

Gets value of group field in form

Returns
Returns value of group field in form

Definition at line 789 of file EditAT.java.

Here is the call graph for this function:

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

Gets table with attributes of given type of annotation

Returns
Returns table with attributes of given type of annotation

Definition at line 904 of file EditAT.java.

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

Gets value of name field in form

Returns
Returns value of name field in form

Definition at line 763 of file EditAT.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditAT.getPrAncStr ( )

Gets value of primary ancestor field in form

Returns
Returns value of primary ancestor field in form

Definition at line 940 of file EditAT.java.

Here is the call graph for this function:

Boolean cz.vutbr.fit.knot.annotations.web.EditAT.getRestrictedAtt ( )

Gets value of restricted attributes field in form

Returns
Returns value of restricted attributes field in form

Definition at line 815 of file EditAT.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.EditAT.getUriInOntology ( )

Gets value of URI field in form

Returns
Returns value of URI field in form

Definition at line 841 of file EditAT.java.

Here is the call graph for this function:

static AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.queryType ( String  uri,
EntityManager  em 
) throws RuntimeException
staticprivate

Query database for type of annotation

Parameters
uriURI of type of annotation
emEntity manager
Returns
Returns type of annotation with given URI
Exceptions
RuntimeExceptionIf type of annotation was not found, throws exception

Definition at line 329 of file EditAT.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.EditAT.setAnc ( AnnotType  anc)

Sets selected ancestor in table

Parameters
ancSelected ancestor in table

Definition at line 894 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setAncTable ( HtmlDataTable  ancTable)

Sets table with ancestors of given type of annotation

Parameters
ancTableTable with ancestors of given type of annotation

Definition at line 931 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setAnnotType ( AnnotType  annotType)

Sets edited type of annotation

Parameters
annotTypeEdited type of annotation

Definition at line 1064 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setAttr ( AnnotTypeAttr  attr)

Sets selected attribute in table

Parameters
attrSelected attribute in table

Definition at line 876 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setComment ( String  comment)

Sets value of comment field in form

Parameters
commentValue of comment field in form

Definition at line 753 of file EditAT.java.

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

Sets error message to be displayed in form

Parameters
errorMessageError message to be displayed in form

Definition at line 1045 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setGroup ( String  group)

Sets value of group field in form

Parameters
groupValue of group field in form

Definition at line 806 of file EditAT.java.

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

Sets table with attributes of given type of annotation

Parameters
listTableTable with attributes of given type of annotation

Definition at line 913 of file EditAT.java.

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

Sets value of name field in form

Parameters
nameValue of name field in form

Definition at line 780 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setPrAncStr ( String  prAncStr)

Sets value of primary ancestor field in form

Parameters
prAncStrValue of primary ancestor field in form

Definition at line 1027 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setRestrictedAtt ( Boolean  restrictedAtt)

Sets value of restricted attributes field in form

Parameters
restrictedAttValue of restricted attributes field in form

Definition at line 832 of file EditAT.java.

void cz.vutbr.fit.knot.annotations.web.EditAT.setUriInOntology ( String  uriInOntology)

Sets value of URI field in form

Parameters
uriInOntologyValue of URI field in form

Definition at line 858 of file EditAT.java.

Member Data Documentation

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.anc
private

Ancestor selected in the table

Definition at line 70 of file EditAT.java.

HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditAT.ancTable
private

Table with ancestors of given type of annotation

Definition at line 55 of file EditAT.java.

AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.annotType = null
private

Edited type of annotation or type of annotation to be deleted

Definition at line 75 of file EditAT.java.

AnnotTypeAttr cz.vutbr.fit.knot.annotations.web.EditAT.attr
private

Attribute selected in the table

Definition at line 60 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.comment = null
private

Value of comment field in form

Definition at line 90 of file EditAT.java.

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

Error message displayed in form

Definition at line 105 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.group = null
private

Value of group field in form

Definition at line 85 of file EditAT.java.

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

Table with attributes of given type of annotation

Definition at line 50 of file EditAT.java.

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

Value of name field in form

Definition at line 80 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.prAncStr
private

Value of primary ancestor field in form

Definition at line 65 of file EditAT.java.

Boolean cz.vutbr.fit.knot.annotations.web.EditAT.restrictedAtt = null
private

Value of restricted attributes field in form

Definition at line 95 of file EditAT.java.

String cz.vutbr.fit.knot.annotations.web.EditAT.uriInOntology = null
private

Value of URI field in form

Definition at line 100 of file EditAT.java.


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