public interface ActivityRegistrationSmartCourseCatalogSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An ActivityRegistrationQuery
can be retrieved
from this session and mapped to this CoursOfferingeCatalog
to create a virtual collection of ActivityRegistrations.
The activity registrations may be sequenced using the
ActivityRegistrationSearchOrder
from this session.
This CourseCatalog
has a default query that matches any
activity registration and a default search order that specifies no
sequencing. The queries may be examined using an
ActivityRegistrationQueryInspector.
The query may be modified by
converting the inspector back to an ActivityRegistrationQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyActivityRegistrationQuery(ActivityRegistrationQuery activityRegistrationQuery)
Applies an activity registration query to this course catalog.
|
void |
applyActivityRegistrationSequencing(ActivityRegistrationSearchOrder activityRegistrationSearchOrder)
Applies an activity registration search order to this course catalog.
|
boolean |
canManageSmartCourseCatalogs()
Tests if this user can manage smart course catalogs.
|
ActivityRegistrationQuery |
getActivityRegistrationQuery()
Gets an activity registration query.
|
ActivityRegistrationQuery |
getActivityRegistrationQueryFromInspector(ActivityRegistrationQueryInspector activityRegistrationQueryInspector)
Gets an activity registration query from an inspector.
|
ActivityRegistrationSearchOrder |
getActivityRegistrationSearchOrder()
Gets an activity registration search order.
|
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
ActivityRegistrationQueryInspector |
inspectActivityRegistrationQuery()
Gets an activity registration 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. ActivityRegistrationQuery getActivityRegistrationQuery()
mandatory
- This method must be implemented. ActivityRegistrationSearchOrder getActivityRegistrationSearchOrder()
mandatory
- This method must be implemented. void applyActivityRegistrationQuery(ActivityRegistrationQuery activityRegistrationQuery) throws OperationFailedException, PermissionDeniedException
activityRegistrationQuery
- the activity registration queryNullArgumentException
-
activityRegistrationQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- activityRegistrationQuery
not of this servicemandatory
- This method must be implemented. ActivityRegistrationQueryInspector inspectActivityRegistrationQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyActivityRegistrationSequencing(ActivityRegistrationSearchOrder activityRegistrationSearchOrder) throws OperationFailedException, PermissionDeniedException
activityRegistrationSearchOrder
- the activity registration
search orderNullArgumentException
-
activityRegistrationSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
activityRegistrationSearchOrder
not of this servicemandatory
- This method must be implemented. ActivityRegistrationQuery getActivityRegistrationQueryFromInspector(ActivityRegistrationQueryInspector activityRegistrationQueryInspector)
activityRegistrationQueryInspector
- a query inspectorNullArgumentException
-
activityRegistrationQueryInspector
is null
UnsupportedException
-
activityRegistrationQueryInspector
is not of this
servicemandatory
- This method must be implemented.