Interface | osid.rules.EngineHierarchySession | ||
---|---|---|---|
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 | getEngineHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getEngineHierarchy | ||
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 | canAccessEngineHierarchy | ||
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 | useComparativeEngineView | ||
Description |
The returns from the engine 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 | usePlenaryEngineView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootEngineIds | ||
Description |
Gets the root engine | ||
Return | osid.id.IdList | the root engine Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootEngines | ||
Description |
Gets the root engines in this engine hierarchy. | ||
Return | osid.rules.EngineList | the root engines | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentEngines | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | engineId | the Id of a engine |
Return | boolean | true if the engine has parents, false
otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfEngine | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | engineId | the Id of an egine | |
Return | boolean | true if this id is a parent of
engineId, false otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | id or engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentEngineIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | engineId | the Id of an egine |
Return | osid.id.IdList | the parent Ids of the engine | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentEngines | ||
Description |
Gets the parent engines of the given | ||
Parameters | osid.id.Id | engineId | the Id of the Engine to query |
Return | osid.rules.EngineList | the parent engines of the id | |
Errors | NOT_FOUND | an Engine identified by Id is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfEngine | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | engineId | the Id of an engine | |
Return | boolean | true if this id is an ancestor of
engineId, false otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | id or engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildEngines | ||
Description |
Tests if an engine has any children. | ||
Parameters | osid.id.Id | engineId | the Id of an engine |
Return | boolean | true if the engineId has children,
false otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfEngine | ||
Description |
Tests if an engine is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | engineId | the Id of an engine | |
Return | boolean | true if the id is a child of engineId,
false otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | id or engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildEngineIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | engineId | the Id to query |
Return | osid.id.IdList | the children of the engine | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildEngines | ||
Description |
Gets the child engines of the given | ||
Parameters | osid.id.Id | engineId | the Id of the Engine to query |
Return | osid.rules.EngineList | the child engines of the id | |
Errors | NOT_FOUND | an Engine identified by Id is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfEngine | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | engineId | the Id of an engine | |
Return | boolean | true if the id is a descendant of the
engineId, false otherwise | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | id or engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getEngineNodeIds | ||
Description |
Gets a portion of the hierarchy for the given engine. | ||
Parameters | osid.id.Id | engineId | 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 | an engine node | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getEngineNodes | ||
Description |
Gets a portion of the hierarchy for the given engine. | ||
Parameters | osid.id.Id | engineId | 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.rules.EngineNode | an engine node | |
Errors | NOT_FOUND | engineId is not found | |
NULL_ARGUMENT | engineId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |