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

PropertyReturnsDescription
answersMap<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.
idlongDatabase identifier of the underlying RewardQuizSubmission. Never null for a persisted submission.
numAttemptsintNumber 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.
passedbooleanWhether the last quiz attempt for this submission was passed. False if there were no quiz attempts.
profileExtProfileBeanThe profile that made this submission.
rewardRewardBeanThe reward, promotion or competition that this submission was made against.
scorePercIntegerScore percentage of the last quiz attempt for this submission. Null if there were no quiz attempts.
submittedDateDateThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.