public interface ProgramCourseCatalogAssignmentSession extends OsidSession
This session provides methods to re-assign Programs to
CourseCatalogs. A Program may appear in
multiple CourseCatalogs and removing the last reference to
a Program 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 a Program to another
CourseCatalog is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignProgramToCourseCatalog(Id programId,
Id courseCatalogId)
Adds an existing
Program to a CourseCatalog. |
boolean |
canAssignPrograms()
Tests if this user can alter program/course catalog mappings.
|
boolean |
canAssignProgramToCourseCatalog(Id courseCatalogId)
Tests if this user can alter program/course catalog mappings.
|
IdList |
getAssignableCourseCatalogIds(Id courseCatalogId)
Gets a list of course catalogs including and under the given course
catalog node in which any program can be assigned.
|
IdList |
getAssignableCourseCatalogIdsForProgram(Id courseCatalogId,
Id programId)
Gets a list of course catalogs including and under the given course
catalog node in which a specific program can be assigned.
|
void |
reassignProgramToCourseCatalog(Id programId,
Id fromCourseCatalogId,
Id toCourseCatalogId)
Moves a
Program from one CourseCatalog
to another. |
void |
unassignProgramFromCourseCatalog(Id programId,
Id courseCatalogId)
Removes a
Program from a CourseCatalog. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignPrograms()
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 canAssignProgramToCourseCatalog(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 getAssignableCourseCatalogIdsForProgram(Id courseCatalogId, Id programId) throws OperationFailedException
courseCatalogId - the Id of the
CourseCatalog programId - the Id of the Program Ids NullArgumentException - courseCatalogId
or programId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignProgramToCourseCatalog(Id programId, Id courseCatalogId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Program to a CourseCatalog.
programId - the Id of the Program courseCatalogId - the Id of the
CourseCatalog AlreadyExistsException - programId is
already assigned to courseCatalogId NotFoundException - programId or
courseCatalogId not foundNullArgumentException - programId or
courseCatalogId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignProgramFromCourseCatalog(Id programId, Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Program from a CourseCatalog. programId - the Id of the Program courseCatalogId - the Id of the
CourseCatalog NotFoundException - programId or
courseCatalogId not found or programId
not assigned to courseCatalogId NullArgumentException - programId or
courseCatalogId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void reassignProgramToCourseCatalog(Id programId, Id fromCourseCatalogId, Id toCourseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Program from one CourseCatalog
to another. Mappings to other CourseCatalogs are
unaffected.programId - the Id of the Program fromCourseCatalogId - the Id of the current
CourseCatalog toCourseCatalogId - the Id of the destination
CourseCatalog NotFoundException - programId,
fromCourseCatalogId, or toCourseCatalogId
not found or programId, not mapped to
fromCourseCatalogId NullArgumentException - programId,
fromCourseCatalogId, or toCourseCatalogId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.