Interface OsidRuleApplicatorCondition
- All Superinterfaces:
Extensible, OsidCondition, OsidEnablerCondition, Suppliable
The OsidApplicatorCondition is used to input conditions into an
OsidApplicator evaluation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetResource(Id resourceId) Sets the resource for the evaluation.voidsetTimePeriod(Id timePeriodId) Sets the time period for the evaluation.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.
-
Method Details
-
setTimePeriod
Sets the time period for the evaluation. Dates andTimePeriodsare often independent dimensions. Although aTimePeriodspans dates, it also serves as the reporting time period in which something may pertain. For example, anOsidRulethat is in effect for Q3FY2015 is in effect for transactions that pertain to Q3FY2015 although they may be submitted before or after the time period.OsidRuleApplicatorsmay be active for aTimePeriod, or they may apply to aTimePeriod, or both. This input may be superseded by other data. For example, a supplied request via anOsidEnablerConditionRecordmay contain the applicable time period.- Parameters:
timePeriodId- the time periodId- Throws:
NullArgumentException-timePeriodIdisnull- Compliance:
mandatory- This method must be implemented.
-
setResource
Sets the resource for the evaluation.OsidRuleApplicatorsmay apply to resource demographic rules. ThisResourceis the individual to evaluate against these groups. If not supplied but required in theOsidRuleApplicatorevaluation, an anonymousResourcemay be used. This input may be superseded by other data. For example, a supplied request via anOsidRuleApplicatorConditionRecordmay contain the identity of the person of thing to which theOsidRuleApplicatoris evaluated.- Parameters:
resourceId- the resourceId- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-