| Interface | osid.voting.PollsHierarchySession | ||
|---|---|---|---|
| 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 | getPollsHierarchyId | ||
| Description | 
                     Gets the hierarchy   | ||
| Return | osid.id.Id | the hierarchy  Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsHierarchy | ||
| 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 | canAccessPollsHierarchy | ||
| 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 | useComparativePollsView | ||
| Description | 
                     The returns from the polls 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 | usePlenaryPollsView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRootPollsIds | ||
| Description | 
                     Gets the root polls   | ||
| Return | osid.id.IdList | the root polls  Ids   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRootPolls | ||
| Description | 
                     Gets the root polls in the polls hierarchy. A node with 
                    no parents is an orphan. While all polls   | ||
| Return | osid.voting.PollsList | the root polls | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | hasParentPolls | ||
| Description | 
                     Tests if the   | ||
| Parameters | osid.id.Id | pollsId | the  Id  of a polls  | 
| Return | boolean |  true  if the polls has parents,  false  
otherwise  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isParentOfPolls | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | pollsId | the  Id  of a polls  | |
| Return | boolean |  true  if this  id  is a parent of  
pollsId,   false  otherwise  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  id  or  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getParentPollsIds | ||
| Description | 
                     Gets the parent   | ||
| Parameters | osid.id.Id | pollsId | the  Id  of a polls  | 
| Return | osid.id.IdList | the parent  Ids  of the polls  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getParentPolls | ||
| Description | 
                     Gets the parents of the given polls.  | ||
| Parameters | osid.id.Id | pollsId | the  Id  to query  | 
| Return | osid.voting.PollsList | the parents of the polls | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAncestorOfPolls | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | pollsId | the  Id  of a polls  | |
| Return | boolean |  true  if this  id  is an ancestor of  
pollsId,   false  otherwise  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  id  or  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | hasChildPolls | ||
| Description | 
                     Tests if a polls has any children.  | ||
| Parameters | osid.id.Id | pollsId | the  Id  of a polls  | 
| Return | boolean |  true  if the  pollsId  has children,  
false  otherwise  | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isChildOfPolls | ||
| Description | 
                     Tests if a polls is a direct child of another.  | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | pollsId | the  Id  of a polls  | |
| Return | boolean |  true  if the  id  is a child of  pollsId, 
  false  otherwise  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  id  or  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getChildPollsIds | ||
| Description | 
                     Gets the child   | ||
| Parameters | osid.id.Id | pollsId | the  Id  to query  | 
| Return | osid.id.IdList | the children of the polls | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getChildPolls | ||
| Description | 
                     Gets the children of the given polls.  | ||
| Parameters | osid.id.Id | pollsId | the  Id  to query  | 
| Return | osid.voting.PollsList | the children of the polls | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isDescendantOfPolls | ||
| Description | 
                     Tests if an   | ||
| Parameters | osid.id.Id | id | an  Id   | 
osid.id.Id | pollsId | the  Id  of a polls  | |
| Return | boolean |  true  if the  id  is a descendant of the  
pollsId,   false  otherwise  | |
| Errors | NOT_FOUND |  pollsId  is not found  |                 |
| NULL_ARGUMENT |  id  or  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes | 
                                       If   | ||
| Method | getPollsNodeIds | ||
| Description | 
                     Gets a portion of the hierarchy for the given polls.  | ||
| Parameters | osid.id.Id | pollsId | 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 polls node | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsNodes | ||
| Description | 
                     Gets a portion of the hierarchy for the given polls.  | ||
| Parameters | osid.id.Id | pollsId | 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.voting.PollsNode | a polls node | |
| Errors | NOT_FOUND |  pollsId  not found  |                 |
| NULL_ARGUMENT |  pollsId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |