Interface | osid.relationship.FamilyHierarchySession | ||
---|---|---|---|
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 | getFamilyHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getFamilyHierarchy | ||
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 | canAccessFamilyHierarchy | ||
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 | useComparativeFamilyView | ||
Description |
The returns from the family 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 | usePlenaryFamilyView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootFamilyIds | ||
Description |
Gets the root family | ||
Return | osid.id.IdList | the root family Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootFamilies | ||
Description |
Gets the root families in the family hierarchy. A node
with no parents is an orphan. While all family | ||
Return | osid.relationship.FamilyList | the root families | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentFamilies | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | familyId | the Id of a family |
Return | boolean | true if the family has parents, false
otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfFamily | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | familyId | the Id of a family | |
Return | boolean | true if this id is a parent of
familyId, false otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | id or familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentFamilyIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | familyId | the Id of a family |
Return | osid.id.IdList | the parent Ids of the family | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentFamilies | ||
Description |
Gets the parent families of the given | ||
Parameters | osid.id.Id | familyId | the Id of the Family to query |
Return | osid.relationship.FamilyList | the parent families of the id | |
Errors | NOT_FOUND | a Family identified by Id is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfFamily | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | familyId | the Id of a family | |
Return | boolean | true if this id is an ancestor of
familyId, false otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | id or familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildFamilies | ||
Description |
Tests if a family has any children. | ||
Parameters | osid.id.Id | familyId | the Id of a family |
Return | boolean | true if the familyId has children,
false otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfFamily | ||
Description |
Tests if a family is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | familyId | the Id of a family | |
Return | boolean | true if the id is a child of familyId,
false otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | id or familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildFamilyIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | familyId | the Id to query |
Return | osid.id.IdList | the children of the family | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildFamilies | ||
Description |
Gets the child families of the given | ||
Parameters | osid.id.Id | familyId | the Id of the Family to query |
Return | osid.relationship.FamilyList | the child families of the id | |
Errors | NOT_FOUND | a Family identified by Id is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfFamily | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | familyId | the Id of a family | |
Return | boolean | true if the id is a descendant of the
familyId, false otherwise | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | id or familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getFamilyNodeIds | ||
Description |
Gets a portion of the hierarchy for the given family. | ||
Parameters | osid.id.Id | familyId | 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 family node | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFamilyNodes | ||
Description |
Gets a portion of the hierarchy for the given family. | ||
Parameters | osid.id.Id | familyId | 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.relationship.FamilyNode | a family node | |
Errors | NOT_FOUND | familyId is not found | |
NULL_ARGUMENT | familyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |