OSID Logo
OSID Specifications
profile package
Version 3.1.0
Interfaceosid.profile.ProfileItemSmartProfileSession
Implementsosid.OsidSession
Used Byosid.profile.ProfileManager
osid.profile.ProfileProxyManager
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.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.
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
Compliancemandatory This method must be implemented.
MethodgetProfileItemQuery
Description

Gets a profile item query.

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

Gets a profile item search order.

Returnosid.profile.ProfileItemSearchOrder the profile item search order
Compliancemandatory This method must be implemented.
MethodapplyProfileItemQuery
Description

Applies a profile item query to this profile.

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

Gets a profile item query inspector for this profile.

Returnosid.profile.ProfileItemQueryInspector the profile item query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyProfileItemSequencing
Description

Applies a profile item search order to this profile.

Parametersosid.profile.ProfileItemSearchOrderprofileItemSearchOrder the profile item search order
ErrorsNULL_ARGUMENT profileItemSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED profileItemSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetProfileItemQueryFromInspector
Description

Gets a profile item query from an inspector.

Parametersosid.profile.ProfileItemQueryInspectorprofileItemQueryInspector a profile item query inspector
Returnosid.profile.ProfileItemQuery the profile item query
ErrorsNULL_ARGUMENT profileItemQueryInspector is null
UNSUPPORTED profileItemQueryInspector is not of this service
Compliancemandatory This method must be implemented.