| Interface | osid.lexicon.PressHierarchySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.lexicon.LexiconManager | ||
osid.lexicon.LexiconProxyManager | |||
| 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 | getPressHierarchyId | ||
| Description |
Gets the hierarchy | ||
| Return | osid.id.Id | the hierarchy Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPressHierarchy | ||
| 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 | canAccessPressHierarchy | ||
| 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 | useComparativePressView | ||
| Description |
The returns from the press 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 | usePlenaryPressView | ||
| Description |
A complete view of the | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRootPressIds | ||
| Description |
Gets the root press | ||
| Return | osid.id.IdList | the root press Ids | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRootPresses | ||
| Description |
Gets the root press in the press hierarchy. an press
with no parents is an orphan. While all press
| ||
| Return | osid.lexicon.PressList | the root presses | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | hasParentPresses | ||
| Description |
Tests if the | ||
| Parameters | osid.id.Id | pressId | an press Id |
| Return | boolean | true if the press has parents, f alse otherwise | |
| Errors | NOT_FOUND | pressId is not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isParentOfPress | ||
| Description |
Tests if an | ||
| Parameters | osid.id.Id | id | an Id |
osid.id.Id | pressId | the Id of an press | |
| Return | boolean | true if this id is a parent of
pressId , f alse otherwise | |
| Errors | NOT_FOUND | pressId is not found | |
| NULL_ARGUMENT | id or pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If | ||
| Method | getParentPressIds | ||
| Description |
Gets the parent | ||
| Parameters | osid.id.Id | pressId | an press Id |
| Return | osid.id.IdList | the parent Ids of the press | |
| Errors | NOT_FOUND | pressId is not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getParentPresses | ||
| Description |
Gets the parents of the given press. | ||
| Parameters | osid.id.Id | pressId | the Id to query |
| Return | osid.lexicon.PressList | the parents of the press | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAncestorOfPress | ||
| Description |
Tests if an | ||
| Parameters | osid.id.Id | id | an Id |
osid.id.Id | pressId | the Id of an press | |
| Return | boolean | true if this id is an ancestor of
pressId , false otherwise | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId 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 | hasChildPresses | ||
| Description |
Tests if an press has any children. | ||
| Parameters | osid.id.Id | pressId | an press Id |
| Return | boolean | true if the pressId has children,
false otherwise | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isChildOfPress | ||
| Description |
Tests if an press is a direct child of another. | ||
| Parameters | osid.id.Id | id | an Id |
osid.id.Id | pressId | the Id of an press | |
| Return | boolean | true if the id is a child of pressId
, false otherwise | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | id or pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If | ||
| Method | getChildPressIds | ||
| Description |
Gets the child | ||
| Parameters | osid.id.Id | pressId | the Id to query |
| Return | osid.id.IdList | the children of the press | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getChildPresses | ||
| Description |
Gets the children of the given press. | ||
| Parameters | osid.id.Id | pressId | the Id to query |
| Return | osid.lexicon.PressList | the children of the press | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isDescendantOfPress | ||
| Description |
Tests if an | ||
| Parameters | osid.id.Id | id | an Id |
osid.id.Id | pressId | the Id of an press | |
| Return | boolean | true if the id is a descendant of the
pressId , false otherwise | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | id or pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If | ||
| Method | getPressNodeIds | ||
| Description |
Gets a portion of the hierarchy for the given press. | ||
| Parameters | osid.id.Id | pressId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the press. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the press. | |
boolean | includeSiblings | true to include the siblings of the given press,
false to omit the siblings | |
| Return | osid.hierarchy.Node | an press node | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPressNodes | ||
| Description |
Gets a portion of the hierarchy for the given press. | ||
| Parameters | osid.id.Id | pressId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the hierarchy. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the hierarchy. | |
boolean | includeSiblings | true to include the siblings of the given press,
false to omit the siblings | |
| Return | osid.lexicon.PressNode | an press node | |
| Errors | NOT_FOUND | pressId not found | |
| NULL_ARGUMENT | pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |