OSID Logo
OSID Specifications
offering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.ResultLookupSession
Implementsosid.OsidSession
Description

This session defines methods for retrieving results.

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 catalogue view: All result methods in this session operate, retrieve and pertain to results defined explicitly in the current catalogue. Using an isolated view is useful for managing results with the ResultAdminSession.
  • federated catalogue view: All result lookup methods in this session operate, retrieve and pertain to all results defined in this catalogue and any other catalogues implicitly available in this catalogue through catalogue inheritence.
  • effective result view: All result lookup methods return results where the current date falls in between the effective dates inclusive.
  • any effective result view: Results of any effective date are returned from methods.

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

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Idthe Catalogue Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Cataloguethe catalogue
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupResults
Description

Tests if this user can examine this catalogue. 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 opt not to offer these operations.

Returnboolean false if catalogue reading methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeResultView
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.
MethodusePlenaryResultView
Description

A complete view of the Result 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.
MethoduseFederatedCatalogueView
Description

Federates the view for methods in this session. A federated view will include results in catalogues which are children of this catalogue in the catalogue hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCatalogueView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseEffectiveResultView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveResultView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetResult
Description

Gets the Result specified by its Id.

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

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

Parametersosid.id.IdresultIdthe Id of the Result to retrieve
Returnosid.offering.Resultthe returned Result
ErrorsNOT_FOUNDno Result found with the given Id
NULL_ARGUMENT resultId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByIds
Description

Gets an ResultList corresponding to the given IdList.

In plenary mode, the returned list contains all of the results 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 results may be omitted from the list and may present the elements in any order including returning a unique set.

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

Parametersosid.id.IdListresultIdsthe list of Ids to retrieve
Returnosid.offering.ResultListthe returned Result list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT resultIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByGenusType
Description

Gets an ResultList corresponding to the given result genus Type which does not include results of types derived from the specified Type.

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

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

Parametersosid.type.TyperesultGenusTypean results genus type
Returnosid.offering.ResultListthe returned Result list
ErrorsNULL_ARGUMENT resultGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByParentGenusType
Description

Gets an ResultList corresponding to the given result genus Type and include any additional results with genus types derived from the specified Type.

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

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

Parametersosid.type.TyperesultGenusTypea result genus type
Returnosid.offering.ResultListthe returned Result list
ErrorsNULL_ARGUMENT resultGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByRecordType
Description

Gets an ResultList containing the given result record Type.

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

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

Parametersosid.type.TyperesultRecordTypean result record type
Returnosid.offering.ResultListthe returned ResultList
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsOnDate
Description

Gets an ResultList effective during the entire given date range inclusive but not confined to the date range.

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

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

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.ResultListthe returned ResultList
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.
MethodgetResultsByGenusTypeOnDate
Description

Gets an ResultList by genus type effective during the entire given date range inclusive but not confined to the date range.

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

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

Parametersosid.type.TyperesultGenusTypea results genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.ResultListthe returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resultGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsForParticipant
Description

Gets an ResultList for the given participant Id.

In plenary mode, the returned list contains all of the results corresponding to the given participant, including duplicates, or an error results if an result is inaccessible. Otherwise, inaccessible Results may be omitted from the list.

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

Parametersosid.id.IdparticipantIda participant Id
Returnosid.offering.ResultListthe returned ResultList
ErrorsNULL_ARGUMENT participantId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByGenusTypeForParticipant
Description

Gets an ResultList for the given participant Id.

In plenary mode, the returned list contains all of the results corresponding to the given participant, including duplicates, or an error results if an result is inaccessible. Otherwise, inaccessible Results may be omitted from the list.

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

Parametersosid.id.IdparticipantIda participant Id
osid.type.TyperesultGenusTypea results genus type
Returnosid.offering.ResultListthe returned ResultList
ErrorsNULL_ARGUMENT participantId or resultGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsForParticipantOnDate
Description

Gets a list of results for a participant 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 results or an error results. Otherwise, the returned list may contain only those results that are accessible through this session.

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

Parametersosid.id.IdparticipantIda participant Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.ResultListthe returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT participantId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResultsByGenusTypeForParticipantOnDate
Description

Gets a list of results for a participant 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 results or an error results. Otherwise, the returned list may contain only those results that are accessible through this session.

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

Parametersosid.id.IdparticipantIda participant Id
osid.type.TyperesultGenusTypea results genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.ResultListthe returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT participantId, resultGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResults
Description

Gets all results.

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

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

Returnosid.offering.ResultLista list of results
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.