Interface Inquiry
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule, Subjugateable
An Inquiry is an OsidRule that determines the nature of
a Response .
-
Method Summary
Modifier and TypeMethodDescriptiongetAudit()Gets the audit.Gets theIdof the audit.Gets theIdsof the auditors.Gets the auditors.getInquiryRecord(Type inquiryRecordType) Gets the inquiry record corresponding to the givenInquiryrecordType.This method is used to retrieve an object implementing the requested record.Gets the question.booleanTests if a positiveResponseis required for thisInquiryto pass theAudit.booleanTests if aResponseis required for thisInquiry.booleanTests if a single effectiveResponseis required.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
-
getAuditorIds
IdList getAuditorIds()Gets theIdsof the auditors.- Returns:
- the auditor
Ids - Compliance:
mandatory- This method must be implemented.
-
getAuditors
Gets the auditors.- Returns:
- the auditors
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAuditId
Id getAuditId()Gets theIdof the audit.- Returns:
- the audit
Id - Compliance:
mandatory- This method must be implemented.
-
getAudit
Gets the audit.- Returns:
- the audit
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getQuestion
DisplayText getQuestion()Gets the question.- Returns:
- the question
- Compliance:
mandatory- This method must be implemented.
-
isRequired
boolean isRequired()Tests if aResponseis required for thisInquiry.- Returns:
trueif a response is required, false if optional- Compliance:
mandatory- This method must be implemented.
-
isAffirmationRequired
boolean isAffirmationRequired()Tests if a positiveResponseis required for thisInquiryto pass theAudit.- Returns:
trueif a positive response is required, false if optional- Compliance:
mandatory- This method must be implemented.
-
needsOneResponse
boolean needsOneResponse()Tests if a single effectiveResponseis required.- Returns:
trueif a single effective response is required, false responses should be collected for every inquiry- Compliance:
mandatory- This method must be implemented.
-
getInquiryRecord
InquiryRecord getInquiryRecord(Type inquiryRecordType) throws OperationFailedException, PermissionDeniedException Gets the inquiry record corresponding to the givenInquiryrecordType.This method is used to retrieve an object implementing the requested record. TheinquiryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(inquiryRecordType)istrue.- Parameters:
inquiryRecordType- the type of inquiry record to retrieve- Returns:
- the inquiry record
- Throws:
NullArgumentException-inquiryRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(inquiryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-