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

This session provides methods for searching ProfileEntries. The search query is constructed using the ProfileEntryQuery.

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

This session defines views that offer differing behaviors for searching.

  • federated profile view: searches include profile entries in Profiles of which this profile is an ancestor in the profile hierarchy
  • isolated profile view: searches are restricted to entries in this Profile
MethodgetProfileEntrySearch
Description

Gets a profile entry search.

Returnosid.profile.ProfileEntrySearch the profile entry search
Compliancemandatory This method must be implemented.
MethodgetProfileEntrySearchOrder
Description

Gets a profile entry search order. The ProfileEntrySearchOrder is supplied to an ProfileEntrySearch to specify the ordering of results.

Returnosid.profile.ProfileEntrySearchOrder the profile entry search order
Compliancemandatory This method must be implemented.
MethodgetProfileEntriesBySearch
Description

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

Parametersosid.profile.ProfileEntryQueryprofileEntryQuery the profile entry query
osid.profile.ProfileEntrySearchprofileEntrySearch the profile entry search
Returnosid.profile.ProfileEntrySearchResults the returned search results
ErrorsNULL_ARGUMENT profileEntryQuery or profileEntrySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED profileEntryQuery or profileEntrySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetProfileEntryQueryFromInspector
Description

Gets a profile entry query from an inspector. The inspector is available from an PofileEntrySearchResults.

Parametersosid.profile.ProfileEntryQueryInspectorprofileEntryQueryInspector a profile entry query inspector
Returnosid.profile.ProfileEntryQuery the profile entry query
ErrorsNULL_ARGUMENT profileEntryQueryInspector is null
UNSUPPORTED pofileEntryQueryInspector is not of this service
Compliancemandatory This method must be implemented.