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

This session manages queries and sequencing to create "smart" dynamic catalogs. A ProfileItemQuery can be retrieved from this session and mapped to this Profile to create a virtual collection of ProfileItems. The profile Items may be sequenced using the ProfileItemSearchOrder from this session.

This Profile has a default query that matches any profileItem and a default search order that specifies no sequencing. The queries may be examined using a ProfileItemQueryInspector. The query may be modified by converting the inspector back to a 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.
MethodcanManageSmartProfiles
Description

Tests if this user can manage smart profile. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart profile management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProfileItemQuery
Description

Gets a profile item query.

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

Gets a profile item search order.

Returnosid.profile.ProfileItemSearchOrderthe profile item search order
CompliancemandatoryThis method must be implemented.
MethodapplyProfileItemQuery
Description

Applies a profile item query to this profile.

Parametersosid.profile.ProfileItemQueryprofileItemQuerythe profile item query
ErrorsNULL_ARGUMENT profileItemQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED profileItemQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectProfileItemQuery
Description

Gets a profile item query inspector for this profile.

Returnosid.profile.ProfileItemQueryInspectorthe profile item query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyProfileItemSequencing
Description

Applies a profile item search order to this profile.

Parametersosid.profile.ProfileItemSearchOrderprofileItemSearchOrderthe profile item search order
ErrorsNULL_ARGUMENT profileItemSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED profileItemSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetProfileItemQueryFromInspector
Description

Gets a profile item query from an inspector.

Parametersosid.profile.ProfileItemQueryInspectorprofileItemQueryInspectora profile item query inspector
Returnosid.profile.ProfileItemQuerythe profile item query
ErrorsNULL_ARGUMENT profileItemQueryInspector is null
UNSUPPORTED profileItemQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.