public class FeedbackItem extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
MAYBE
Undecided feedback
|
static String |
NO
Negative feedback
|
static String |
YES
Positive feedback
|
| Constructor and Description |
|---|
FeedbackItem()
Default constructor
|
FeedbackItem(long id,
String userid,
String username,
String useremail,
String useragent,
Date submissiontime,
String feedbacktype,
String feedback,
String tabname,
String role) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBrowserAbbreviation()
Constructs a two-letter abbreviation for popular browser user agent
strings.
|
String |
getFeedback()
Get the comments submitted by the user.
|
String |
getFeedbacktype()
Get the type of this feedback (positive, negative,
or undecided).
|
long |
getId()
Get the unique ID.
|
Date |
getSubmissiontime()
Get the time this feedback item was submitted.
|
String |
getTabname()
Get the name of the tab the user was visiting during
this feedback submission.
|
String |
getUseragent()
Get the user agent for the browser from which
the feedback was submitted.
|
String |
getUseremail()
Get the submitting user's email address.
|
String |
getUserid()
Get the submitting user's unique user id.
|
String |
getUsername()
Get the submitting user's full name.
|
String |
getUserrole()
Get the user's role.
|
void |
setFeedback(String feedback)
Set the comments submitted by the user.
|
void |
setFeedbacktype(String feedbacktype)
Set the type of this feedback (positive, negative,
or undecided).
|
void |
setId(long id)
Set the unique ID.
|
void |
setSubmissiontime(Date submissiontime)
Set the time this feedback item was submitted.
|
void |
setTabname(String tabname)
Set the name of the tab the user was visiting during this
feedback submission.
|
void |
setUseragent(String useragent)
Set the user agent for the browser from which
the feedback was submitted.
|
void |
setUseremail(String useremail)
Set the submitting user's email address.
|
void |
setUserid(String userid)
Set the submitting user's unique user id.
|
void |
setUsername(String username)
Set the submitting user's full name.
|
void |
setUserrole(String role)
Set the user's role.
|
String |
toString() |
public static String MAYBE
public static String YES
public static String NO
public String getBrowserAbbreviation()
public long getId()
public void setId(long id)
id - public String getUserid()
public void setUserid(String userid)
userid - public String getUsername()
public void setUsername(String username)
username - public String getUseremail()
public void setUseremail(String useremail)
useremail - public String getUseragent()
public void setUseragent(String useragent)
useragent - public Date getSubmissiontime()
public void setSubmissiontime(Date submissiontime)
submissiontime - public String getFeedbacktype()
public void setFeedbacktype(String feedbacktype)
null and/or nonsense values count as
undecided.feedbacktype - public String getFeedback()
public void setFeedback(String feedback)
feedback - public String getTabname()
public void setTabname(String tabname)
tabname - public String getUserrole()
public void setUserrole(String role)
role - Copyright © 2017 Jasig. All Rights Reserved.