Interface | osid.hierarchy.HierarchyLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. For example, a browsing application
may only need to examine the | ||
Method | canLookupHierarchies | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeHierarchyView | ||
Description |
The returns from the lookup 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 | usePlenaryHierarchyView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getHierarchy | ||
Description |
Gets the | ||
Parameters | osid.id.Id | hierarchyId | the Id of the Hierarchy to retrieve |
Return | osid.hierarchy.Hierarchy | the returned Hierarchy | |
Errors | NOT_FOUND | no Hierarchy found with the given Id | |
NULL_ARGUMENT | hierarchyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchiesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | hierarchyIds | the list of Ids to retrieve |
Return | osid.hierarchy.HierarchyList | the returned Hierarchy list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | hierarchyIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchiesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | hierarchyGenusType | a hierarchy genus type |
Return | osid.hierarchy.HierarchyList | the returned Hierarchy list | |
Errors | NULL_ARGUMENT | hierarchyGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchiesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | hierarchyGenusType | a hierarchy genus type |
Return | osid.hierarchy.HierarchyList | the returned Hierarchy list | |
Errors | NULL_ARGUMENT | hierarchyGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchiesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | hierarchyRecordType | a hierarchy record type |
Return | osid.hierarchy.HierarchyList | the returned Hierarchy list | |
Errors | NULL_ARGUMENT | hierarchyRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchiesByProvider | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.hierarchy.HierarchyList | the returned Hierarchy list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getHierarchies | ||
Description |
Gets all hierarchies. In plenary mode, the returned list contains all known hierarchies or an error results. Otherwise, the returned list may contain only those hierarchies that are accessible through this session. | ||
Return | osid.hierarchy.HierarchyList | a list of Hierarchies | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |