OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.CheckForm
Implementsosid.OsidRuleForm
Used Byosid.rules.check.CheckAdminSession
Description

This is the form for creating and updating Checks. Like all OsidForms, various data elements may be set here for use in the create and update methods in the CheckAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

Checks come in a variety of flavors. Each type of Check

  • Fail Check
  • Time Check By Date
  • Time Check by Event
  • Time Check By Cyclic Event
  • Hold Check
  • Authorization Check
  • Inquiry Check
  • Process Check
  • Logging Check

is determined based on what data is set. If multiple fields are set, the provider will pick one at random.

MethodgetFailCheckMetadata
Description

Gets the metadata for making this a fail check.

Returnosid.Metadata metadata for the competency
Compliancemandatory This method must be implemented.
MethodsetFailCheck
Description

Makes this check a fail check.

ErrorsNO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearFailCheck
Description

Removes the fail check setting.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTimeCheckStartDateMetadata
Description

Gets the metadata for making this a time check and for the start date.

Returnosid.Metadata metadata for time check start date
Compliancemandatory This method must be implemented.
MethodsetTimeCheckStartDate
Description

Sets the start date and make this a time check.

Parametersosid.calendaring.DateTimedate the new start date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearTimeCheckStartDate
Description

Removes the start date.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTimeCheckEndDateMetadata
Description

Gets the metadata for making this a time check and for the end date.

Returnosid.Metadata metadata for time check end date
Compliancemandatory This method must be implemented.
MethodsetTimeCheckEndDate
Description

Sets the end date and make this a time check.

Parametersosid.calendaring.DateTimedate the new end date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearTimeCheckEndDate
Description

Removes the end date.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTimeCheckEventMetadata
Description

Gets the metadata for making this a time check and for the event.

Returnosid.Metadata metadata for time check event
Compliancemandatory This method must be implemented.
MethodsetTimeCheckEvent
Description

Sets the event and make this a time check.

Parametersosid.id.IdeventId the new event
ErrorsINVALID_ARGUMENT eventId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT eventId is null
Compliancemandatory This method must be implemented.
MethodclearTimeCheckEvent
Description

Removes the event.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTimeCheckCyclicEventMetadata
Description

Gets the metadata for making this a time check and for the cyclic event.

Returnosid.Metadata metadata for time check cyclic event
Compliancemandatory This method must be implemented.
MethodsetTimeCheckCyclicEvent
Description

Sets the cyclic event and make this a time check.

Parametersosid.id.IdcyclicEventId the new cyclic event
ErrorsINVALID_ARGUMENT cyclicEventId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT cyclicEventId is null
Compliancemandatory This method must be implemented.
MethodclearTimeCheckCyclicEvent
Description

Removes the cyclic event.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetHoldCheckBlockMetadata
Description

Gets the metadata for making this a hold check and for the block.

Returnosid.Metadata metadata for hold check block
Compliancemandatory This method must be implemented.
MethodsetHoldCheckBlock
Description

Sets the block and make this a hold check.

Parametersosid.id.IdblockId the new block
ErrorsINVALID_ARGUMENT blockId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT blockId is null
Compliancemandatory This method must be implemented.
MethodclearHoldCheckBlock
Description

Removes the block.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetAuthorizationCheckFunctionMetadata
Description

Gets the metadata for making this an authorization check and for the function.

Returnosid.Metadata metadata for authorization check function
Compliancemandatory This method must be implemented.
MethodsetAuthorizationCheckFunction
Description

Sets the function and make this an authorization check.

Parametersosid.id.IdfunctionId the new function
ErrorsINVALID_ARGUMENT fiunctionId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT functionId is null
Compliancemandatory This method must be implemented.
MethodclearAuthorizationCheckFunction
Description

Removes the function.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetInquiryCheckAuditMetadata
Description

Gets the metadata for making this an inquiry check and for the audit.

Returnosid.Metadata metadata for inquiry check audit
Compliancemandatory This method must be implemented.
MethodsetInqiiryCheckAudit
Description

Sets the audit and make this an inquiry check.

Parametersosid.id.IdauditId the new audit
ErrorsINVALID_ARGUMENT auditId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT auditId is null
Compliancemandatory This method must be implemented.
MethodclearInquiryCheckAudit
Description

Removes the audit.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetProcessCheckAgendaMetadata
Description

Gets the metadata for making this a process check and for the agenda.

Returnosid.Metadata metadata for process check agenda
Compliancemandatory This method must be implemented.
MethodsetProcessCheckAgenda
Description

Sets the agenda and make this a process check.

Parametersosid.id.IdagendaId the new agenda
ErrorsINVALID_ARGUMENT agendaId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT agendaId is null
Compliancemandatory This method must be implemented.
MethodclearProcessCheckAgenda
Description

Removes the agenda.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetLoggingCheckTextMetadata
Description

Gets the metadata for making this a logging check and for the text.

Returnosid.Metadata metadata for logging check text
Compliancemandatory This method must be implemented.
MethodsetLoggingCheckText
Description

Sets the text and make this a logging check.

Parametersosid.id.IdtextId the new text
ErrorsINVALID_ARGUMENT textId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT textId is null
Compliancemandatory This method must be implemented.
MethodclearLoggingCheckText
Description

Removes the text.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCheckFormRecord
Description

Gets the CheckFormRecord corresponding to the given check record Type.

Parametersosid.type.TypecheckRecordType a check record type
Returnosid.rules.check.records.CheckFormRecord the check form record
ErrorsNULL_ARGUMENT checkRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(checkRecordType) is false
Compliancemandatory This method must be implemented.