| Interface | osid.installation.DepotHierarchySession | ||
|---|---|---|---|
| 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 | getDepotHierarchyId | ||
| Description | 
                     Gets the hierarchy   | ||
| Return | osid.id.Id | the hierarchy  Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDepotHierarchy | ||
| 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 | canAccessDepotHierarchy | ||
| 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 | useComparativeDepotView | ||
| Description | 
                     The returns from the depot 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 | usePlenaryDepotView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRootDepotIds | ||
| Description | 
                     Gets the root depot   | ||
| Return | osid.id.IdList | the root depot  Ids   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRootDepots | ||
| Description | 
                     Gets the root depots in this depot hierarchy.  | ||
| Return | osid.installation.DepotList | the root depots | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | hasParentDepots | ||
| Description | 
                     Tests if the   | ||
| Parameters | osid.id.Id | depotId | the  Id  of a depot  | 
| Return | boolean |  true  if the depot has parents,  false  
otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isParentOfDepot | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | depotId | the  Id  of a depot  | |
| Return | boolean |  true  if this  id  is a parent of  
depotId,   false  otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  id  or  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getParentDepotIds | ||
| Description | 
                     Gets the parent   | ||
| Parameters | osid.id.Id | depotId | the  Id  of a depot  | 
| Return | osid.id.IdList | the parent  Ids  of the depot  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getParentDepots | ||
| Description | 
                     Gets the parents of the given depot.  | ||
| Parameters | osid.id.Id | depotId | the  Id  of a depot  | 
| Return | osid.installation.DepotList | the parents of the depot | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAncestorOfDepot | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | depotId | the  Id  of a depot  | |
| Return | boolean |  true  if this  id  is an ancestor of  
depotId,   false  otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  id  or  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | hasChildDepots | ||
| Description | 
                     Tests if a depot has any children.  | ||
| Parameters | osid.id.Id | depotId | the  Id  of a depot  | 
| Return | boolean |  true  if the  depotId  has children,  
false  otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isChildOfDepot | ||
| Description | 
                     Tests if a depot is a direct child of another.  | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | depotId | the  Id  of a depot  | |
| Return | boolean |  true  if the  id  is a child of  depotId, 
  false  otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  id  or  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getChildDepotIds | ||
| Description | 
                     Gets the child   | ||
| Parameters | osid.id.Id | depotId | the  Id  to query  | 
| Return | osid.id.IdList | the children of the depot | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getChildDepots | ||
| Description | 
                     Gets the children of the given depot.  | ||
| Parameters | osid.id.Id | depotId | the  Id  to query  | 
| Return | osid.installation.DepotList | the children of the depot | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isDescendantOfDepot | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | depotId | the  Id  of a depot  | |
| Return | boolean |  true  if the  id  is a descendant of the  
depotId,   false  otherwise  | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  id  or  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getDepotNodeIds | ||
| Description | 
                     Gets a portion of the hierarchy for the given depot.  | ||
| Parameters | osid.id.Id | depotId | 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 depot node | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getDepotNodes | ||
| Description | 
                     Gets a portion of the hierarchy for the given depot.  | ||
| Parameters | osid.id.Id | depotId | 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.installation.DepotNode | a depot node | |
| Errors | NOT_FOUND |  depotId  is not found  |                 |
| NULL_ARGUMENT |  depotId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |