Interface | osid.offering.ResultLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving results. This lookup session defines several views:
The methods | ||
Method | getCatalogueId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Catalogue Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCatalogue | ||
Description |
Gets the | ||
Return | osid.offering.Catalogue | the catalogue | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupResults | ||
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 | ||
Return | boolean | false if catalogue reading methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeResultView | ||
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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryResultView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedCatalogueView | ||
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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedCatalogueView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this catalogue only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useEffectiveResultView | ||
Description |
Only results whose effective dates are current are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectiveResultView | ||
Description |
All results of any effective dates are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getResult | ||
Description |
Gets the In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.id.Id | resultId | the Id of the Result to retrieve |
Return | osid.offering.Result | the returned Result | |
Errors | NOT_FOUND | no Result found with the given Id | |
NULL_ARGUMENT | resultId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByIds | ||
Description |
Gets an In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.id.IdList | resultIds | the list of Ids to retrieve |
Return | osid.offering.ResultList | the returned Result list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | resultIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByGenusType | ||
Description |
Gets an In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.type.Type | resultGenusType | an results genus type |
Return | osid.offering.ResultList | the returned Result list | |
Errors | NULL_ARGUMENT | resultGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByParentGenusType | ||
Description |
Gets an In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.type.Type | resultGenusType | a result genus type |
Return | osid.offering.ResultList | the returned Result list | |
Errors | NULL_ARGUMENT | resultGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByRecordType | ||
Description |
Gets an 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. | ||
Parameters | osid.type.Type | resultRecordType | an result record type |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | NULL_ARGUMENT | resultRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsOnDate | ||
Description |
Gets an 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. | ||
Parameters | osid.calendaring.DateTime | from | start of date range |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByGenusTypeOnDate | ||
Description |
Gets an 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. | ||
Parameters | osid.type.Type | resultGenusType | a results genus type |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | resultGenusType, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsForParticipant | ||
Description |
Gets an In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.id.Id | participantId | a participant Id |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | NULL_ARGUMENT | participantId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByGenusTypeForParticipant | ||
Description |
Gets an In effective mode, results are returned that are currently effective. In any effective mode, effective results and those currently expired are returned. | ||
Parameters | osid.id.Id | participantId | a participant Id |
osid.type.Type | resultGenusType | a results genus type | |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | NULL_ARGUMENT | participantId or resultGenusType is
null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsForParticipantOnDate | ||
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. | ||
Parameters | osid.id.Id | participantId | a participant Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | participantId, from, or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResultsByGenusTypeForParticipantOnDate | ||
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. | ||
Parameters | osid.id.Id | participantId | a participant Id |
osid.type.Type | resultGenusType | a results genus type | |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.offering.ResultList | the returned ResultList | |
Errors | INVALID_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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | getResults | ||
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. | ||
Return | osid.offering.ResultList | a list of results | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |