public interface OfferingLookupSession extends OsidSession
This session defines methods for retrieving offerings.
This lookup session defines several views:
OfferingAdminSession. The methods useFederatedCatalogueView() and
useIsolatedCatalogueView() behave as a radio group and one should
be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupOfferings()
Tests if this user can examine this catalogue.
|
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
Offering |
getOffering(Id offeringId)
Gets the
Offering specified by its Id. |
OfferingList |
getOfferings()
Gets all offerings.
|
OfferingList |
getOfferingsByCodeAndTimePeriod(java.lang.String code,
Id timePeriodId)
Gets an
OfferingList by code and time period. |
OfferingList |
getOfferingsByGenusType(Type offeringGenusType)
Gets an
OfferingList corresponding to the given
offering genus Type which does not include offerings of
types derived from the specified Type. |
OfferingList |
getOfferingsByGenusTypeForCanonicalUnit(Id canonicalUnitId,
Type offeringGenusType)
Gets an
OfferingList by genus type for the given
canonical unit. |
OfferingList |
getOfferingsByGenusTypeForCanonicalUnitAndTimePeriod(Id canonicalUnitId,
Id timePeriodId,
Type offeringGenusType)
Gets an
OfferingList by genus type for the given
canonical unit and time period. |
OfferingList |
getOfferingsByGenusTypeForCanonicalUnitAndTimePeriodOnDate(Id canonicalUnitId,
Id timePeriodId,
Type offeringGenusType,
DateTime from,
DateTime to)
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. |
OfferingList |
getOfferingsByGenusTypeForCanonicalUnitOnDate(Id canonicalUnitId,
Type offeringGenusType,
DateTime from,
DateTime to)
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. |
OfferingList |
getOfferingsByGenusTypeForTimePeriod(Id timePeriodId,
Type offeringGenusType)
Gets an
OfferingList by genus type for the given time
period. |
OfferingList |
getOfferingsByGenusTypeForTimePeriodOnDate(Id timePeriodId,
Type offeringGenusType,
DateTime from,
DateTime to)
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. |
OfferingList |
getOfferingsByGenusTypeOnDate(Type offeringGenusType,
DateTime from,
DateTime to)
Gets an
OfferingList by genus type and effective during
the entire given date range inclusive but not confined to the date
range. |
OfferingList |
getOfferingsByIds(IdList offeringIds)
Gets an
OfferingList corresponding to the given
IdList. |
OfferingList |
getOfferingsByParentGenusType(Type offeringGenusType)
Gets an
OfferingList corresponding to the given
offering genus Type and include any additional
offerings with genus types derived from the specified Type. |
OfferingList |
getOfferingsByRecordType(Type offeringRecordType)
Gets an
OfferingList containing the given offering
record Type. |
OfferingList |
getOfferingsForCanonicalUnit(Id canonicalUnitId)
Gets an
OfferingList for the given canonical unit. |
OfferingList |
getOfferingsForCanonicalUnitAndTimePeriod(Id canonicalUnitId,
Id timePeriodId)
Gets an
OfferingList for the given canonical unit and
time period. |
OfferingList |
getOfferingsForCanonicalUnitAndTimePeriodOnDate(Id canonicalUnitId,
Id timePeriodId,
DateTime from,
DateTime to)
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. |
OfferingList |
getOfferingsForCanonicalUnitOnDate(Id canonicalUnitId,
DateTime from,
DateTime to)
Gets an
OfferingList for the given canonical unit and
effective during the entire given date range inclusive but not
confined to the date range. |
OfferingList |
getOfferingsForTimePeriod(Id timePeriodId)
Gets an
OfferingList for the given time period. |
OfferingList |
getOfferingsForTimePeriodOnDate(Id timePeriodId,
DateTime from,
DateTime to)
Gets an
OfferingList for the given time period and
effective during the entire given date range inclusive but not
confined to the date range. |
OfferingList |
getOfferingsOnDate(DateTime from,
DateTime to)
Gets an
OfferingList effective during the entire given
date range inclusive but not confined to the date range. |
void |
useAnyEffectiveOfferingView()
All offerings of any effective dates are returned by methods in this
session.
|
void |
useComparativeOfferingView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useEffectiveOfferingView()
Only offerings whose effective dates are current are returned by
methods in this session.
|
void |
useFederatedCatalogueView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogueView()
Isolates the view for methods in this session.
|
void |
usePlenaryOfferingView()
A complete view of the
Offering returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCatalogueId()
Catalogue Id associated with
this session. Catalogue Id associated with this sessionmandatory - This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupOfferings()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer these operations. false if catalogue reading methods are not
authorized, true otherwisemandatory - This method must be implemented. void useComparativeOfferingView()
mandatory - This method is must be implemented. void usePlenaryOfferingView()
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.mandatory - This method is must be implemented. void useFederatedCatalogueView()
mandatory - This method is must be implemented. void useIsolatedCatalogueView()
mandatory - This method is must be implemented. void useEffectiveOfferingView()
mandatory - This method is must be implemented. void useAnyEffectiveOfferingView()
mandatory - This method is must be implemented. Offering getOffering(Id offeringId) throws NotFoundException, OperationFailedException, PermissionDeniedException
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.offeringId - the Id of the Offering
to retrieve Offering NotFoundException - no Offering found
with the given Id NullArgumentException - offeringId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByIds(IdList offeringIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
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.offeringIds - the list of Ids to retrieve Offering list NotFoundException - an Id was not foundNullArgumentException - offeringIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusType(Type offeringGenusType) throws OperationFailedException, PermissionDeniedException
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.offeringGenusType - an offerings genus type Offering list NullArgumentException - offeringGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByParentGenusType(Type offeringGenusType) throws OperationFailedException, PermissionDeniedException
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.offeringGenusType - an offering genus type Offering list NullArgumentException - offeringGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByRecordType(Type offeringRecordType) throws OperationFailedException, PermissionDeniedException
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.offeringRecordType - an offering record type OfferingList NullArgumentException - offeringRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.from - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeOnDate(Type offeringGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.offeringGenusType - an offering genus typefrom - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - offeringGenusType, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForCanonicalUnit(Id canonicalUnitId) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id OfferingList NullArgumentException - canonicalUnitId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForCanonicalUnit(Id canonicalUnitId, Type offeringGenusType) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id offeringGenusType - an offering genus type OfferingList NullArgumentException - canonicalUnitId
or offeringGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForCanonicalUnitOnDate(Id canonicalUnitId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id from - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - canonicalUnitId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForCanonicalUnitOnDate(Id canonicalUnitId, Type offeringGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id offeringGenusType - an offering genus typefrom - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - canonicalUnitId,
offeringGenusType, from, or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForTimePeriod(Id timePeriodId) throws OperationFailedException, PermissionDeniedException
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.timePeriodId - a time period Id OfferingList NullArgumentException - timePeriodId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForTimePeriod(Id timePeriodId, Type offeringGenusType) throws OperationFailedException, PermissionDeniedException
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.timePeriodId - a time period Id offeringGenusType - an offering genus type OfferingList NullArgumentException - timePeriodId or
offeringGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForTimePeriodOnDate(Id timePeriodId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.timePeriodId - a time period Id from - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - timePeriodId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForTimePeriodOnDate(Id timePeriodId, Type offeringGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.timePeriodId - a time period Id offeringGenusType - an offering genus typefrom - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - timePeriodId,
offeringGenusType, from, or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForCanonicalUnitAndTimePeriod(Id canonicalUnitId, Id timePeriodId) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id timePeriodId - a time period Id OfferingList NullArgumentException - canonicalUnitId
or timePeriodId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForCanonicalUnitAndTimePeriod(Id canonicalUnitId, Id timePeriodId, Type offeringGenusType) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id timePeriodId - a time period Id offeringGenusType - an offering genus type OfferingList NullArgumentException - canonicalUnitId,
timePeriodId, or offeringGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsForCanonicalUnitAndTimePeriodOnDate(Id canonicalUnitId, Id timePeriodId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id timePeriodId - a time period Id from - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - canonicalUnitId,
timePeriodId, from, or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByGenusTypeForCanonicalUnitAndTimePeriodOnDate(Id canonicalUnitId, Id timePeriodId, Type offeringGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
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.canonicalUnitId - a canonical unit Id timePeriodId - a time period Id offeringGenusType - an offering genus typefrom - start of date rangeto - end of date range OfferingList InvalidArgumentException - from is
greater than to NullArgumentException - canonicalUnitId,
timePeriodId, offeringGenusType, from, or to
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferingsByCodeAndTimePeriod(java.lang.String code, Id timePeriodId) throws OperationFailedException, PermissionDeniedException
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.code - a canonical unit Id timePeriodId - a time period Id OfferingList NullArgumentException - code or
timePeriodId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfferingList getOfferings() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.