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

Backbean for page for batch renaming of types of annotations. More...

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

Public Member Functions

String btnUploadAction ()
 
UploadedFile getUploadedFile ()
 
void setUploadedFile (UploadedFile uploadedFile)
 
String getFileName ()
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 
String getSuccessMessage ()
 
void setSuccessMessage (String successMessage)
 
String getuGroup ()
 
void setuGroup (String uGroup)
 

Private Member Functions

List< AnnotTypegetChangedTypes (String uriPattern, UserGroup userGroup)
 
List< AnnotTypegetChangedTypeExact (String uri)
 
List< AnnotTypegetChangedTypesLike (String uriPattern)
 

Static Private Member Functions

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

Private Attributes

String errorMessage = ""
 
String successMessage = ""
 
UploadedFile uploadedFile
 
String fileName
 
String uGroup
 

Detailed Description

Backbean for page for batch renaming of types of annotations.

Backbean for page for batch renaming and commenting of types of annotations

Author
idytrych

Definition at line 55 of file RenameTypes.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.web.RenameTypes.btnUploadAction ( )

Action listener for upload button

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

Definition at line 83 of file RenameTypes.java.

Here is the call graph for this function:

List<AnnotType> cz.vutbr.fit.knot.annotations.web.RenameTypes.getChangedTypeExact ( String  uri)
private

Gets type of annotations with given URI serialized in XML

Parameters
uriURI of requested type of annotations
Returns
Returns list with types of annotations with given URI

Definition at line 443 of file RenameTypes.java.

Here is the caller graph for this function:

List<AnnotType> cz.vutbr.fit.knot.annotations.web.RenameTypes.getChangedTypes ( String  uriPattern,
UserGroup  userGroup 
)
private

Gets changed types of annotations

Parameters
uriPatternURI pattern
userGroupUser group in which changed types are
Returns
Returns list of changed types

Definition at line 394 of file RenameTypes.java.

Here is the call graph for this function:

Here is the caller graph for this function:

List<AnnotType> cz.vutbr.fit.knot.annotations.web.RenameTypes.getChangedTypesLike ( String  uriPattern)
private

Gets type of annotations with URI matching given pattern Character % is used as wildcard.

Parameters
uriPatternPattern of URI of requested type of annotations
Returns
Returns list with types of annotations with URI matching given pattern

Definition at line 465 of file RenameTypes.java.

Here is the caller graph for this function:

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

Gets error message displayed in form

Returns
Returns error message displayed in form

Definition at line 543 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.getFileName ( )

Gets uploaded file name

Returns
Returns uploaded file name

Definition at line 534 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.getSuccessMessage ( )

Gets success message displayed in form

Returns
Returns success message displayed in form

Definition at line 561 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.getuGroup ( )

Gets user group in which uploaded types will be shared

Returns
Returns user group in which uploaded types will be shared

Definition at line 579 of file RenameTypes.java.

UploadedFile cz.vutbr.fit.knot.annotations.web.RenameTypes.getUploadedFile ( )

Gets uploaded file

Returns
Returns uploaded file

Definition at line 516 of file RenameTypes.java.

static Document cz.vutbr.fit.knot.annotations.web.RenameTypes.parseXml ( String  XMLString)
staticprivate

Parses XML with changes

Parameters
XMLStringString with XML with changes
Returns
Parsed XML in w3c.dom.Document

Definition at line 598 of file RenameTypes.java.

Here is the caller graph for this function:

static AnnotType cz.vutbr.fit.knot.annotations.web.RenameTypes.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 493 of file RenameTypes.java.

Here is the caller graph for this function:

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

Sets error message to be displayed in form

Parameters
errorMessageError message to be displayed in form

Definition at line 552 of file RenameTypes.java.

void cz.vutbr.fit.knot.annotations.web.RenameTypes.setSuccessMessage ( String  successMessage)

Sets success message to be displayed in form

Parameters
successMessageSuccess message to be displayed in form

Definition at line 570 of file RenameTypes.java.

void cz.vutbr.fit.knot.annotations.web.RenameTypes.setuGroup ( String  uGroup)

Sets user group in which uploaded types will be shared

Parameters
uGroupUser group in which uploaded types will be shared

Definition at line 588 of file RenameTypes.java.

void cz.vutbr.fit.knot.annotations.web.RenameTypes.setUploadedFile ( UploadedFile  uploadedFile)

Sets uploaded file

Parameters
uploadedFileUploaded file

Definition at line 525 of file RenameTypes.java.

Member Data Documentation

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

Error message displayed in form

Definition at line 59 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.fileName
private

File name

Definition at line 71 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.successMessage = ""
private

Success message displayed in form

Definition at line 63 of file RenameTypes.java.

String cz.vutbr.fit.knot.annotations.web.RenameTypes.uGroup
private

User group in which uploaded types will be renamed

Definition at line 75 of file RenameTypes.java.

UploadedFile cz.vutbr.fit.knot.annotations.web.RenameTypes.uploadedFile
private

Uploaded file

Definition at line 67 of file RenameTypes.java.


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