OSID Logo
OSID Specifications
hierarchy package
Version 3.0.0
Release Candidate Preview
Interfaceosid.hierarchy.HierarchySearchSession
Implementsosid.hierarchy.HierarchyQuerySession
Description

This session provides methods for searching among Hierarchy objects. The search query is constructed using the HierarchyQuery.

getHierarchiesByQuery() is the basic search method and returns a list of Hierarchy objects. A more advanced search may be performed with getHierarchiesBySearch(). It accepts a HierarchySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getHierarchiesBySearch() returns a HierarchySearchResults that can be used to access the resulting HierarchyList or be used to perform a search within the result set through HierarchySearch.

Hierarchies may have a query record indicated by their respective record types. The query record query is accessed via the HierarchuQuery.

MethodgetHierarchySearch
Description

Gets a hierarchy search.

Returnosid.hierarchy.HierarchySearchthe hierarchy search
CompliancemandatoryThis method must be implemented.
MethodgetHierarchySearchOrder
Description

Gets a hierarchy search order. The HierarchySearchOrder is supplied to a HierarchySearch to specify the ordering of results.

Returnosid.hierarchy.HierarchySearchOrderthe hierarchy search order
CompliancemandatoryThis method must be implemented.
MethodgetHierarchiesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.hierarchy.HierarchyQueryhierarchyQuerythe hierarchy query
osid.hierarchy.HierarchySearchhierarchySearchthe hierarchy search
Returnosid.hierarchy.HierarchySearchResultsthe hierarchy search results
ErrorsNULL_ARGUMENT hierarchyQuery or hierarchySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED hierarchyQuery or hierarchySearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetHierarchyQueryFromInspector
Description

Gets a hierarchy query from an inspector. The inspector is available from a HierarchySearchResults.

Parametersosid.hierarchy.HierarchyQueryInspectorhierarchyQueryInspectora hierarchy query inspector
Returnosid.hierarchy.HierarchyQuerythe hierarchy query
ErrorsNULL_ARGUMENT hierarchyQueryInspector is null
UNSUPPORTED hierarchyQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.