public interface ProgramOfferingSmartCourseCatalogSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProgramOfferingQuery
can be retrieved from this
session and mapped to this CoursOfferingeCatalog
to create
a virtual collection of ProgramOfferings.
The program
offerings may be sequenced using the ProgramOfferingSearchOrder
from this session.
This CourseCatalog
has a default query that matches any
program offering and a default search order that specifies no sequencing.
The queries may be examined using a ProgramOfferingQueryInspector.
The query may be modified by converting the inspector back to a
ProgramOfferingQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyProgramOfferingQuery(ProgramOfferingQuery programOfferingQuery)
Applies a program offering query to this course catalog.
|
void |
applyProgramOfferingSequencing(ProgramOfferingSearchOrder programOfferingSearchOrder)
Applies a program offering search order to this course catalog.
|
boolean |
canManageSmartCourseCatalogs()
Tests if this user can manage smart course catalogs.
|
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
ProgramOfferingQuery |
getProgramOfferingQuery()
Gets a program offering query.
|
ProgramOfferingQuery |
getProgramOfferingQueryFromInspector(ProgramOfferingQueryInspector programOfferingQueryInspector)
Gets a program offering query from an inspector.
|
ProgramOfferingSearchOrder |
getProgramOfferingSearchOrder()
Gets a program offering search order.
|
ProgramOfferingQueryInspector |
inspectProgramOfferingQuery()
Gets a program offering query inspector for this course catalog.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canManageSmartCourseCatalogs()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart course catalog management is not
authorized, true
otherwisemandatory
- This method must be implemented. ProgramOfferingQuery getProgramOfferingQuery()
mandatory
- This method must be implemented. ProgramOfferingSearchOrder getProgramOfferingSearchOrder()
mandatory
- This method must be implemented. void applyProgramOfferingQuery(ProgramOfferingQuery programOfferingQuery) throws OperationFailedException, PermissionDeniedException
programOfferingQuery
- the program offering queryNullArgumentException
- programOfferingQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- programOfferingQuery
not of this servicemandatory
- This method must be implemented. ProgramOfferingQueryInspector inspectProgramOfferingQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyProgramOfferingSequencing(ProgramOfferingSearchOrder programOfferingSearchOrder) throws OperationFailedException, PermissionDeniedException
programOfferingSearchOrder
- the program offering search orderNullArgumentException
-
programOfferingSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
programOfferingSearchOrder
not of this servicemandatory
- This method must be implemented. ProgramOfferingQuery getProgramOfferingQueryFromInspector(ProgramOfferingQueryInspector programOfferingQueryInspector)
programOfferingQueryInspector
- a query inspectorNullArgumentException
-
programOfferingQueryInspector
is null
UnsupportedException
-
programOfferingQueryInspector
is not of this servicemandatory
- This method must be implemented.