OSID Logo
OSID Specifications
profile package
Version 3.0.0
Release Candidate Preview
Interfaceosid.profile.ProfileSearchSession
Implementsosid.profile.ProfileQuerySession
Description

This session provides methods for searching among Profile objects. The search query is constructed using the ProfileQuery.

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

Profiles may have a profile query record indicated by their respective record types. The profile query record is accessed via the ProfileQuery.

MethodgetProfileSearch
Description

Gets a profile search.

Returnosid.profile.ProfileSearcha profile search
CompliancemandatoryThis method must be implemented.
MethodgetProfileSearchOrder
Description

Gets a profile search order. The ProfileSearchOrder is supplied to a ProfileSearch to specify the ordering of results.

Returnosid.profile.ProfileSearchOrderthe profile search order
CompliancemandatoryThis method must be implemented.
MethodgetProfilesBySearch
Description

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

Parametersosid.profile.ProfileQueryprofileQuerythe profile query
osid.profile.ProfileSearchprofileSearchthe profile search
Returnosid.profile.ProfileSearchResultsthe search results
ErrorsNULL_ARGUMENT profileQuery or profileSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED profileQuery or profileSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetProfileQueryFromInspector
Description

Gets a profile query from an inspector. The inspector is available from an ProfileSearchResults.

Parametersosid.profile.ProfileQueryInspectorprofileQueryInspectora profile query inspector
Returnosid.profile.ProfileQuerythe profile query
ErrorsNULL_ARGUMENT profileQueryInspector is null
UNSUPPORTED profileQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.