OSID Logo
OSID Specifications
inquiry package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inquiry.AcknowledgementSession
Implementsosid.OsidSession
Description

This session defines methods for evaluating and responding to inquiries for users.

MethodgetInquestId
Description

Gets the Inquest Id associated with this session.

Returnosid.id.Idthe Inquest Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetInquest
Description

Gets the Inquest associated with this session.

Returnosid.inquiry.Inquestthe inquest
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanGetMyInquiries
Description

Tests if this user can perform Inquiry lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetMyInquiries
Description

Gets the inquiries needing a response for the resource related to this agent.

Parametersosid.id.IdauditIdthe Id of an Audit
Returnosid.inquiry.InquiryListthe returned InquiryList
ErrorsNULL_ARGUMENT auditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRespond
Description

Tests if this user can create responses. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a Response will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if Response creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateResponseWithRecordTypes
Description

Tests if this user can create a single Response using the desired record types. While ControlManager.getResponseRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific Response. Providing an empty array tests if a Response can be created with no records.

Parametersosid.type.Type[]responseRecordTypesarray of response record types
Returnboolean true if Response creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT responseRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetResponseForm
Description

Gets the response form for creating new responses from this agent. A new form should be requested for each create transaction.

Parametersosid.id.IdinquiryIdthe Id for the inquiry
osid.type.Type[]responseRecordTypesarray of response record types
Returnosid.inquiry.ResponseFormthe response form
ErrorsNOT_FOUND inquiryId is not found
NULL_ARGUMENT inquiryId or responseRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
Methodrespond
Description

Creates a new Response from this agent.

Parametersosid.inquiry.ResponseFormresponseFormthe form for this Response
Returnosid.inquiry.Responsethe new Response
ErrorsILLEGAL_STATE responseForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT responseForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED responseForm did not originate from getResponseFormForCreate()
CompliancemandatoryThis method must be implemented.