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

This session defines methods for retrieving responses.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated inquest view: All response methods in this session operate, retrieve and pertain to responses defined explicitly in the current inquest. Using an isolated view is useful for managing Responses with the ResponseAdminSession.
  • federated inquest view: All response lookup methods in this session operate, retrieve and pertain to all responses defined in this inquest and any other responses implicitly available in this inquest through inquest inheritence.
  • effective response view: All response lookup methods return responses where the current date falls in between the effective dates inclusive.
  • any effective response view: responses of any effective date are returned from methods.

The methods useFederatedInquestView() and useIsolatedInquestView() behave as a radio group and one should be selected before invoking any lookup methods.

Responses may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the responses.

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.
MethodcanLookupResponses
Description

Tests if this user can perform Response 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.
MethoduseComparativeResponseView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryResponseView
Description

A complete view of the Response returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedInquestView
Description

Federates the view for methods in this session. A federated view will include responses in inquests which are children of this inquest in the inquest hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedInquestView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this inquest only.

CompliancemandatoryThis method is must be implemented.
MethoduseEffectiveResponseView
Description

Only responses whose effective dates are current are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveResponseView
Description

All responses of any effective dates are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethodgetResponse
Description

Gets the Response specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Response may have a different Id than requested, such as the case where a duplicate Id was assigned to a Response and retained for compatibility.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdresponseIdthe Id of the Response to retrieve
Returnosid.inquiry.Responsethe returned Response
ErrorsNOT_FOUNDno Response found with the given Id
NULL_ARGUMENT responseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesByIds
Description

Gets a ResponseList corresponding to the given IdList.

In plenary mode, the returned list contains all of the responses specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Responses may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdListresponseIdsthe list of Ids to retrieve
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT responseIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesByGenusType
Description

Gets a ResponseList corresponding to the given response genus Type which does not include responses of types derived from the specified Type.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.type.TyperesponseGenusTypea response genus type
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT responseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesByParentGenusType
Description

Gets a ResponseList corresponding to the given response genus Type and include any additional responses with genus types derived from the specified Type.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.type.TyperesponseGenusTypea response genus type
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT responseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesByRecordType
Description

Gets a ResponseList containing the given response record Type.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.type.TyperesponseRecordTypea response record type
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT responseRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesOnDate
Description

Gets a list of responses effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective in addition to being effective in the given date range. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForInquiry
Description

Gets a list of responses for an inquiry.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.Idinquiryan inquiry Id
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT inquiry is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForInquiryOnDate
Description

Gets a list of responses for the given inquiry effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective in addition to being effective in the given date range. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.Idinquiryan inquiry Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT inquiryId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForResponder
Description

Gets a list of responses for a resource.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForResponderOnDate
Description

Gets a list of responses for a resource and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective in addition to being effective in the given date range. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForInquiryAndResponder
Description

Gets a list of responses for an inquiry and responder.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdinquiryIdan inquiry Id
osid.id.IdresourceIda resource Id
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsNULL_ARGUMENT inquiryId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponsesForInquiryAndResponderOnDate
Description

Gets a list of responses for an inquiry and responder and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known responses or an error results. Otherwise, the returned list may contain only those responses that are accessible through this session.

In effective mode, responses are returned that are currently effective in addition to being effective in the given date range. In any effective mode, effective responses and those currently expired are returned.

Parametersosid.id.IdinquiryIdan inquiry Id
osid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.inquiry.ResponseListthe returned Response list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT inquiryId, resourceId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResponses
Description

Gets all responses.

In plenary mode, the returned list contains all of the responses including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Responses may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, responses are returned that are currently effective. In any effective mode, effective responses and those currently expired are returned.

Returnosid.inquiry.ResponseListthe returned Response list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.