OSID Logo
OSID Specifications
profile package
Version 3.1.0
Interfaceosid.profile.ProfileItemQuerySession
Implementsosid.OsidSession
Implemented Byosid.profile.ProfileItemSearchSession
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 record interface for the profil eitem query.

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 profile item query record indicated by their respective record types. The profile item query record is accessed via the ProfileItemQuery .

MethodgetProfileId
Description

Gets the Profile Id associated with this session.

Returnosid.id.Id the Profile Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetProfile
Description

Gets the Profile associated with this session.

Returnosid.profile.Profile the Profile associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchProfileItems
Description

Tests if this user can perform ProfileItem searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedProfileView
Description

Federates the view for methods in this session. A federated view will include profile items in profiles which are children of this profile in the profile hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedProfileView
Description

Isolates the view for methods in this session. An isolated view restricts searches to this profile only.

Compliancemandatory This method is must be implemented.
MethodgetProfileItemQuery
Description

Gets a profile item query.

Returnosid.profile.ProfileItemQuery the profile item query
Compliancemandatory This method must be implemented.
MethodgetProfileItemsByQuery
Description

Gets a list of ProfileItems matching the given profile item query interface.

Parametersosid.profile.ProfileItemQueryprofileItemQuery the profile item query
Returnosid.profile.ProfileItemList the returned ProfileItemList
ErrorsNULL_ARGUMENT profileItemQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED profileItemQuery is not of this service
Compliancemandatory This method must be implemented.