public interface ProgramOfferingLookupSession extends OsidSession
This session defines methods for retrieving program offerings. A
ProgramOffering is an offering of a Program in
which a student can enroll.
This lookup session defines several views:
ProgramOfferings with the
ProgramOfferingAdminSession. The methods useFederatedCourseCatalogView() and
useIsolatedCourseCatalogView() behave as a radio group and one
should be selected before invoking any lookup methods.
Courses may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
Course.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupProgramOfferings()
Tests if this user can perform
ProgramOffering lookups. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
ProgramOffering |
getProgramOffering(Id programOfferingId)
Gets the
ProgramOffering specified by its Id. |
ProgramOfferingList |
getProgramOfferings()
Gets all
ProgramOfferings. |
ProgramOfferingList |
getProgramOfferingsByGenusType(Type programOfferingGenusType)
Gets a
ProgramOfferingList corresponding to the given
program offering genus Type which does not include
program offerings of types derived from the specified Type. |
ProgramOfferingList |
getProgramOfferingsByIds(IdList programOfferingIds)
Gets a
ProgramOfferingList corresponding to the given
IdList. |
ProgramOfferingList |
getProgramOfferingsByParentGenusType(Type programOfferingGenusType)
Gets a
ProgramOfferingList corresponding to the given
porgram offering genus Type and include any additional
program offerings with genus types derived from the specified
Type. |
ProgramOfferingList |
getProgramOfferingsByRecordType(Type programOfferingRecordType)
Gets a
ProgramOfferingList containing the given program
offering record Type. |
ProgramOfferingList |
getProgramOfferingsForProgram(Id programId)
Gets all
ProgramOfferings associated with a given
Program. |
ProgramOfferingList |
getProgramOfferingsForProgramAndTerm(Id programId,
Id termId)
Gets all
ProgramOfferings associated with a given
Term and Program. |
ProgramOfferingList |
getProgramOfferingsForProgramAndTermOnDate(Id programId,
Id termId,
DateTime from,
DateTime to)
Gets a
ProgramOfferingList for the given program, term,
and effective within the given date range inclusive. |
ProgramOfferingList |
getProgramOfferingsForProgramOnDate(Id programId,
DateTime from,
DateTime to)
Gets a
ProgramOfferingList for the given program and
effective within the given date range inclusive. |
ProgramOfferingList |
getProgramOfferingsForTerm(Id termId)
Gets all
ProgramOfferings associated with a given
Term. |
ProgramOfferingList |
getProgramOfferingsForTermOnDate(Id termId,
DateTime from,
DateTime to)
Gets a
ProgramOfferingList for the given term and
effective within the given date range inclusive. |
ProgramOfferingList |
getProgramOfferingsOnDate(DateTime from,
DateTime to)
Gets a
ProgramOfferingList effective within the given
date range inclusive. |
void |
useAnyEffectiveProgramOfferingView()
All methods return program offerings of any effective or expired
status.
|
void |
useComparativeProgramOfferingView()
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 |
useEffectiveProgramOfferingView()
All program offering methods return program offerings where the
current date falls within the effective dates inclusive.
|
void |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
void |
usePlenaryProgramOfferingView()
A complete view of the
ProgramOffering returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCourseCatalogId()
CourseCatalog Id associated
with this session. CourseCatalog Id associated with this
sessionmandatory - This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupProgramOfferings()
ProgramOffering lookups.
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 not offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeProgramOfferingView()
mandatory - This method is must be implemented. void usePlenaryProgramOfferingView()
ProgramOffering 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 useFederatedCourseCatalogView()
mandatory - This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory - This method is must be implemented. void useEffectiveProgramOfferingView()
mandatory - This method is must be implemented. void useAnyEffectiveProgramOfferingView()
mandatory - This method is must be implemented. ProgramOffering getProgramOffering(Id programOfferingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProgramOffering specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
ProgramOffering may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a program and retained for compatibility.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programOfferingId - the Id of the
ProgramOffering to retrieve ProgramOffering NotFoundException - no ProgramOffering
found with the given Id NullArgumentException - programOfferingId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsByIds(IdList programOfferingIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProgramOfferingList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
program 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 ProgramOfferings may be omitted
from the list and may present the elements in any order including
returning a unique set.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programOfferingIds - the list of Ids to retrieve ProgramOffering listNotFoundException - an Id was not foundNullArgumentException - programOfferingIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsByGenusType(Type programOfferingGenusType) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList corresponding to the given
program offering genus Type which does not include
program offerings of types derived from the specified Type.
In plenary mode, the returned list contains all known
program offerings or an error results. Otherwise, the returned list
may contain only those program offerings that are accessible through
this session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programOfferingGenusType - a program offering genus type ProgramOffering listNullArgumentException - programOfferingGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsByParentGenusType(Type programOfferingGenusType) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList corresponding to the given
porgram offering genus Type and include any additional
program offerings with genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
program offerings or an error results. Otherwise, the returned list
may contain only those program offerings that are accessible through
this session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programOfferingGenusType - a program offering genus type ProgramOffering listNullArgumentException - programOfferingGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsByRecordType(Type programOfferingRecordType) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList containing the given program
offering record Type.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programOfferingRecordType - a program offering record type ProgramOffering listNullArgumentException -
programOfferingRecordType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList effective within the given
date range inclusive.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.from - start of date rangeto - end of date range ProgramOffering listInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramOfferings associated with a given
Program. In plenary mode, the returned list contains
all known program offerings or an error results. Otherwise, the
returned list may contain only those program offerings that are
accessible through this session.programId - a program Id ProgramOfferings NullArgumentException - programId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForProgramOnDate(Id programId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList for the given program and
effective within the given date range inclusive.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programId - a program Id from - start of date rangeto - end of date range ProgramOffering listInvalidArgumentException - from is
greater than to NullArgumentException - programId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
ProgramOfferings associated with a given
Term.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.termId - a term Id ProgramOfferings NullArgumentException - termId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForTermOnDate(Id termId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList for the given term and
effective within the given date range inclusive.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.termId - a term Id from - start of date rangeto - end of date range ProgramOffering listInvalidArgumentException - from is
greater than to NullArgumentException - termId, from, or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForProgramAndTerm(Id programId, Id termId) throws OperationFailedException, PermissionDeniedException
ProgramOfferings associated with a given
Term and Program.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programId - a programId Id termId - a term Id ProgramOfferings NullArgumentException - programId or
termId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferingsForProgramAndTermOnDate(Id programId, Id termId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
ProgramOfferingList for the given program, term,
and effective within the given date range inclusive.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned.programId - a program Id termId - a term Id from - start of date rangeto - end of date range ProgramOffering listInvalidArgumentException - from is
greater than to NullArgumentException - programId, termId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ProgramOfferingList getProgramOfferings() throws OperationFailedException, PermissionDeniedException
ProgramOfferings.
In plenary mode, the returned list contains all known program
offerings or an error results. Otherwise, the returned list may
contain only those program offerings that are accessible through this
session.
In effective mode, program offerings are returned where the current
date falls within the effective dates inclusive. In any effective
mode, effective and expired program offerings are returned. ProgramOfferings OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.