public class SurveySession extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<SurveyAnswer> |
_answers
The list of answers.
|
protected int |
_id
The session ID.
|
protected String |
_ipAddress
The IP address of the person who answered the survey.
|
protected String |
_login
The login of the person who answered the survey.
|
protected String |
_population
The population of the person who answered the survey.
|
protected Date |
_submittedAt
The date and time at which the person completed the survey.
|
protected String |
_surveyId
The survey ID.
|
| Constructor and Description |
|---|
SurveySession()
Build a SurveySession object.
|
SurveySession(int id,
String surveyId,
UserIdentity user,
String ipAddress,
Date submittedAt,
List<SurveyAnswer> answers)
Build a SurveySession object.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends SurveyAnswer> |
getAnswers()
Get the answers.
|
int |
getId()
Get the id.
|
String |
getIpAddress()
Get the ipAddress.
|
String |
getLogin()
Get the login of the user answering the survey
|
String |
getPopulation()
Get the population of the user answering the survey
|
Date |
getSubmittedAt()
Get the submittedAt.
|
String |
getSurveyId()
Get the surveyId.
|
UserIdentity |
getUser()
Get the identity of the user answering the survey
|
void |
setAnswers(List<SurveyAnswer> answers)
Set the answers.
|
void |
setId(int id)
Set the id.
|
void |
setIpAddress(String ipAddress)
Set the ipAddress.
|
void |
setLogin(String login)
Set the login of the user answering the survey
|
void |
setPopulation(String population)
Set the population of the user answering the survey
|
void |
setSubmittedAt(Date submittedAt)
Set the submittedAt.
|
void |
setSurveyId(String surveyId)
Set the surveyId.
|
void |
setUser(UserIdentity user)
Set the identity of the user answering the survey
|
protected int _id
protected String _population
protected String _ipAddress
protected Date _submittedAt
protected List<SurveyAnswer> _answers
public SurveySession()
public SurveySession(int id, String surveyId, UserIdentity user, String ipAddress, Date submittedAt, List<SurveyAnswer> answers)
id - the session ID.surveyId - the survey ID.user - the user.ipAddress - the user IP address.submittedAt - the date of completion.answers - the list of answers.public int getId()
public void setId(int id)
id - the id to setpublic String getSurveyId()
public void setSurveyId(String surveyId)
surveyId - the surveyId to setpublic String getLogin()
public void setLogin(String login)
login - the loginpublic String getPopulation()
public void setPopulation(String population)
population - the populationpublic void setUser(UserIdentity user)
user - the user identitypublic UserIdentity getUser()
public String getIpAddress()
public void setIpAddress(String ipAddress)
ipAddress - the ipAddress to setpublic Date getSubmittedAt()
public void setSubmittedAt(Date submittedAt)
submittedAt - the submittedAt to setpublic List<? extends SurveyAnswer> getAnswers()
public void setAnswers(List<SurveyAnswer> answers)
answers - the answers to set