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

This is the basic session for querying profiles.

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.
MethodcanAccessProfileEntries
Description

Tests if this user can perform profile checks. 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 lookup operations to unauthorized users.

Returnboolean false if profile 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 entries from descendant profiles 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 lookups to this profile only.

Compliancemandatory This method is must be implemented.
MethodhasProfileEntry
Description

Determines if the question Id of the profile entry is true.

Parametersosid.id.IdprofileItemId the Id of a ProfileItem
Returnboolean true if the the profile question is true, false othersise
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure making request
Compliancemandatory This method must be implemented.
Provider Notes

Profile entries may be stored in a normalized form with respect to various Resources and created using specific nodes in a ProfileItem hierarchy. The provider needs to maintain a de-normalized implicit profile entry store or expand the applicable hierarchies on the fly to honor this query.

MethodgetProfileEntryCondition
Description

Gets the ProfileEntryCondition for making conditional profile checks.

Parametersosid.id.IdprofileItemId the Id of a ProfileItem
Returnosid.profile.ProfileEntryCondition a profil entry condition
ErrorsNULL_ARGUMENT profileItemId is null
Compliancemandatory This method must be implemented.
MethodhasProfileEntryOnCondition
Description

Determines if the question Id of the profile entry is true.

Parametersosid.id.IdprofileItemId the Id of a ProfileItem
osid.profile.ProfileEntryConditioncondition a profile entry condition
Returnboolean true if the profile entry is true, false othersise
ErrorsNULL_ARGUMENT profileItemId or condition is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure making request
UNSUPPORTED condition is not of this service
Compliancemandatory This method must be implemented.
Provider Notes

ProfileEntries may be stored in a normalized form with respect to various Resources and created using specific nodes in a ProfileItem hierarchy. The provider needs to maintain a de-normalized implicit entry store or expand the applicable hierarchies on the fly to honor this query.