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

This session defines methods for retrieving offerings.

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 offering methods in this session operate, retrieve and pertain to offerings defined explicitly in the current catalogue. Using an isolated view is useful for managing offerings with the OfferingAdminSession.
  • federated catalogue view: All offering lookup methods in this session operate, retrieve and pertain to all offerings defined in this catalogue and any other catalogues implicitly available in this catalogue through catalogue inheritence.
  • effective offering view: All offering lookup methods return offerings where the current date falls in between the effective dates inclusive.
  • any status offering view: Offerings 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.
MethodcanLookupOfferings
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.
MethoduseComparativeOfferingView
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.
MethodusePlenaryOfferingView
Description

A complete view of the Offering 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 offerings 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.
MethoduseEffectiveOfferingView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveOfferingView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetOffering
Description

Gets the Offering specified by its Id.

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

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

Parametersosid.id.IdofferingIdthe Id of the Offering to retrieve
Returnosid.offering.Offeringthe returned Offering
ErrorsNOT_FOUNDno Offering found with the given Id
NULL_ARGUMENT offeringId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByIds
Description

Gets an OfferingList corresponding to the given IdList.

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

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

Parametersosid.id.IdListofferingIdsthe list of Ids to retrieve
Returnosid.offering.OfferingListthe returned Offering list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT offeringIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusType
Description

Gets an OfferingList corresponding to the given offering genus Type which does not include offerings of types derived from the specified Type.

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

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

Parametersosid.type.TypeofferingGenusTypean offerings genus type
Returnosid.offering.OfferingListthe returned Offering list
ErrorsNULL_ARGUMENT offeringGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByParentGenusType
Description

Gets an OfferingList corresponding to the given offering genus Type and include any additional offerings with genus types derived from the specified Type.

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

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

Parametersosid.type.TypeofferingGenusTypean offering genus type
Returnosid.offering.OfferingListthe returned Offering list
ErrorsNULL_ARGUMENT offeringGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByRecordType
Description

Gets an OfferingList containing the given offering record Type.

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

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

Parametersosid.type.TypeofferingRecordTypean offering record type
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT offeringRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsOnDate
Description

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

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

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

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
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.
MethodgetOfferingsByGenusTypeOnDate
Description

Gets an OfferingList by genus type 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.type.TypeofferingGenusTypean offering genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT offeringGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForCanonicalUnit
Description

Gets an OfferingList for the given canonical unit.

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

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT canonicalUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForCanonicalUnit
Description

Gets an OfferingList by genus type for the given canonical unit.

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

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.type.TypeofferingGenusTypean offering genus type
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT canonicalUnitId or offeringGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForCanonicalUnitOnDate
Description

Gets an OfferingList for the given canonical unit 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT canonicalUnitId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForCanonicalUnitOnDate
Description

Gets an OfferingList by genus type for the given canonical unit 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.type.TypeofferingGenusTypean offering genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT canonicalUnitId, offeringGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForTimePeriod
Description

Gets an OfferingList for the given time period.

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

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

Parametersosid.id.IdtimePeriodIda time period Id
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT timePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForTimePeriod
Description

Gets an OfferingList by genus type for the given time period.

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

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

Parametersosid.id.IdtimePeriodIda time period Id
osid.type.TypeofferingGenusTypean offering genus type
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT timePeriodId or offeringGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForTimePeriodOnDate
Description

Gets an OfferingList for the given time period 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdtimePeriodIda time period Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT timePeriodId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForTimePeriodOnDate
Description

Gets an OfferingList by genus type for the given time period 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdtimePeriodIda time period Id
osid.type.TypeofferingGenusTypean offering genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT timePeriodId, offeringGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForCanonicalUnitAndTimePeriod
Description

Gets an OfferingList for the given canonical unit and time period.

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

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.id.IdtimePeriodIda time period Id
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT canonicalUnitId or timePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForCanonicalUnitAndTimePeriod
Description

Gets an OfferingList by genus type for the given canonical unit and time period.

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

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.id.IdtimePeriodIda time period Id
osid.type.TypeofferingGenusTypean offering genus type
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT canonicalUnitId, timePeriodId, or offeringGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsForCanonicalUnitAndTimePeriodOnDate
Description

Gets an OfferingList for the given canonical unit, time period, 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.id.IdtimePeriodIda time period Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT canonicalUnitId, timePeriodId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByGenusTypeForCanonicalUnitAndTimePeriodOnDate
Description

Gets an OfferingList by genus type for the given canonical, time period, 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 offerings or an error results. Otherwise, the returned list may contain only those offerings that are accessible through this session.

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

Parametersosid.id.IdcanonicalUnitIda canonical unit Id
osid.id.IdtimePeriodIda time period Id
osid.type.TypeofferingGenusTypean offering genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT canonicalUnitId, timePeriodId, offeringGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferingsByCodeAndTimePeriod
Description

Gets an OfferingList by code and time period.

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

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

Parametersstringcodea canonical unit Id
osid.id.IdtimePeriodIda time period Id
Returnosid.offering.OfferingListthe returned OfferingList
ErrorsNULL_ARGUMENT code or timePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetOfferings
Description

Gets all offerings.

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

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

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