Interface Check
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A Check is something that needs to checked. Some basic checks
are baked into this interface but can be extended through a check record
or it can reference an external rule evaluation. Each type of check is
unique and should not be combined.
Checks come in a variety of flavors indicated by the boolean
methods in this interface. Each type of Check may be accompanied
by data required to evaluate the check.
- Fail Check
- Time Check By Date
- Time Check by Event
- Time Check By Cyclic Event
- Hold Check
- Authorization Check
- Inquiry Check
- Process Check
- LoggingCheck
-
Method Summary
Modifier and TypeMethodDescriptionGets theFunctionfor this check.Gets theFunction Idfor this check.getCheckRecord(Type checkRecordType) Gets the check record corresponding to the givenCheckrecordType.This method is used to retrieve an object implementing the requested record.Gets theBlockfor this check.Gets theBlock Idfor this check.Gets theAuditfor this check.Gets theAudit Idfor this check,Gets theTextfor this check.Gets theText Idfor this check.Gets theAgendafor this check.Gets theAgenda Idfor this check.Gets the time check cyclic event.Gets the time check cyclic eventId.Gets the time check end date.Gets the time check event.Gets the time check eventId.Gets the time check start date.booleanTests if this check is for an authorization.booleanTests if this check is a placeholder check that always fails when evaluated.booleanTests if this check is for a hold service block.booleanTests if this check is for a hold service block.booleanTests if this check logs an action.booleanTests if this check is for an agenda.booleanTests if this check is for a time check specified by a cyclic event.booleanTests if this check is for a time check specified by a date.booleanTests if this check is for a time check specified by an event.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
-
isFailCheck
boolean isFailCheck()Tests if this check is a placeholder check that always fails when evaluated. A failure check can be used to block certain conditions specified in anInstruction. IfisFailCheck()istrue, thenisTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(), isAuthorizationCheck(), isInquiryCheck(),isProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this is a fail check,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isTimeCheckByDate
boolean isTimeCheckByDate()Tests if this check is for a time check specified by a date. IfisTimeCheckByDate()istrue, thenisFailCheck(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(),isAuthorizationCheck(),isInquiryCheck(), andisProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for a time specified by date,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckStartDate
DateTime getTimeCheckStartDate()Gets the time check start date. The check passes if the current time is within the time interval inclusive. If the start time of the interval is undefined, then the check for the start time always passes. If the end time of the interval is undefined, then the check for the deadline always passes.- Returns:
- the start of the time period
- Throws:
IllegalStateException-isTimeCheckByDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckEndDate
DateTime getTimeCheckEndDate()Gets the time check end date. The check passes if the current time is within the time interval inclusive. If the start time of the interval is undefined, then the check for the start time always passes. If the end time of the interval is undefined, then the check for the deadline always passes.- Returns:
- the end of the time period
- Throws:
IllegalStateException-isTimeCheckByDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
isTimeCheckByEvent
boolean isTimeCheckByEvent()Tests if this check is for a time check specified by an event. The starting and ending times of the event are used as a time interval to perform the time check. IfisTimeCheckByEvent()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByCyclicEvent(),isHoldCheck(),isAuthorizationCheck(),isInquiryCheck(), andisProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for a time speciifed by event,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckEventId
Id getTimeCheckEventId()Gets the time check eventId.- Returns:
- the event
Id - Throws:
IllegalStateException-isTimeCheckByEvent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckEvent
Gets the time check event.- Returns:
- the event
- Throws:
IllegalStateException-isTimeCheckByEvent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isTimeCheckByCyclicEvent
boolean isTimeCheckByCyclicEvent()Tests if this check is for a time check specified by a cyclic event. The time check is performed using the starting and ending dates of the derived event. If the event is a rceurring event, the time must be within the starting and ending dates of at least one of the events in the series. IfisTimeCheckByCyclicEvent()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isHoldCheck(), isAuthorizationCheck(), isInquiryCheck(),isProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for a time check specified by cyclic event,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckCyclicEventId
Id getTimeCheckCyclicEventId()Gets the time check cyclic eventId.- Returns:
- the cyclic event
Id - Throws:
IllegalStateException-isTimeCheckByCyclicEvent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckCyclicEvent
Gets the time check cyclic event.- Returns:
- the cyclic event
- Throws:
IllegalStateException-isTimeCheckByCyclicEvent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isHoldCheck
boolean isHoldCheck()Tests if this check is for a hold service block. If a block exists for the agent being checked, the check fails. IfisHoldCheck()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isAuthorizationCheck(),isInquiryCheck(), andisProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for a block,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getHoldCheckBlockId
Id getHoldCheckBlockId()Gets theBlock Idfor this check.- Returns:
- the
Block Id - Throws:
IllegalStateException-isHoldCheck()isfalse- Compliance:
mandatory- This method must be implemented.
-
getHoldCheckBlock
Gets theBlockfor this check.- Returns:
- the
Block - Throws:
IllegalStateException-isHoldCheck()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isAuthorizationCheck
boolean isAuthorizationCheck()Tests if this check is for an authorization. IfisAuthorizationCheck()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(),isInquiryCheck(),isProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for an authorization,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationCheckFunctionId
Id getAuthorizationCheckFunctionId()Gets theFunction Idfor this check.- Returns:
- the
Function Id - Throws:
IllegalStateException-isFunctionCheck()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationCheckFunction
Gets theFunctionfor this check.- Returns:
- the
Function - Throws:
IllegalStateException-isFunctionCheck()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isInquiryCheck
boolean isInquiryCheck()Tests if this check is for a hold service block. If a block exists for the agent being checked, the check fails. IfisInquiryCheck()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(),isAuthorizationCheck(),isProcessCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for a block,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getInquiryCheckAuditId
Id getInquiryCheckAuditId()Gets theAudit Idfor this check,- Returns:
- the
Block Id - Throws:
IllegalStateException-isInquiryCheck()isfalse- Compliance:
mandatory- This method must be implemented.
-
getInquiryCheckAudit
Gets theAuditfor this check.- Returns:
- the
Audit - Throws:
IllegalStateException-isInquiryCheck()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isProcessCheck
boolean isProcessCheck()Tests if this check is for an agenda. The agenda for the specified agenda is retrieved and processed before continuing with the checks in this agenda. IfisProcessCheck()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(),isAuthorizationCheck(),isInquiryCheck(), andisLoggingCheck()must befalse.- Returns:
trueif this check is for another agenda,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getProcessCheckAgendaId
Id getProcessCheckAgendaId()Gets theAgenda Idfor this check.- Returns:
- the
Block Id - Throws:
IllegalStateException-isProcessCheck()isfalse- Compliance:
mandatory- This method must be implemented.
-
getProcessCheckAgenda
Gets theAgendafor this check.- Returns:
- the
Agenda - Throws:
IllegalStateException-isProcessCheck()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isLoggingCheck
boolean isLoggingCheck()Tests if this check logs an action. IfisLoggingCheck()istrue, thenisFailCheck(),isTimeCheckByDate(),isTimeCheckByEvent(),isTimeCheckByCyclicEvent(),isHoldCheck(),isAuthorizationCheck(),isInquiryCheck(), andisProcessCheck()must befalse.- Returns:
trueif this check is for logging,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLoggingCheckTextId
Id getLoggingCheckTextId()Gets theText Idfor this check.- Returns:
- the
Text Id - Throws:
IllegalStateException-isLoggingCheck()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLoggingCheckText
Gets theTextfor this check.- Returns:
- the
Text - Throws:
IllegalStateException-isLoggingCheck()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCheckRecord
CheckRecord getCheckRecord(Type checkRecordType) throws OperationFailedException, PermissionDeniedException Gets the check record corresponding to the givenCheckrecordType.This method is used to retrieve an object implementing the requested record. ThecheckRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(checkRecordType)istrue.- Parameters:
checkRecordType- the type of check record to retrieve- Returns:
- the check record
- Throws:
NullArgumentException-checkRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(checkRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-