public interface ActivityRegistrationCourseCatalogAssignmentSession extends OsidSession
This session provides methods to re-assign ActivityRegistrations
to CourseCatalog
objects An
ActivityRegistration
may appear in multiple CourseCatalog
objects and removing the last reference to an
ActivityRegistration
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 ActivityRegistration
to
another CourseCatalog
is not a copy operation (eg: does not
change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignActivityRegistrationToCourseCatalog(Id activityRegistrationId,
Id courseCatalogId)
Adds an existing
ActivityRegistration to a
CourseCatalog. |
boolean |
canAssignActivityRegistrations()
Tests if this user can alter activity registration/course catalog
mappings.
|
boolean |
canAssignActivityRegistrationToCourseCatalog(Id courseCatalogId)
Tests if this user can alter activity registration/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 registration can be assigned.
|
IdList |
getAssignableCourseCatalogIdsForActivityRegistration(Id courseCatalogId,
Id activityRegistrationId)
Gets a list of course catalogs including and under the given course
catalog node in which a specific activity registration can be
assigned.
|
void |
reassignActivityRegistrationToCourseCatalog(Id activityRegistrationId,
Id fromCourseCatalogId,
Id toCourseCatalogId)
Moves an
ActivityRegistration from one
CourseCatalog to another. |
void |
unassignActivityRegistrationFromCourseCatalog(Id activityRegistrationId,
Id courseCatalogId)
Removes an
ActivityRegistration from a
CourseCatalog. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignActivityRegistrations()
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 canAssignActivityRegistrationToCourseCatalog(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 getAssignableCourseCatalogIdsForActivityRegistration(Id courseCatalogId, Id activityRegistrationId) throws OperationFailedException
courseCatalogId
- the Id
of the
CourseCatalog
activityRegistrationId
- the Id
of the
ActivityRegistration
Ids
NullArgumentException
- courseCatalogId
or activityRegistrationId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignActivityRegistrationToCourseCatalog(Id activityRegistrationId, Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityRegistration
to a
CourseCatalog.
activityRegistrationId
- the Id
of the
ActivityRegistration
courseCatalogId
- the Id
of the
CourseCatalog
NotFoundException
- activityRegistrationId
or courseCatalogId
not foundNullArgumentException
- activityRegistrationId
or courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignActivityRegistrationFromCourseCatalog(Id activityRegistrationId, Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityRegistration
from a
CourseCatalog.
activityRegistrationId
- the Id
of the
ActivityRegistration
courseCatalogId
- the Id
of the
CourseCatalog
NotFoundException
- activityRegistrationId
or courseCatalogId
not foundNullArgumentException
- activityRegistrationId
or courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void reassignActivityRegistrationToCourseCatalog(Id activityRegistrationId, Id fromCourseCatalogId, Id toCourseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActivityRegistration
from one
CourseCatalog
to another. Mappings to other
CourseCatalogs
are unaffected.activityRegistrationId
- the Id
of the
ActivityRegistration
fromCourseCatalogId
- the Id
of the current
CourseCatalog
toCourseCatalogId
- the Id
of the destination
CourseCatalog
NotFoundException
- activityRegistrationId,
fromCourseCatalogId,
or toCourseCatalogId
not found or activityRegistrationId
not
mapped to fromCourseCatalogId
NullArgumentException
- activityRegistrationId,
fromCourseCatalogId,
or toCourseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.