| Interface | osid.repository.RepositoryHierarchySession | ||
|---|---|---|---|
| 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 | getRepositoryHierarchyId | ||
| Description | 
                     Gets the hierarchy   | ||
| Return | osid.id.Id | the hierarchy  Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoryHierarchy | ||
| 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 | canAccessRepositoryHierarchy | ||
| 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 | useComparativeRepositoryView | ||
| Description | 
                     The returns from the repository 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 | usePlenaryRepositoryView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRootRepositoryIds | ||
| Description | 
                     Gets the root repository   | ||
| Return | osid.id.IdList | the root repository  Ids   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRootRepositories | ||
| Description | 
                     Gets the root repositories in the repository hierarchy. 
                    A node with no parents is an orphan. While all repository 
                      | ||
| Return | osid.repository.RepositoryList | the root repositories | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | hasParentRepositories | ||
| Description | 
                     Tests if the   | ||
| Parameters | osid.id.Id | repositoryId | a repository  Id   | 
| Return | boolean |  true  if the repository has parents,  false  
otherwise  | |
| Errors | NOT_FOUND |  repositoryId  is not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isParentOfRepository | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | repositoryId | the  Id  of a repository  | |
| Return | boolean |  true  if this  id  is a parent of  
repositoryId,   false  otherwise  | |
| Errors | NOT_FOUND |  repositoryId  is not found  |                 |
| NULL_ARGUMENT |  id  or  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getParentRepositoryIds | ||
| Description | 
                     Gets the parent   | ||
| Parameters | osid.id.Id | repositoryId | a repository  Id   | 
| Return | osid.id.IdList | the parent  Ids  of the repository  | |
| Errors | NOT_FOUND |  repositoryId  is not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getParentRepositories | ||
| Description | 
                     Gets the parents of the given repository.  | ||
| Parameters | osid.id.Id | repositoryId | the  Id  to query  | 
| Return | osid.repository.RepositoryList | the parents of the repository | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAncestorOfRepository | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | repositoryId | the Id of a repository | |
| Return | boolean |  true  if this  id  is an ancestor of  
repositoryId,   false  otherwise  | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | hasChildRepositories | ||
| Description | 
                     Tests if a repository has any children.  | ||
| Parameters | osid.id.Id | repositoryId | a repository  Id   | 
| Return | boolean |  true  if the  repositoryId  has children,  
false  otherwise  | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isChildOfRepository | ||
| Description | 
                     Tests if a node is a direct child of another.  | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | repositoryId | the  Id  of a repository  | |
| Return | boolean |  true  if the  id  is a child of  
repositoryId,   false  otherwise  | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getChildRepositoryIds | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | repositoryId | the  Id  to query  | 
| Return | osid.id.IdList | the children of the repository | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getChildRepositories | ||
| Description | 
                     Gets the children of the given repository.  | ||
| Parameters | osid.id.Id | repositoryId | the  Id  to query  | 
| Return | osid.repository.RepositoryList | the children of the repository | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isDescendantOfRepository | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | repositoryId | the  Id  of a repository  | |
| Return | boolean |  true  if the  id  is a descendant of the  
repositoryId,   false  otherwise  | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  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 | getRepositoryNodeIds | ||
| Description | 
                     Gets a portion of the hierarchy for the given repository.  | ||
| Parameters | osid.id.Id | repositoryId | 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 | the specified repository node | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoryNodes | ||
| Description | 
                     Gets a portion of the hierarchy for the given repository.  | ||
| Parameters | osid.id.Id | repositoryId | 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.repository.RepositoryNode | the specified repository node | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |