OSID Logo
OSID Specifications
inquiry package
Version 3.1.0
Interfaceosid.inquiry.AcknowledgementSession
Implementsosid.OsidSession
Used Byosid.inquiry.InquiryManager
osid.inquiry.InquiryProxyManager
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.Id the Inquest Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetInquest
Description

Gets the Inquest associated with this session.

Returnosid.inquiry.Inquest the inquest
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetMyInquiries
Description

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

Parametersosid.id.IdauditId the Id of an Audit
Returnosid.inquiry.InquiryList the returned InquiryList
ErrorsNULL_ARGUMENT auditId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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[]responseRecordTypes array of response record types
Returnboolean true if Response creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT responseRecordTypes is null
Compliancemandatory This 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.IdinquiryId the Id for the inquiry
osid.type.Type[]responseRecordTypes array of response record types
Returnosid.inquiry.ResponseForm the response form
ErrorsNOT_FOUND inquiryId is not found
NULL_ARGUMENT inquiryId or responseRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
Methodrespond
Description

Creates a new Response from this agent.

Parametersosid.inquiry.ResponseFormresponseForm the form for this Response
Returnosid.inquiry.Response the new Response
ErrorsILLEGAL_STATE responseForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT responseForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED responseForm did not originate from getResponseFormForCreate()
Compliancemandatory This method must be implemented.