public interface ActivityBundleCourseCatalogAssignmentSession extends OsidSession
This session provides methods to re-assign ActivityBundles
to CourseCatalog
objects An ActivityBundle
may appear in multiple CourseCatalog
objects and
removing the last reference to an ActivityBundle
is the
equivalent of deleting it. Each CourseCatalog
may have its
own authorizations governing who is allowed to operate on it.
Adding a reference of an ActivityBundle
to another
CourseCatalog
is not a copy operation (eg: does not change
its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignActivityBundleToCourseCatalog(Id activityBundleId,
Id courseCatalogId)
Adds an existing
ActivityBundle to a
CourseCatalog. |
boolean |
canAssignActivityBundles()
Tests if this user can alter activity bundle/course catalog mappings.
|
boolean |
canAssignActivityBundleToCourseCatalog(Id courseCatalogId)
Tests if this user can alter activity bundle/course catalog mappings.
|
IdList |
getAssignableCourseCatalogIds(Id courseCatalogId)
Gets a list of course catalogs including and under the given course
catalog node in which any activity bundle can be assigned.
|
IdList |
getAssignableCourseCatalogIdsForActivityBundle(Id courseCatalogId,
Id activityBundleId)
Gets a list of course catalogs including and under the given course
catalog node in which a specific activity bundle can be assigned.
|
void |
unassignActivityBundleFromCourseCatalog(Id activityBundleId,
Id courseCatalogId)
Removes an
ActivityBundle from a CourseCatalog. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignActivityBundles()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer assignment
operations to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignActivityBundleToCourseCatalog(Id courseCatalogId)
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.courseCatalogId
- the Id
of the
CourseCatalog
false
if mapping is not authorized, true
otherwiseNullArgumentException
- courseCatalogId
is null
mandatory
- This method must be implemented. IdList getAssignableCourseCatalogIds(Id courseCatalogId) throws OperationFailedException
courseCatalogId
- the Id
of the
CourseCatalog
Ids
NullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableCourseCatalogIdsForActivityBundle(Id courseCatalogId, Id activityBundleId) throws OperationFailedException
courseCatalogId
- the Id
of the
CourseCatalog
activityBundleId
- the Id
of the
ActivityBundle
Ids
NullArgumentException
- courseCatalogId
or activityBundleId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignActivityBundleToCourseCatalog(Id activityBundleId, Id courseCatalogId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ActivityBundle
to a
CourseCatalog.
activityBundleId
- the Id
of the
ActivityBundle
courseCatalogId
- the Id
of the
CourseCatalog
AlreadyExistsException
- activityBundleId
is already assigned to courseCatalogId
NotFoundException
- activityBundleId
or
courseCatalogId
not foundNullArgumentException
- activityBundleId
or courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignActivityBundleFromCourseCatalog(Id activityBundleId, Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityBundle
from a CourseCatalog.
activityBundleId
- the Id
of the
ActivityBundle
courseCatalogId
- the Id
of the
CourseCatalog
NotFoundException
- activityBundleId
or
courseCatalogId
not found
activityBundleId
not assigned to
courseCatalogId
NullArgumentException
- activityBundleId
or courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.