|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectensemble.UserBean
@Named(value="userBean") @SessionScoped public class UserBean
These bean holds data about the current user.
Constructor Summary | |
---|---|
UserBean()
|
Method Summary | |
---|---|
Data_set |
getCurrentData()
The data set the user is currently viewing information for. |
int |
getDatasetID()
The ID number of the data set that the current user intends to upload predictions for. |
java.lang.Boolean |
getExcluded()
Flag indicating whether the current user's submitted prediction should be excluded from ensembles and further uploads should be prevented. |
java.lang.String |
getFileDesc()
The description of the file that the current user intends to upload. |
java.lang.String |
getFilename()
The name of the file the current user intends to upload. |
java.lang.Boolean |
getLoggedIn()
Indicates whether a user is currently logged in. |
java.lang.String |
getName()
The username of the current user. |
java.lang.Boolean |
getUploadingData()
A flag indicating whether the current user intends to upload data or predictions. |
java.lang.Boolean |
getUploadReady()
Checks whether the current user is ready to upload a file. |
java.lang.String |
getUploadType()
A string indicating whether the current user intends to upload data or predictions. |
boolean |
isAdmin()
Determines if the user has administrative privileges. |
java.lang.String |
logout()
Logs the current user out, then navigates back to the index. |
void |
ready()
Registers than the user is ready to upload a file. |
void |
setDatasetID(int datasetID)
Sets the ID number of the data set that the current user intends to upload predictions for. |
void |
setExcluded(java.lang.Boolean excluded)
Sets a flag indicating whether the current user's submitted prediction should be excluded from ensembles and further uploads should be prevented. |
void |
setFileDesc(java.lang.String fileDesc)
Sets the description of the file that the current user intends to upload. |
void |
setFilename(java.lang.String filename)
Sets the name of the file the current user intends to upload. |
void |
setLoggedIn(java.lang.Boolean loggedIn)
Sets a flag Indicating whether a user is currently logged in. |
void |
setName(java.lang.String name)
Sets the username of the current user, indicating that a user has logged in. |
void |
setUploadingData(java.lang.Boolean uploadingData)
Sets a flag indicating whether the current user intends to upload data or predictions. |
void |
setUploadReady(java.lang.Boolean uploadReady)
Sets flag indicating whether the current user is ready to upload a file. |
java.lang.String |
toDataInfo(Data_set data)
Used to navigate to a page that displays info about a given data set. |
java.lang.String |
toUpload()
Checks if there is a user logged in, and navigates accordingly. |
java.lang.String |
upload()
Registers that an upload has been made, then returns a navigation string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserBean()
Method Detail |
---|
public boolean isAdmin()
public void ready()
public java.lang.String upload()
public java.lang.String toDataInfo(Data_set data)
data
- The data set to view information for
public Data_set getCurrentData()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The current user's namepublic java.lang.String getFilename()
public void setFilename(java.lang.String filename)
public java.lang.String getFileDesc()
public void setFileDesc(java.lang.String fileDesc)
public java.lang.String getUploadType()
public int getDatasetID()
public void setDatasetID(int datasetID)
public java.lang.Boolean getUploadReady()
public void setUploadReady(java.lang.Boolean uploadReady)
uploadReady
- True if the user is ready, else falsepublic void setUploadingData(java.lang.Boolean uploadingData)
uploadingData
- True if the user is uploading data, false if predictionspublic java.lang.Boolean getUploadingData()
uploadingData
- True if the user is uploading data, false if predictionspublic java.lang.String toUpload()
public java.lang.String logout()
public java.lang.Boolean getLoggedIn()
public void setLoggedIn(java.lang.Boolean loggedIn)
public java.lang.Boolean getExcluded()
public void setExcluded(java.lang.Boolean excluded)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |