OSID Logo
OSID Specifications
installation package
Version 3.1.0
Interfaceosid.installation.DepotSearchSession
Implementsosid.installation.DepotQuerySession
Used Byosid.installation.InstallationManager
osid.installation.InstallationProxyManager
Description

This session provides methods for searching among Depots. The search query is constructed using the DepotQuery.

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

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

MethodgetDepotSearch
Description

Gets a depot search.

Returnosid.installation.DepotSearch a depot search
Compliancemandatory This method must be implemented.
MethodgetDepotSearchOrder
Description

Gets a depot search order. The DepotSearchOrder is supplied to a DepotSearch to specify the ordering of results.

Returnosid.installation.DepotSearchOrder the depot search order
Compliancemandatory This method must be implemented.
MethodgetDepotsBySearch
Description

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

Parametersosid.installation.DepotQuerydepotQuery the depot query
osid.installation.DepotSearchdepotSearch the depot search
Returnosid.installation.DepotSearchResults the depot search results
ErrorsNULL_ARGUMENT depotQuery or depotSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED depotQuery or depotSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDepotQueryFromInspector
Description

Gets a depot query from an inspector. The inspector is available from a DepotSearchResults.

Parametersosid.installation.DepotQueryInspectordepotQueryInspector a depot query inspector
Returnosid.installation.DepotQuery the depot query
ErrorsNULL_ARGUMENT depotQueryInspector is null
UNSUPPORTED depotQueryInspector is not of this service
Compliancemandatory This method must be implemented.