org.jasig.portlets.FeedbackPortlet
Class FeedbackItem

java.lang.Object
  extended by org.jasig.portlets.FeedbackPortlet.FeedbackItem
All Implemented Interfaces:
Serializable

public class FeedbackItem
extends Object
implements Serializable

FeedbackItem represents a single feedback submission. The object contains the feedback itself, as well as information about the submitting user.

Author:
Jen Bourey
See Also:
Serialized Form

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

MAYBE

public static String MAYBE
Undecided feedback


YES

public static String YES
Positive feedback


NO

public static String NO
Negative feedback

Constructor Detail

FeedbackItem

public FeedbackItem()
Default constructor


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

getBrowserAbbreviation

public String getBrowserAbbreviation()
Constructs a two-letter abbreviation for popular browser user agent strings.

Returns:
two-letter abbreviation

toString

public String toString()
Overrides:
toString in class Object

getId

public long getId()
Get the unique ID.

Returns:

setId

public void setId(long id)
Set the unique ID.

Parameters:
id -

getUserid

public String getUserid()
Get the submitting user's unique user id.

Returns:

setUserid

public void setUserid(String userid)
Set the submitting user's unique user id.

Parameters:
userid -

getUsername

public String getUsername()
Get the submitting user's full name.

Returns:

setUsername

public void setUsername(String username)
Set the submitting user's full name.

Parameters:
username -

getUseremail

public String getUseremail()
Get the submitting user's email address.

Returns:

setUseremail

public void setUseremail(String useremail)
Set the submitting user's email address.

Parameters:
useremail -

getUseragent

public String getUseragent()
Get the user agent for the browser from which the feedback was submitted.

Returns:

setUseragent

public void setUseragent(String useragent)
Set the user agent for the browser from which the feedback was submitted.

Parameters:
useragent -

getSubmissiontime

public Date getSubmissiontime()
Get the time this feedback item was submitted.

Returns:

setSubmissiontime

public void setSubmissiontime(Date submissiontime)
Set the time this feedback item was submitted.

Parameters:
submissiontime -

getFeedbacktype

public String getFeedbacktype()
Get the type of this feedback (positive, negative, or undecided).

Returns:

setFeedbacktype

public void setFeedbacktype(String feedbacktype)
Set the type of this feedback (positive, negative, or undecided). null and/or nonsense values count as undecided.

Parameters:
feedbacktype -

getFeedback

public String getFeedback()
Get the comments submitted by the user.

Returns:

setFeedback

public void setFeedback(String feedback)
Set the comments submitted by the user.

Parameters:
feedback -

getTabname

public String getTabname()
Get the name of the tab the user was visiting during this feedback submission.

Returns:

setTabname

public void setTabname(String tabname)
Set the name of the tab the user was visiting during this feedback submission.

Parameters:
tabname -

getUserrole

public String getUserrole()
Get the user's role.

Returns:

setUserrole

public void setUserrole(String role)
Set the user's role.

Parameters:
role -


Copyright © 2012 Jasig. All Rights Reserved.