Interface AwardRequirement
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A AwardRequirement is an OsidRule and represents a
requirement based on an Award .
-
Method Summary
Modifier and TypeMethodDescriptionGets anyRequisitesthat may be substituted in place of thisAwardRequirement.getAward()Gets theAward.Gets theIdof theAward.getAwardRequirementRecord(Type awardRequirementRecordType) Gets the award requirement record corresponding to the givenAwardRequirementrecordType.Gets the timeframe in which the award has to be earned.booleanTests if the award must have been earned within the required duration.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getAltRequisites
Requisite[] getAltRequisites()Gets anyRequisitesthat may be substituted in place of thisAwardRequirement. AllRequisitesmust be satisifed to be a substitute for this award requirement. InactiveRequisitesare not evaluated but if no applicable requisite exists, then the alternate requisite is not satisifed.- Returns:
- the alternate requisites
- Compliance:
mandatory- This method must be implemented.
-
getAwardId
Id getAwardId()Gets theIdof theAward.- Returns:
- the award
Id - Compliance:
mandatory- This method must be implemented.
-
getAward
Gets theAward.- Returns:
- the award
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasTimeframe
boolean hasTimeframe()Tests if the award must have been earned within the required duration.- Returns:
trueif the award has to be earned within a required time,falseif it could have been completed at any time in the past- Compliance:
mandatory- This method must be implemented.
-
getTimeframe
Duration getTimeframe()Gets the timeframe in which the award has to be earned. A negative duration indicates the award had to be completed within the specified amount of time in the past. A posiitive duration indicates the award must be completed within the specified amount of time in the future. A zero duration indicates the award must be completed in the current term.- Returns:
- the time frame
- Throws:
IllegalStateException-hasTimeframe()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAwardRequirementRecord
AwardRequirementRecord getAwardRequirementRecord(Type awardRequirementRecordType) throws OperationFailedException Gets the award requirement record corresponding to the givenAwardRequirementrecordType. This method is used to retrieve an object implementing the requested record. TheawardRequirementRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(awardRequirementRecordType)istrue.- Parameters:
awardRequirementRecordType- the type of award requirement record to retrieve- Returns:
- the award requirement record
- Throws:
NullArgumentException-awardRequirementRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(awardRequirementRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-