Interface | osid.personnel.OrganizationHierarchySession | ||
---|---|---|---|
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 | getOrganizationHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationHierarchy | ||
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 | canAccessOrganizationHierarchy | ||
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 | useComparativeOrganizationView | ||
Description |
The returns from the organization 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 | usePlenaryOrganizationView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootOrganizationIds | ||
Description |
Gets the root organization | ||
Return | osid.id.IdList | the root organization Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootOrganizations | ||
Description |
Gets the root organizations in this organization hierarchy. | ||
Return | osid.personnel.OrganizationList | the root organizations | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentOrganizations | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | organizationId | the Id of an organization |
Return | boolean | true if the organization has parents, false
otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfOrganization | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | organizationId | the Id of an organization | |
Return | boolean | true if this id is a parent of
organizationId, false otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | id or organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentOrganizationIds | ||
Description |
Gets the parent Ids of the given organization. | ||
Parameters | osid.id.Id | organizationId | the Id of an organization |
Return | osid.id.IdList | the parent Ids of the organization | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentOrganizations | ||
Description |
Gets the parents of the given organization. | ||
Parameters | osid.id.Id | organizationId | the Id of an organization |
Return | osid.personnel.OrganizationList | the parents of the organization | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfOrganization | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | organizationId | the Id of an organization | |
Return | boolean | true if this id is an ancestor of
organizationId, false otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | id or organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildOrganizations | ||
Description |
Tests if an organization has any children. | ||
Parameters | osid.id.Id | organizationId | the Id of an organization |
Return | boolean | true if the organizationId has children,
false otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfOrganization | ||
Description |
Tests if an organization is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | organizationId | the Id of an organization | |
Return | boolean | true if the id is a child of
organizationId, false otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | id or organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildOrganizationIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | organizationId | the Id to query |
Return | osid.id.IdList | the children of the organization | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildOrganizations | ||
Description |
Gets the children of the given organization. | ||
Parameters | osid.id.Id | organizationId | the Id to query |
Return | osid.personnel.OrganizationList | the children of the organization | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfOrganization | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | organizationId | the Id of an organization | |
Return | boolean | true if the id is a descendant of the
organizationId, false otherwise | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | id or organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getOrganizationNodeIds | ||
Description |
Gets a portion of the hierarchy for the given organization. | ||
Parameters | osid.id.Id | organizationId | 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 organization node | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getOrganizationNodes | ||
Description |
Gets a portion of the hierarchy for the given organization. | ||
Parameters | osid.id.Id | organizationId | 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.personnel.OrganizationNode | an organization node | |
Errors | NOT_FOUND | organizationId is not found | |
NULL_ARGUMENT | organizationId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |