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