Interface CourseCatalogHierarchyDesignSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for managing a hierarchy of
CourseCatalogs . Each node in the hierarchy is a unique
CourseCatalog .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildCourseCatalog(Id courseCatalogId, Id childId) Adds a child to a course catalog.voidaddRootCourseCatalog(Id courseCatalogId) Adds a root course ecatalog.booleanTests if this user can change the hierarchy.Gets the hierarchy associated with this session.Gets the hierarchyIdassociated with this session.voidremoveChildCourseCatalog(Id courseCatalogId, Id childId) Removes a child from a course catalog.voidremoveChildCourseCatalogs(Id courseCatalogId) Removes all children from a course catalog.voidremoveRootCourseCatalog(Id courseCatalogId) Removes a root course ecatalog.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCourseCatalogHierarchyId
Id getCourseCatalogHierarchyId()Gets the hierarchyIdassociated with this session.- Returns:
- the hierarchy
Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCourseCatalogHierarchy
Gets the hierarchy associated with this session.- Returns:
- the hierarchy associated with this session
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canModifyCourseCatalogHierarchy
boolean canModifyCourseCatalogHierarchy()Tests if this user can change the hierarchy. A return of true does not guarantee successful authorization. A return of false indicates that it is known performing any update will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer these operations to an unauthorized user.- Returns:
falseif changing this hierarchy is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
addRootCourseCatalog
void addRootCourseCatalog(Id courseCatalogId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds a root course ecatalog.- Parameters:
courseCatalogId- theIdof a course catalog- Throws:
AlreadyExistsException-courseCatalogIdis already in hierarchyNotFoundException-courseCatalogIdnot foundNullArgumentException-courseCatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
removeRootCourseCatalog
void removeRootCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes a root course ecatalog.- Parameters:
courseCatalogId- theIdof a course catalog- Throws:
NotFoundException-courseCatalogIdnot a rootNullArgumentException-courseCatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
addChildCourseCatalog
void addChildCourseCatalog(Id courseCatalogId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds a child to a course catalog.- Parameters:
courseCatalogId- theIdof a course catalogchildId- theIdof the new child- Throws:
AlreadyExistsException-courseCatalogIdis already a parent ofchildIdNotFoundException-courseCatalogIdorchildIdnot foundNullArgumentException-courseCatalogIdorchildIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
removeChildCourseCatalog
void removeChildCourseCatalog(Id courseCatalogId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes a child from a course catalog.- Parameters:
courseCatalogId- theIdof a course catalogchildId- theIdof the new child- Throws:
NotFoundException-courseCatalogIdis not a parent ofchildIdNullArgumentException-courseCatalogIdorchildIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
removeChildCourseCatalogs
void removeChildCourseCatalogs(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes all children from a course catalog.- Parameters:
courseCatalogId- theIdof a course catalog- Throws:
NotFoundException-courseCatalogIdis in hierarchyNullArgumentException-courseCatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-