Interface | osid.process.ProcessHierarchySession | ||
---|---|---|---|
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 | getProcessHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getProcessHierarchy | ||
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 | canAccessProcessHierarchy | ||
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 | useComparativeProcessView | ||
Description |
The returns from the process 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 | usePlenaryProcessView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootProcessIds | ||
Description |
Gets the root process | ||
Return | osid.id.IdList | the root process Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootProcesses | ||
Description |
Gets the root processes in the process hierarchy. A
node with no parents is an orphan. While all process
| ||
Return | osid.process.ProcessList | the root processes | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentProcesses | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | processId | a process Id |
Return | boolean | true if the process has parents, false
otherwise | |
Errors | NOT_FOUND | processId is not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfProcess | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | processId | a process Id | |
Return | boolean | true if this id is a parent of
processId, false otherwise | |
Errors | NOT_FOUND | processId is not found | |
NULL_ARGUMENT | id or processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentProcessIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | processId | a process Id |
Return | osid.id.IdList | the parent Ids of the process | |
Errors | NOT_FOUND | processId is not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentProcesses | ||
Description |
Gets the parents of the given process. | ||
Parameters | osid.id.Id | processId | the Id to query |
Return | osid.process.ProcessList | the parents of the process | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfProcess | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | processId | the Id of a process | |
Return | boolean | true if this id is an ancestor of
processId, false otherwise | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildProcesses | ||
Description |
Tests if a process has any children. | ||
Parameters | osid.id.Id | processId | a processId |
Return | boolean | true if the processId has children,
false otherwise | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfProcess | ||
Description |
Tests if a process is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | processId | the Id of a process | |
Return | boolean | true if the id is a child of
processId, false otherwise | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId 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 | getChildProcessIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | processId | the Id to query |
Return | osid.id.IdList | the children of the process | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildProcesses | ||
Description |
Gets the children of the given process. | ||
Parameters | osid.id.Id | processId | the Id to query |
Return | osid.process.ProcessList | the children of the process | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfProcess | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | processId | the Id of a process | |
Return | boolean | true if the id is a descendant of the
processId, false otherwise | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getProcessNodeIds | ||
Description |
Gets a portion of the hierarchy for the given process. | ||
Parameters | osid.id.Id | processId | 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 process node | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getProcessNodes | ||
Description |
Gets a portion of the hierarchy for the given process. | ||
Parameters | osid.id.Id | processId | 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.process.ProcessNode | a process node | |
Errors | NOT_FOUND | processId not found | |
NULL_ARGUMENT | processId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |