OSID Logo
OSID Specifications
inquiry package
Version 3.1.0
Interfaceosid.inquiry.InquiryForm
Implementsosid.OsidRuleForm
osid.OsidSubjugateableForm
Implemented Byosid.inquiry.batch.InquiryBatchForm
osid.inquiry.batch.AuditBatchForm
Used Byosid.inquiry.InquiryAdminSession
Description

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

MethodgetAuditorsMetadata
Description

Gets the metadata for the auditors.

Returnosid.Metadata metadata for the auditors
Compliancemandatory This method must be implemented.
MethodsetAuditors
Description

Sets the auditors.

Parametersosid.id.IdListauditorIds the new auditors
ErrorsINVALID_ARGUMENT auditorIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT auditorIds is null
Compliancemandatory This method must be implemented.
MethodclearAuditors
Description

Removes the auditors.

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

Gets the metadata for the question.

Returnosid.Metadata metadata for the question
Compliancemandatory This method must be implemented.
MethodsetQuestion
Description

Sets the question.

Parametersstringquestion the new question
ErrorsINVALID_ARGUMENT question is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT question is null
Compliancemandatory This method must be implemented.
MethodclearQuestion
Description

Removes the question.

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

Gets the metadata for the required flag.

Returnosid.Metadata metadata for the required flag
Compliancemandatory This method must be implemented.
MethodsetRequired
Description

Sets the required flag.

Parametersbooleanrequired true is the inquiry requires a response, false if optional
ErrorsINVALID_ARGUMENT required is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearRequired
Description

Removes the required flag.

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

Gets the metadata for the affirmation required flag.

Returnosid.Metadata metadata for the required flag
Compliancemandatory This method must be implemented.
MethodsetAffirmationRequired
Description

Sets the affirmation required flag.

Parametersbooleanrequired true if a positive response is required, false if a negative response is also acceptable
ErrorsINVALID_ARGUMENT required is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearAffirmationRequired
Description

Removes the affirmation required flag.

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

Gets the metadata for the needs one response flag.

Returnosid.Metadata metadata for the needs one response flag
Compliancemandatory This method must be implemented.
MethodsetNeedsOneResponse
Description

Sets the needs one response flag.

Parametersbooleanone true if only one effective response is needed,, false if the inquiry should be performed each time
ErrorsINVALID_ARGUMENT one is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearNeedsOneResponse
Description

Removes the needs one response flag.

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

Gets the InquiryFormRecord corresponding to the given inquiry record Type.

Parametersosid.type.TypeinquiryRecordType an inquiry record type
Returnosid.inquiry.records.InquiryFormRecord the inquiry form record
ErrorsNULL_ARGUMENT inquiryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(inquiryRecordType) is false
Compliancemandatory This method must be implemented.