4A Server -
2.0
|
Backbean for adding, editing and deleting of types of annotations. More...
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 = "" |
Backbean for adding, editing and deleting of types of annotations.
Backbean for pages for adding, editing and deleting of types of annotations
Definition at line 46 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.actionAddAnc | ( | ) |
Action listener for link for add ancestor to edited type of annotation
Definition at line 529 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.actionAddAttr | ( | ) |
Action listener for link for add attribute to edited type of annotation
Definition at line 469 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.actionEditAttr | ( | Integer | id | ) |
Action listener for link for edit attribute
id | Id of edited attribute |
Definition at line 409 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.actionRemoveAnc | ( | Integer | id | ) |
Action listener for link for remove ancestor from edited type of annotation
id | Id of removed attribute |
Definition at line 427 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.actionRemoveAttr | ( | Integer | id | ) |
Action listener for link for remove attribute from edited type of annotation
id | Id of removed attribute |
Definition at line 365 of file EditAT.java.
|
private |
Adds selected type of annotation to ancestors
newAnc | Type of annotation to add to ancestors |
Definition at line 994 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.btnCancelAction | ( | ) |
Action listener for cancel button
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
Definition at line 652 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.btnSaveAction | ( | ) |
Action listener for save button in the page for editing of the type of annotation
Definition at line 112 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.btnSaveNewAction | ( | ) |
Action listener for seve button on page for adding new type of annotation
Definition at line 544 of file EditAT.java.
|
private |
Creates object with backup of form data
Definition at line 482 of file EditAT.java.
AnnotType cz.vutbr.fit.knot.annotations.web.EditAT.getAnc | ( | ) |
Gets selected ancestor 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
Definition at line 726 of file EditAT.java.
HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditAT.getAncTable | ( | ) |
Gets 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
Definition at line 1054 of file EditAT.java.
AnnotTypeAttr cz.vutbr.fit.knot.annotations.web.EditAT.getAttr | ( | ) |
Gets 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
Definition at line 716 of file EditAT.java.
|
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.
Definition at line 967 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.getComment | ( | ) |
Gets value of comment field in form
Definition at line 736 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.getErrorMessage | ( | ) |
Gets 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
Definition at line 789 of file EditAT.java.
HtmlDataTable cz.vutbr.fit.knot.annotations.web.EditAT.getListTable | ( | ) |
Gets 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
Definition at line 763 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.getPrAncStr | ( | ) |
Gets value of primary ancestor field in form
Definition at line 940 of file EditAT.java.
Boolean cz.vutbr.fit.knot.annotations.web.EditAT.getRestrictedAtt | ( | ) |
Gets value of restricted attributes field in form
Definition at line 815 of file EditAT.java.
String cz.vutbr.fit.knot.annotations.web.EditAT.getUriInOntology | ( | ) |
Gets value of URI field in form
Definition at line 841 of file EditAT.java.
|
staticprivate |
Query database for type of annotation
uri | URI of type of annotation |
em | Entity manager |
RuntimeException | If type of annotation was not found, throws exception |
Definition at line 329 of file EditAT.java.
void cz.vutbr.fit.knot.annotations.web.EditAT.setAnc | ( | AnnotType | anc | ) |
Sets selected ancestor in table
anc | Selected 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
ancTable | Table 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
annotType | Edited 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
attr | Selected 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
comment | Value 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
errorMessage | Error 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
group | Value 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
listTable | Table 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
name | Value 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
prAncStr | Value 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
restrictedAtt | Value 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
uriInOntology | Value of URI field in form |
Definition at line 858 of file EditAT.java.
|
private |
Ancestor selected in the table
Definition at line 70 of file EditAT.java.
|
private |
Table with ancestors of given type of annotation
Definition at line 55 of file EditAT.java.
|
private |
Edited type of annotation or type of annotation to be deleted
Definition at line 75 of file EditAT.java.
|
private |
Attribute selected in the table
Definition at line 60 of file EditAT.java.
|
private |
Value of comment field in form
Definition at line 90 of file EditAT.java.
|
private |
Error message displayed in form
Definition at line 105 of file EditAT.java.
|
private |
Value of group field in form
Definition at line 85 of file EditAT.java.
|
private |
Table with attributes of given type of annotation
Definition at line 50 of file EditAT.java.
|
private |
Value of name field in form
Definition at line 80 of file EditAT.java.
|
private |
Value of primary ancestor field in form
Definition at line 65 of file EditAT.java.
|
private |
Value of restricted attributes field in form
Definition at line 95 of file EditAT.java.
|
private |
Value of URI field in form
Definition at line 100 of file EditAT.java.