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

This session provides methods for searching among Profiles. 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.ProfileSearch a profile search
Compliancemandatory This 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.ProfileSearchOrder the profile search order
Compliancemandatory This method must be implemented.
MethodgetProfilesBySearch
Description

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

Parametersosid.profile.ProfileQueryprofileQuery the profile query
osid.profile.ProfileSearchprofileSearch the profile search
Returnosid.profile.ProfileSearchResults the search results
ErrorsNULL_ARGUMENT profileQuery or profileSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED profileQuery or profileSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetProfileQueryFromInspector
Description

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

Parametersosid.profile.ProfileQueryInspectorprofileQueryInspector a profile query inspector
Returnosid.profile.ProfileQuery the profile query
ErrorsNULL_ARGUMENT profileQueryInspector is null
UNSUPPORTED profileQueryInspector is not of this service
Compliancemandatory This method must be implemented.