|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.survey.model.SurveyToken
@Entity public class SurveyToken
For Surveys that require a token.
Simply maps the id of a Survey to a token-
String.
| Constructor Summary | |
|---|---|
protected |
SurveyToken()
Default constructor. |
|
SurveyToken(java.lang.Long surId)
Creates a new SurveyToken with the given surId. |
|
SurveyToken(Survey survey)
Creates a new SurveyToken for the given Survey. |
| Method Summary | |
|---|---|
java.lang.Long |
getId()
Returns the id of the SurveyToken. |
java.lang.Long |
getSurveyId()
Returns the surveyId. |
java.lang.String |
getToken()
Returns the token. |
boolean |
isUsed()
Indicates whether the token has been used already. |
SurveyToken |
setUsed()
Sets the SurveyToken used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SurveyToken()
public SurveyToken(java.lang.Long surId)
SurveyToken with the given surId.
surId - the id of the Surveypublic SurveyToken(Survey survey)
SurveyToken for the given Survey.
survey - the Survey| Method Detail |
|---|
public final java.lang.Long getId()
SurveyToken.
public final java.lang.String getToken()
public final java.lang.Long getSurveyId()
public final SurveyToken setUsed()
SurveyToken used.
SurveyTokenpublic final boolean isUsed()
true if the token is used, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||