OSID Logo
OSID Specifications
profile package
Version 3.0.0
Release Candidate Preview
Interfaceosid.profile.ProfileItemQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching ProfileItem objects. 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 a 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.Idthe Profile Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetProfile
Description

Gets the Profile associated with this session.

Returnosid.profile.Profilethe Profile associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedProfileView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetProfileItemQuery
Description

Gets a profile item query.

Returnosid.profile.ProfileItemQuerythe profile item query
CompliancemandatoryThis method must be implemented.
MethodgetProfileItemsByQuery
Description

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

Parametersosid.profile.ProfileItemQueryprofileItemQuerythe profile item query
Returnosid.profile.ProfileItemListthe returned ProfileItemList
ErrorsNULL_ARGUMENT profileItemQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED profileItemQuery is not of this service
CompliancemandatoryThis method must be implemented.