Interface | osid.course.CourseCatalogHierarchySession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for traversing a hierarchy of
A user may not be authorized to traverse the entire
hierarchy. Parts of the hierarchy may be made invisible
through omission from the returns of This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
Method | getCourseCatalogHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseCatalogHierarchy | ||
Description |
Gets the hierarchy associated with this session. | ||
Return | osid.hierarchy.Hierarchy | the hierarchy associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canAccessCourseCatalogHierarchy | ||
Description |
Tests if this user can perform hierarchy queries. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known all methods in this session will result in a | ||
Return | boolean | false if hierarchy traversal methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeCourseCatalogView | ||
Description |
The returns from the course catalog methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryCourseCatalogView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootCourseCatalogIds | ||
Description |
Gets the root course catalog | ||
Return | osid.id.IdList | the root catalog Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootCourseCatalogs | ||
Description |
Gets the root course catalogs in the course catalog hierarchy. A node with no parents is an orphan. While all course catalog Ids are known to the hierarchy, an orphan does not appear in the hierarchy unless explicitly added as a root node or child of another node. | ||
Return | osid.course.CourseCatalogList | the root course catalogs | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentCourseCatalogs | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | courseCatalogId | a catalog Id |
Return | boolean | true if the catalog has parents, f alse
otherwise | |
Errors | NOT_FOUND | courseCatalogId is not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfCourseCatalog | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | courseCatalogId | the Id of a catalog | |
Return | boolean | true if this id is a parent of
courseCatalogId, f alse otherwise | |
Errors | NOT_FOUND | courseCatalogId is not found | |
NULL_ARGUMENT | id or courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentCourseCatalogIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | courseCatalogId | a catalog Id |
Return | osid.id.IdList | the parent Ids of the catalog | |
Errors | NOT_FOUND | courseCatalogId is not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentCourseCatalogs | ||
Description |
Gets the parents of the given course catalog. | ||
Parameters | osid.id.Id | courseCatalogId | the Id to query |
Return | osid.course.CourseCatalogList | the parents of the course catalog | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfCourseCatalog | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | courseCatalogId | the Id of a catalog | |
Return | boolean | tru e if this id is an ancestor of
courseCatalogId, false otherwise | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId or id is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildCourseCatalogs | ||
Description |
Tests if a course catalog has any children. | ||
Parameters | osid.id.Id | courseCatalogId | a course catalog Id |
Return | boolean | true if the courseCatalogId has children,
false otherwise | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfCourseCatalog | ||
Description |
Tests if a course catalog is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | courseCatalogId | the Id of a catalog | |
Return | boolean | true if the id is a child of
courseCatalogId, false otherwise | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | id or courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildCourseCatalogIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | courseCatalogId | the Id to query |
Return | osid.id.IdList | the children of the catalog | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildCourseCatalogs | ||
Description |
Gets the children of the given course catalog. | ||
Parameters | osid.id.Id | courseCatalogId | the Id to query |
Return | osid.course.CourseCatalogList | the children of the course catalog | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfCourseCatalog | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | courseCatalogId | the Id of a catalog | |
Return | boolean | true if the id is a descendant of the
courseCatalogId, false otherwise | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | id or courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getCourseCatalogNodeIds | ||
Description |
Gets a portion of the hierarchy for the given course catalog. | ||
Parameters | osid.id.Id | courseCatalogId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the node. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the node. | |
boolean | includeSiblings | true to include the siblings of the given node, false
to omit the siblings | |
Return | osid.hierarchy.Node | a catalog node | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getCourseCatalogNodes | ||
Description |
Gets a portion of the hierarchy for the given course catalog. | ||
Parameters | osid.id.Id | courseCatalogId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the node. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the node. | |
boolean | includeSiblings | true to include the siblings of the given node, false
to omit the siblings | |
Return | osid.course.CourseCatalogNode | a catalog node | |
Errors | NOT_FOUND | courseCatalogId not found | |
NULL_ARGUMENT | courseCatalogId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |