|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlets.FeedbackPortlet.FeedbackItem
public class FeedbackItem
FeedbackItem represents a single feedback submission. The object contains the feedback itself, as well as information about the submitting user.
| Field Summary | |
|---|---|
static String |
MAYBE
Undecided feedback |
static String |
NO
Negative feedback |
static String |
YES
Positive feedback |
| Constructor Summary | |
|---|---|
FeedbackItem()
Default constructor |
|
FeedbackItem(long id,
String userid,
String username,
String useremail,
String useragent,
Date submissiontime,
String feedbacktype,
String feedback,
String tabname,
String role)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String MAYBE
public static String YES
public static String NO
| Constructor Detail |
|---|
public FeedbackItem()
public FeedbackItem(long id,
String userid,
String username,
String useremail,
String useragent,
Date submissiontime,
String feedbacktype,
String feedback,
String tabname,
String role)
| Method Detail |
|---|
public String getBrowserAbbreviation()
public String toString()
toString in class Objectpublic 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||