Records that a badge or a level was awarded to a profile or an organisation. The recognition awarded is either a badge or a level, and the topic it belongs to acts as the folder grouping them. An award may belong to a recognition period, which is one run of the promotion the award was worked out for, and may link to the points record created if the recognition also issued points. Awards are soft deleted by setting the deleted date, which also clears the points link, so a deleted award is skipped by almost every finder while its row is kept for history.

Group: Database Entities

Implements: Serializable, Relational


Properties

PropertyReturnsDescription
adminDomainOrganisationThe organisation that owns this award and whose administrators manage it. Every finder is scoped to it, so an award is only ever visible within its own account.
awardedToBaseEntityThe profile or organisation the recognition was awarded to. Use asProfile or asOrg on the result to tell which of the two it is.
createdDateDateWhen the recognition was awarded.
deletedDateDateWhen this award was soft deleted. Almost every finder skips awards with a value here, so a deleted award no longer counts towards anything, and deleting also clears the link to any points it issued.
expiryDateDateWhen this award stops being current, for recognitions that only stand for a period. Null means it does not expire. Note that the finders do not filter on it, so check it yourself when only current awards are wanted.
idlongPrimary key of this award, assigned when it is first saved.
manuallyAwardedByProfileThe administrator who granted this award by hand. Null means it was worked out automatically, so this doubles as the marker of a manual award.
notesStringFree-text notes recorded with the award, typically the reason a manual award was given. Limited to ten thousand characters.
periodRecognitionPeriodThe recognition period this award was worked out for, that is one run of the promotion behind the topic. Null for an award made outside any period, such as a badge given directly.
pointsPointsThe points record created when this award issued points to the recipient. Null when the recognition issues no points, and also cleared when the award is soft deleted.
recognitionBaseRecognitionThe badge or level that was awarded. It carries the title, image and any points the recognition issues.
topicRecognitionTopicThe topic the awarded recognition belongs to, which groups related badges and levels and, for levels, defines the metric they are based on. It is copied from the recognition when the award is created.

Methods

getId() · getPeriod() · setPeriod(RecognitionPeriod period) · getAdminDomain() · setAdminDomain(Organisation adminDomain) · getRecognition() · setRecognition(BaseRecognition recognition) · getTopic() · setTopic(RecognitionTopic topic) · getCreatedDate() · setCreatedDate(Date createdDate) · getDeletedDate() · setDeletedDate(Date deletedDate) · getExpiryDate() · setExpiryDate(Date expiryDate) · getAwardedTo() · setAwardedTo(BaseEntity awardedTo) · getManuallyAwardedBy() · setManuallyAwardedBy(Profile manuallyAwardedBy) · getNotes() · setNotes(String notes) · getPoints() · setPoints(Points points)

getId()

Returns: long

Primary key of this award, assigned when it is first saved.

getPeriod()

Returns: RecognitionPeriod

The recognition period this award was worked out for, that is one run of the promotion behind the topic. Null for an award made outside any period, such as a badge given directly.

setPeriod(RecognitionPeriod period)

Returns: void

Sets the recognition period this award belongs to.

ParameterDescription
periodthe recognition period, or null for none

getAdminDomain()

Returns: Organisation

The organisation that owns this award and whose administrators manage it. Every finder is scoped to it, so an award is only ever visible within its own account.

setAdminDomain(Organisation adminDomain)

Returns: void

Sets the organisation that owns this award.

ParameterDescription
adminDomainthe owning organisation

getRecognition()

Returns: BaseRecognition

The badge or level that was awarded. It carries the title, image and any points the recognition issues.

setRecognition(BaseRecognition recognition)

Returns: void

Sets the badge or level that was awarded.

ParameterDescription
recognitionthe recognition awarded

getTopic()

Returns: RecognitionTopic

The topic the awarded recognition belongs to, which groups related badges and levels and, for levels, defines the metric they are based on. It is copied from the recognition when the award is created.

setTopic(RecognitionTopic topic)

Returns: void

Sets the topic the awarded recognition belongs to.

ParameterDescription
topicthe recognition topic

getCreatedDate()

Returns: Date

When the recognition was awarded.

setCreatedDate(Date createdDate)

Returns: void

Sets when the recognition was awarded.

ParameterDescription
createdDatethe award timestamp

getDeletedDate()

Returns: Date

When this award was soft deleted. Almost every finder skips awards with a value here, so a deleted award no longer counts towards anything, and deleting also clears the link to any points it issued.

setDeletedDate(Date deletedDate)

Returns: void

Sets the soft deletion timestamp for this award.

ParameterDescription
deletedDatethe deletion timestamp, or null to make the award stand again

getExpiryDate()

Returns: Date

When this award stops being current, for recognitions that only stand for a period. Null means it does not expire. Note that the finders do not filter on it, so check it yourself when only current awards are wanted.

setExpiryDate(Date expiryDate)

Returns: void

Sets when this award stops being current.

ParameterDescription
expiryDatethe expiry timestamp, or null if the award does not expire

getAwardedTo()

Returns: BaseEntity

The profile or organisation the recognition was awarded to. Use asProfile or asOrg on the result to tell which of the two it is.

setAwardedTo(BaseEntity awardedTo)

Returns: void

Sets the profile or organisation the recognition was awarded to.

ParameterDescription
awardedTothe recipient of the award

getManuallyAwardedBy()

Returns: Profile

The administrator who granted this award by hand. Null means it was worked out automatically, so this doubles as the marker of a manual award.

setManuallyAwardedBy(Profile manuallyAwardedBy)

Returns: void

Sets the administrator who granted this award by hand.

ParameterDescription
manuallyAwardedBythe granting administrator, or null for an automatic award

getNotes()

Returns: String

Free-text notes recorded with the award, typically the reason a manual award was given. Limited to ten thousand characters.

setNotes(String notes)

Returns: void

Sets the free-text notes recorded with this award.

ParameterDescription
notesthe award notes, or null

getPoints()

Returns: Points

The points record created when this award issued points to the recipient. Null when the recognition issues no points, and also cleared when the award is soft deleted.

setPoints(Points points)

Returns: void

Sets the points record created when this award issued points.

ParameterDescription
pointsthe points issued by this award, or null
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.