OSID Logo
OSID Specifications
personnel package
Version 3.1.0
Interfaceosid.personnel.RealmSearchSession
Implementsosid.personnel.RealmQuerySession
Used Byosid.personnel.PersonnelManager
osid.personnel.PersonnelProxyManager
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.RealmSearch the realm search
Compliancemandatory This 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.RealmSearchOrder the realm search order
Compliancemandatory This method must be implemented.
MethodgetRealmsBySearch
Description

Gets the search results matching the given search.

Parametersosid.personnel.RealmQueryrealmQuery the realm query
osid.personnel.RealmSearchrealmSearch the realm search
Returnosid.personnel.RealmSearchResults the search results
ErrorsNULL_ARGUMENT realmQuery or realmSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED realmQuery or realmSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRealmQueryFromInspector
Description

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

Parametersosid.personnel.RealmQueryInspectorrealmQueryInspector a realm query inspector
Returnosid.personnel.RealmQuery the realm query
ErrorsNULL_ARGUMENT realmQueryInspector is null
UNSUPPORTED irealmQueryInspector is not of this service
Compliancemandatory This method must be implemented.