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

Backbean for page with administration of uploaded documents. More...

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

Public Member Functions

 Documents ()
 
HtmlDataTable getListTable ()
 
void setListTable (HtmlDataTable listTable)
 
List< StoredDocumentgetDocumentsList ()
 
String actionDelete ()
 
List< UserGroupgetSelGroups ()
 
String getBaseUri ()
 
void setSelGroups (List< UserGroup > selGroups)
 
List< UserGroupgetSelGroupsS ()
 
void setSelGroupsS (List< String > selGroupsStrings)
 
List< SelectItem > getAllGroups ()
 
List< UsergetSelUsers ()
 
void setSelUsers (List< User > selUsers)
 
List< UsergetSelUsersS ()
 
void setSelUsersS (List< String > selUsersStrings)
 
List< SelectItem > getAllUsers ()
 
StoredDocument getDoc ()
 
void setDoc (StoredDocument doc)
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 

Private Attributes

HtmlDataTable listTable
 
StoredDocument doc
 
List< UserGroupselGroups = null
 
List< UserselUsers = null
 
String errorMessage = ""
 

Detailed Description

Backbean for page with administration of uploaded documents.

Backbean for page with administration of uploaded documents

Author
idytrych

Definition at line 38 of file Documents.java.

Constructor & Destructor Documentation

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

Constructor

  • Sets selected user groups to user's joined groups
  • Sets selected user to logged in user

Definition at line 65 of file Documents.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.web.Documents.actionDelete ( )

Action listener for delete links in table

Returns
Returns null to stay in this page

Definition at line 145 of file Documents.java.

Here is the call graph for this function:

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

Gets all user groups

Returns
All user groups in list of SelectItem

Definition at line 271 of file Documents.java.

Here is the call graph for this function:

List<SelectItem> cz.vutbr.fit.knot.annotations.web.Documents.getAllUsers ( )

Gets all users

Returns
All users in list of SelectItem

Definition at line 362 of file Documents.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.web.Documents.getBaseUri ( )

Gets base URI of stored documents

Returns
Returns base URI of stored documents

Definition at line 200 of file Documents.java.

StoredDocument cz.vutbr.fit.knot.annotations.web.Documents.getDoc ( )

Gets document selected in the table

Returns
Returns document selected in the table

Definition at line 382 of file Documents.java.

List<StoredDocument> cz.vutbr.fit.knot.annotations.web.Documents.getDocumentsList ( )

Gets list of documents to display in the table

Returns
Returns list of documents to display in the table

Definition at line 99 of file Documents.java.

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

Gets error message displayed in page

Returns
Returns error message displayed in page

Definition at line 400 of file Documents.java.

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

Gets table with documents

Returns
Returns table with documents

Definition at line 81 of file Documents.java.

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

Gets selected user groups

Returns
Returns selected user groups

Definition at line 191 of file Documents.java.

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

Gets selected user groups

Returns
Returns list of selected user groups

Definition at line 218 of file Documents.java.

List<User> cz.vutbr.fit.knot.annotations.web.Documents.getSelUsers ( )

Gets selected users

Returns
Returns selected users

Definition at line 291 of file Documents.java.

List<User> cz.vutbr.fit.knot.annotations.web.Documents.getSelUsersS ( )

Gets selected users

Returns
Returns list of selected users

Definition at line 309 of file Documents.java.

void cz.vutbr.fit.knot.annotations.web.Documents.setDoc ( StoredDocument  doc)

Sets document selected in the table

Parameters
docDocument selected in the table

Definition at line 391 of file Documents.java.

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

Sets error message to be displayed in page

Parameters
errorMessageError message to be displayed in page

Definition at line 409 of file Documents.java.

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

Sets table with documents

Parameters
listTableTable with documents

Definition at line 90 of file Documents.java.

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

Sets selected user groups

Parameters
selGroupsSelected user groups

Definition at line 209 of file Documents.java.

void cz.vutbr.fit.knot.annotations.web.Documents.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 229 of file Documents.java.

void cz.vutbr.fit.knot.annotations.web.Documents.setSelUsers ( List< User selUsers)

Sets selected users

Parameters
selUsersSelected users

Definition at line 300 of file Documents.java.

void cz.vutbr.fit.knot.annotations.web.Documents.setSelUsersS ( List< String >  selUsersStrings)

Sets selected users from strings with users

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

Definition at line 320 of file Documents.java.

Member Data Documentation

StoredDocument cz.vutbr.fit.knot.annotations.web.Documents.doc
private

Document selected in the table

Definition at line 46 of file Documents.java.

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

Error message displayed in page

Definition at line 58 of file Documents.java.

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

Table with documents

Definition at line 42 of file Documents.java.

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

Selected user groups

Definition at line 50 of file Documents.java.

List<User> cz.vutbr.fit.knot.annotations.web.Documents.selUsers = null
private

Selected users

Definition at line 54 of file Documents.java.


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