public interface ActivityBundleLookupSession extends OsidSession
This session defines methods for retrieving activity bundles. An
ActivityBundle is a set of Activities in which a
student can be registered.
This lookup session defines several views:
ActivityBundles with the
ActivityBundleAdminSession. The methods useFederatedCourseCatalogView() and
useIsolatedCourseCatalogView() behave as a radio group and one
should be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupActivityBundles()
Tests if this user can perform
ActivityBundle lookups. |
ActivityBundle |
getActivityBundle(Id activityBundleId)
Gets the
ActivityBundle specified by its Id. |
ActivityBundleList |
getActivityBundles()
Gets all
ActivityBundles. |
ActivityBundleList |
getActivityBundlesByActivity(Id activityId)
Gets an
ActivityBundleList for a given activity. |
ActivityBundleList |
getActivityBundlesByGenusType(Type activityBundleGenusType)
Gets an
ActivityBundleList corresponding to the given
activity bundle genus Type which does not include
activity bundles of types derived from the specified Type. |
ActivityBundleList |
getActivityBundlesByIds(IdList activityBundleIds)
Gets an
ActivityBundleList corresponding to the given
IdList. |
ActivityBundleList |
getActivityBundlesByParentGenusType(Type activityBundleGenusType)
Gets an
ActivityBundleList corresponding to the given
course genus Type and include any additional activity
bundles with genus types derived from the specified Type. |
ActivityBundleList |
getActivityBundlesByRecordType(Type activityBundleRecordType)
Gets an
ActivityBundleList containing the given
activity bundle record Type. |
ActivityBundleList |
getActivityBundlesForCourseOffering(Id courseOfferingId)
Gets an
ActivityBundleList for a given course offering
. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
useComparativeActivityBundleView()
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 |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
void |
usePlenaryActivityBundleView()
A complete view of the
ActivityBundle 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 canLookupActivityBundles()
ActivityBundle 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 useComparativeActivityBundleView()
mandatory - This method is must be implemented. void usePlenaryActivityBundleView()
ActivityBundle 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. ActivityBundle getActivityBundle(Id activityBundleId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityBundle specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned
ActivityBundle may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a Course and retained for compatibility.activityBundleId - the Id of the
ActivityBundle to retrieve ActivityBundle NotFoundException - no ActivityBundle
found with the given Id NullArgumentException - activityBundleId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesByIds(IdList activityBundleIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityBundleList corresponding to the given
IdList. In plenary mode, the returned list contains all
of the activity bundles 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 ActivityBundles may be omitted
from the list and may present the elements in any order including
returning a unique set.activityBundleIds - the list of Ids to retrieve ActivityBundle listNotFoundException - an Id was not foundNullArgumentException - activityBundleIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesByGenusType(Type activityBundleGenusType) throws OperationFailedException, PermissionDeniedException
ActivityBundleList corresponding to the given
activity bundle genus Type which does not include
activity bundles of types derived from the specified Type.
In plenary mode, the returned list contains all known activity
bundles or an error results. Otherwise, the returned list may contain
only those activity bundles that are accessible through this session.activityBundleGenusType - an activity bundle genus type ActivityBundle listNullArgumentException - activityBundleGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesByParentGenusType(Type activityBundleGenusType) throws OperationFailedException, PermissionDeniedException
ActivityBundleList corresponding to the given
course genus Type and include any additional activity
bundles with genus types derived from the specified Type.
In plenary mode, the returned list contains all known activity
bundles or an error results. Otherwise, the returned list may contain
only those activity bundles that are accessible through this session.activityBundleGenusType - an activity bundle genus type ActivityBundle listNullArgumentException - activityBundleGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesByRecordType(Type activityBundleRecordType) throws OperationFailedException, PermissionDeniedException
ActivityBundleList containing the given
activity bundle record Type. In plenary mode, the
returned list contains all known courses or an error results.
Otherwise, the returned list may contain only those activity bundles
that are accessible through this session.activityBundleRecordType - an activity bundle record type ActivityBundle listNullArgumentException - activityBundleRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesForCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
ActivityBundleList for a given course offering
. In plenary mode, the returned list contains all known
courses or an error results. Otherwise, the returned list may contain
only those activity bundles that are accessible through this session.courseOfferingId - a course offering Id ActivityBundle listNullArgumentException - courseOfferingId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundlesByActivity(Id activityId) throws OperationFailedException, PermissionDeniedException
ActivityBundleList for a given activity. In
plenary mode, the returned list contains all known courses or an error
results. Otherwise, the returned list may contain only those activity
bundles that are accessible through this session.activityId - an activity Id ActivityBundle listNullArgumentException - activityId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ActivityBundleList getActivityBundles() throws OperationFailedException, PermissionDeniedException
ActivityBundles. In plenary mode, the returned
list contains all known activity bundles or an error results.
Otherwise, the returned list may contain only those courses that are
accessible through this session. ActivityBundles OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.