Interface | osid.resourcing.FoundryHierarchySession | ||
---|---|---|---|
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 | getFoundryHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getFoundryHierarchy | ||
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 | canAccessFoundryHierarchy | ||
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 | useComparativeFoundryView | ||
Description |
The returns from the foundry 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 | usePlenaryFoundryView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootFoundryIds | ||
Description |
Gets the root foundry | ||
Return | osid.id.IdList | the root foundry Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootFoundries | ||
Description |
Gets the root foundry in the foundry hierarchy. A
foundry with no parents is an orphan. While all foundry
| ||
Return | osid.resourcing.FoundryList | the root foundries | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentFoundries | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | foundryId | a foundry Id |
Return | boolean | true if the foundry has parents, f alse
otherwise | |
Errors | NOT_FOUND | foundryId is not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfFoundry | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | foundryId | the Id of a foundry | |
Return | boolean | true if this id is a parent of
foundryId, f alse otherwise | |
Errors | NOT_FOUND | foundryId is not found | |
NULL_ARGUMENT | id or foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentFoundryIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | foundryId | a foundry Id |
Return | osid.id.IdList | the parent Ids of the foundry | |
Errors | NOT_FOUND | foundryId is not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentFoundries | ||
Description |
Gets the parents of the given foundry. | ||
Parameters | osid.id.Id | foundryId | the Id to query |
Return | osid.resourcing.FoundryList | the parents of the foundry | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfFoundry | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | foundryId | the Id of a foundry | |
Return | boolean | tru e if this id is an ancestor of
foundryId, false otherwise | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId 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 | hasChildFoundries | ||
Description |
Tests if a foundry has any children. | ||
Parameters | osid.id.Id | foundryId | a foundry Id |
Return | boolean | true if the foundryId has children,
false otherwise | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfFoundry | ||
Description |
Tests if a foundry is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | foundryId | the Id of a foundry | |
Return | boolean | true if the id is a child of
foundryId, false otherwise | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | id or foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildFoundryIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | foundryId | the Id to query |
Return | osid.id.IdList | the children of the foundry | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildFoundries | ||
Description |
Gets the children of the given foundry. | ||
Parameters | osid.id.Id | foundryId | the Id to query |
Return | osid.resourcing.FoundryList | the children of the foundry | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfFoundry | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | foundryId | the Id of a foundry | |
Return | boolean | true if the id is a descendant of the
foundryId, false otherwise | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | id or foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getFoundryNodeIds | ||
Description |
Gets a portion of the hierarchy for the given foundry. | ||
Parameters | osid.id.Id | foundryId | 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 hier.archy | |
boolean | includeSiblings | true to include the siblings of the given foundry,
false to omit the siblings | |
Return | osid.hierarchy.Node | a foundry node | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFoundryNodes | ||
Description |
Gets a portion of the hierarchy for the given foundry. | ||
Parameters | osid.id.Id | foundryId | 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 foundry,
false to omit the siblings | |
Return | osid.resourcing.FoundryNode | a foundry node | |
Errors | NOT_FOUND | foundryId not found | |
NULL_ARGUMENT | foundryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |