OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.RealmSearchSession
Implementsosid.personnel.RealmQuerySession
Description

This session provides methods for searching Realm objects. The search query is constructed using the RealmQuery. The realm record Type also specifies the realm query record for the realm query.

getRealmsByQuery() is the basic search method and returns a list of Realm elements. A more advanced search may be performed with getRealmsBySearch(). It accepts a RealmSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getRealmsBySearch() returns a RealmSearchResults that can be used to access the resulting RealmList or be used to perform a search within the result set through RealmSearch.

Realms may have a query record indicated by their respective record types. The query record is accessed via the RealmQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetRealmSearch
Description

Gets a realm search.

Returnosid.personnel.RealmSearchthe realm search
CompliancemandatoryThis method must be implemented.
MethodgetRealmSearchOrder
Description

Gets a realm search order. The RealmSearchOrder is supplied to a RealmSearch to specify the ordering of results.

Returnosid.personnel.RealmSearchOrderthe realm search order
CompliancemandatoryThis method must be implemented.
MethodgetRealmsBySearch
Description

Gets the search results matching the given search.

Parametersosid.personnel.RealmQueryrealmQuerythe realm query
osid.personnel.RealmSearchrealmSearchthe realm search
Returnosid.personnel.RealmSearchResultsthe search results
ErrorsNULL_ARGUMENT realmQuery or realmSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED realmQuery or realmSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetRealmQueryFromInspector
Description

Gets a realm query from an inspector. The inspector is available from a RealmSearchResults.

Parametersosid.personnel.RealmQueryInspectorrealmQueryInspectora realm query inspector
Returnosid.personnel.RealmQuerythe realm query
ErrorsNULL_ARGUMENT realmQueryInspector is null
UNSUPPORTED irealmQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.