public interface ProgramSmartCourseCatalogSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProgramQuery can be retrieved from this session
and mapped to this CourseCatalog to create a virtual
collection of Programs. The courses may be sequenced using
the ProgramSearchOrder from this session.
This CourseCatalog has a default query that matches any
course and a default search order that specifies no sequencing. The
queries may be examined using a ProgramQueryInspector. The
query may be modified by converting the inspector back to a
ProgramQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyProgramQuery(ProgramQuery programQuery)
Applies a program query to this course catalog.
|
void |
applyProgramSequencing(ProgramSearchOrder programSearchOrder)
Applies a program 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. |
ProgramQuery |
getProgramQuery()
Gets a program query.
|
ProgramQuery |
getProgramQueryFromInspector(ProgramQueryInspector programQueryInspector)
Gets a program query from an inspector.
|
ProgramSearchOrder |
getProgramSearchOrder()
Gets a program search order.
|
ProgramQueryInspector |
inspectProgramQuery()
Gets a program query inspector for this course catalog.
|
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 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. ProgramQuery getProgramQuery()
mandatory - This method must be implemented. ProgramSearchOrder getProgramSearchOrder()
mandatory - This method must be implemented. void applyProgramQuery(ProgramQuery programQuery) throws OperationFailedException, PermissionDeniedException
programQuery - the program queryNullArgumentException - programQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - programQuery not
of this servicemandatory - This method must be implemented. ProgramQueryInspector inspectProgramQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyProgramSequencing(ProgramSearchOrder programSearchOrder) throws OperationFailedException, PermissionDeniedException
programSearchOrder - the program search orderNullArgumentException - programSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - programSearchOrder
not of this servicemandatory - This method must be implemented. ProgramQuery getProgramQueryFromInspector(ProgramQueryInspector programQueryInspector)
programQueryInspector - a query inspectorNullArgumentException - programQueryInspector
is null UnsupportedException - programQueryInspector
is not of this servicemandatory - This method must be implemented.