public interface CourseCatalogHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of
CourseCatalog
objects. Each node in the hierarchy is a unique
CourseCatalog.
Modifier and Type | Method and Description |
---|---|
void |
addChildCourseCatalog(Id courseCatalogId,
Id childId)
Adds a child to a course catalog.
|
void |
addRootCourseCatalog(Id courseCatalogId)
Adds a root course ecatalog.
|
boolean |
canModifyCourseCatalogHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getCourseCatalogHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getCourseCatalogHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildCourseCatalog(Id courseCatalogId,
Id childId)
Removes a child from a course catalog.
|
void |
removeChildCourseCatalogs(Id courseCatalogId)
Removes all children from a course catalog.
|
void |
removeRootCourseCatalog(Id courseCatalogId)
Removes a root course ecatalog.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCourseCatalogHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getCourseCatalogHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyCourseCatalogHierarchy()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false
if changing this hierarchy is not
authorized, true
otherwisemandatory
- This method must be implemented. void addRootCourseCatalog(Id courseCatalogId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
courseCatalogId
- the Id
of a course catalogAlreadyExistsException
- courseCatalogId
is already in hierarchyNotFoundException
- courseCatalogId
not
foundNullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
courseCatalogId
- the Id
of a course catalogNotFoundException
- courseCatalogId
not
a rootNullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildCourseCatalog(Id courseCatalogId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
courseCatalogId
- the Id
of a course catalogchildId
- the Id
of the new childAlreadyExistsException
- courseCatalogId
is already a parent of childId
NotFoundException
- courseCatalogId
or
childId
not foundNullArgumentException
- courseCatalogId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildCourseCatalog(Id courseCatalogId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
courseCatalogId
- the Id
of a course catalogchildId
- the Id
of the new childNotFoundException
- courseCatalogId
is
not a parent of childId
NullArgumentException
- courseCatalogId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildCourseCatalogs(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
courseCatalogId
- the Id
of a course catalogNotFoundException
- courseCatalogId
is
in hierarchyNullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.