OSID Logo
OSID Specifications
profile package
Version 3.1.0
Interfaceosid.profile.ProfileItemSearchSession
Implementsosid.profile.ProfileItemQuerySession
Used Byosid.profile.ProfileManager
osid.profile.ProfileProxyManager
Description

This session provides methods for searching ProfileItems. The search query is constructed using the ProfileItemQuery. The profile item record Type also specifies the query record for the profile item query.

getProfileItemsByQuery() is the basic search method and returns a list of ProfileItems. A more advanced search may be performed with getProfileItemsBySearch().It accepts a ProfileItemSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getProfileItemsBySearch() returns an ProfileItemSearchResults that can be used to access the resulting ProfileItemList or be used to perform a search within the result set through ProfileItemSearch.

This session defines views that offer differing behaviors for searching.

  • federated profile view: searches include profile item in profiles of which this profile is an ancestor in the profile hierarchy
  • isolated profile view: searches are restricted to profile items in this profile

Profile items may have a profie item query record indicated by their respective record types. The profile item query record is accessed via the ProfileItemQuery .

MethodgetProfileItemSearch
Description

Gets a profile item search.

Returnosid.profile.ProfileItemSearch the profile item search
Compliancemandatory This method must be implemented.
MethodgetProfileItemSearchOrder
Description

Gets a profile item search order. The ProfileItemSearchOrder is supplied to a ProfileItemSearch to specify the ordering of results.

Returnosid.profile.ProfileItemSearchOrder the profile item search order
Compliancemandatory This method must be implemented.
MethodgetProfileItemsBySearch
Description

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

Parametersosid.profile.ProfileItemQueryprofileItemQuery the profile item query
osid.profile.ProfileItemSearchprofileItemSearch the profile item search
Returnosid.profile.ProfileItemSearchResults the returned search results
ErrorsNULL_ARGUMENT profileItemQuery or profileItemSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED profileItemSearch or profileItemQuery is not of this service
Compliancemandatory This method must be implemented.
MethodgetProfileItemQueryFromInspector
Description

Gets a profile item query from an inspector. The inspector is available from an ProfileItemSearchResults.

Parametersosid.profile.ProfileItemQueryInspectorprofileItemQueryInspector a profile item query inspector
Returnosid.profile.ProfileItemQuery the profile item query
ErrorsNULL_ARGUMENT profileItemQueryInspector is null
UNSUPPORTED profileItemQueryInspector is not of this service
Compliancemandatory This method must be implemented.