Read-only snapshot of a single profile's submission to a reward poll, survey or competition, copying the submitted date, quiz attempt outcome and given answers into a plain bean for use in templates and exports. Built from a RewardQuizSubmission via the static toBean factory method. Used to list and export reward entries, for example in the reward folder's submission list, the reward entries admin page and the reward submissions CSV export.
Properties
| Property | Returns | Description |
|---|---|---|
| answers | Map<String,String> | The given answers from the last quiz attempt, keyed by answer key. Empty if there were no quiz attempts or the last attempt has no recorded answers. |
| id | long | Database identifier of the underlying RewardQuizSubmission. Never null for a persisted submission. |
| numAttempts | int | Number of quiz attempts made against this submission. Zero if the submission has no quiz attempts, for example a plain poll or survey with no scored questions. |
| passed | boolean | Whether the last quiz attempt for this submission was passed. False if there were no quiz attempts. |
| profile | ExtProfileBean | The profile that made this submission. |
| reward | RewardBean | The reward, promotion or competition that this submission was made against. |
| scorePerc | Integer | Score percentage of the last quiz attempt for this submission. Null if there were no quiz attempts. |
| submittedDate | Date | The date and time the submission was made. |
Methods
getId()
Returns: long
Database identifier of the underlying RewardQuizSubmission. Never null for a persisted submission.
getProfile()
Returns: ExtProfileBean
The profile that made this submission.
getSubmittedDate()
Returns: Date
The date and time the submission was made.
getNumAttempts()
Returns: int
Number of quiz attempts made against this submission. Zero if the submission has no quiz attempts, for example a plain poll or survey with no scored questions.
isPassed()
Returns: boolean
Whether the last quiz attempt for this submission was passed. False if there were no quiz attempts.
getScorePerc()
Returns: Integer
Score percentage of the last quiz attempt for this submission. Null if there were no quiz attempts.
getAnswers()
Returns: Map<String,String>
The given answers from the last quiz attempt, keyed by answer key. Empty if there were no quiz attempts or the last attempt has no recorded answers.
getReward()
Returns: RewardBean
The reward, promotion or competition that this submission was made against.