public interface AwardRequirement extends OsidRule, Aggregateable
A AwardRequirement
is an OsidRule
and
represents a requirement based on an Award.
Modifier and Type | Method and Description |
---|---|
Requisite[] |
getAltRequisites()
Gets any
Requisites that may be substituted in place of
this AwardRequirement. |
Award |
getAward()
Gets the
Award. |
Id |
getAwardId()
Gets the
Id of the Award. |
AwardRequirementRecord |
getAwardRequirementRecord(Type awardRequirementRecordType)
Gets the award requirement record corresponding to the given
AwardRequirement record Type. |
Duration |
getTimeframe()
Gets the timeframe in which the award has to be earned.
|
boolean |
hasTimeframe()
Tests if the award must have been earned within the required duration.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
Requisite[] getAltRequisites()
Requisites
that may be substituted in place of
this AwardRequirement.
All Requisites
must be satisifed to be a substitute for this award requirement.
Inactive Requisites
are not evaluated but if no
applicable requisite exists, then the alternate requisite is not
satisifed.mandatory
- This method must be implemented. Id getAwardId()
Id
of the Award.
Id
mandatory
- This method must be implemented. Award getAward() throws OperationFailedException
Award.
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasTimeframe()
true
if the award has to be earned within a
required time, false
if it could have been
completed at any time in the pastmandatory
- This method must be implemented. Duration getTimeframe()
IllegalStateException
- hasTimeframe()
is false
mandatory
- This method must be implemented. AwardRequirementRecord getAwardRequirementRecord(Type awardRequirementRecordType) throws OperationFailedException
AwardRequirement
record Type.
This method is
used to retrieve an object implementing the requested record. The
awardRequirementRecordType
may be the Type
returned in getRecordTypes()
or any of its
parents in a Type
hierarchy where
hasRecordType(awardRequirementRecordType)
is true
.awardRequirementRecordType
- the type of award requirement
record to retrieveNullArgumentException
-
awardRequirementRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(awardRequirementRecordType)
is
false
mandatory
- This method must be implemented.