OSID Logo
OSID Specifications
offering package
Version 3.1.0
Interfaceosid.offering.ResultLookupSession
Implementsosid.OsidSession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
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.Id the Catalogue Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Catalogue the catalogue
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedCatalogueView
Description

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

Compliancemandatory This method is must be implemented.
MethoduseEffectiveResultView
Description

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

Compliancemandatory This method is must be implemented.
MethoduseAnyEffectiveResultView
Description

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

Compliancemandatory This 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 a 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.IdresultId the Id of the Result to retrieve
Returnosid.offering.Result the returned Result
ErrorsNOT_FOUND no Result found with the given Id
NULL_ARGUMENT resultId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByIds
Description

Gets a 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.IdListresultIds the list of Ids to retrieve
Returnosid.offering.ResultList the returned Result list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT resultIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByGenusType
Description

Gets a 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.TyperesultGenusType a results genus type
Returnosid.offering.ResultList the returned Result list
ErrorsNULL_ARGUMENT resultGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByParentGenusType
Description

Gets a 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.TyperesultGenusType a result genus type
Returnosid.offering.ResultList the returned Result list
ErrorsNULL_ARGUMENT resultGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByRecordType
Description

Gets a 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.TyperesultRecordType a result record type
Returnosid.offering.ResultList the returned ResultList
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsOnDate
Description

Gets a 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.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.offering.ResultList the returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByGenusTypeOnDate
Description

Gets a 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.TyperesultGenusType a results genus type
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.offering.ResultList the returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resultGenusType, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsForParticipant
Description

Gets a 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 a 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.IdparticipantId a participant Id
Returnosid.offering.ResultList the returned ResultList
ErrorsNULL_ARGUMENT participantId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResultsByGenusTypeForParticipant
Description

Gets a 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 a 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.IdparticipantId a participant Id
osid.type.TyperesultGenusType a results genus type
Returnosid.offering.ResultList the returned ResultList
ErrorsNULL_ARGUMENT participantId or resultGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdparticipantId a participant Id
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.offering.ResultList the returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT participantId, from, or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdparticipantId a participant Id
osid.type.TyperesultGenusType a results genus type
osid.calendaring.DateTimefrom start of date range
osid.calendaring.DateTimeto end of date range
Returnosid.offering.ResultList the returned ResultList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT participantId, resultGenusType, from, or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.ResultList a list of results
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.