OSID Logo
OSID Specifications
hierarchy package
Version 3.1.0
Interfaceosid.hierarchy.HierarchySearchSession
Implementsosid.hierarchy.HierarchyQuerySession
Used Byosid.hierarchy.HierarchyManager
osid.hierarchy.HierarchyProxyManager
Description

This session provides methods for searching among Hierarchies. 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.HierarchySearch the hierarchy search
Compliancemandatory This 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.HierarchySearchOrder the hierarchy search order
Compliancemandatory This method must be implemented.
MethodgetHierarchiesBySearch
Description

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

Parametersosid.hierarchy.HierarchyQueryhierarchyQuery the hierarchy query
osid.hierarchy.HierarchySearchhierarchySearch the hierarchy search
Returnosid.hierarchy.HierarchySearchResults the hierarchy search results
ErrorsNULL_ARGUMENT hierarchyQuery or hierarchySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED hierarchyQuery or hierarchySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetHierarchyQueryFromInspector
Description

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

Parametersosid.hierarchy.HierarchyQueryInspectorhierarchyQueryInspector a hierarchy query inspector
Returnosid.hierarchy.HierarchyQuery the hierarchy query
ErrorsNULL_ARGUMENT hierarchyQueryInspector is null
UNSUPPORTED hierarchyQueryInspector is not of this service
Compliancemandatory This method must be implemented.