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

This session provides methods to retrieve ProfileEntryEnabler to Profile mappings. A ProfileEntryEnabler may appear in multiple Profile objects. Each profile may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupProfileEntryEnablerProfileMappings
Description

Tests if this user can perform lookups of profile entry enabler/profile mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeProfileEntryEnablerProfileView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryProfileEntryEnablerProfileView
Description

A complete view of the ProfileEntryEnabler and Profile returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethodgetProfileEntryEnablerIdsByProfile
Description

Gets the list of ProfileEntryEnablerIds associated with a Profile.

Parametersosid.id.IdprofileId Id of the Profile
Returnosid.id.IdListlist of related profile entry enabler Ids
ErrorsNOT_FOUND profileId is not found
NULL_ARGUMENT profileId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProfileEntryEnablersByProfile
Description

Gets the list of profile entry enablers associated with a Profile.

Parametersosid.id.IdprofileId Id of the Profile
Returnosid.profile.rules.ProfileEntryEnablerListlist of related profile entry enablers
ErrorsNOT_FOUND profileId is not found
NULL_ARGUMENT profileId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProfileEntryEnablerIdsByProfiles
Description

Gets the list of ProfileEntryEnabler Ids corresponding to a list of Profiles.

Parametersosid.id.IdListprofileIdslist of profile Ids
Returnosid.id.IdListlist of profile entry enabler Ids
ErrorsNULL_ARGUMENT profileIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProfileEntryEnablersByProfiles
Description

Gets the list of profile entry enablers corresponding to a list of Profiles.

Parametersosid.id.IdListprofileIdslist of profile Ids
Returnosid.profile.rules.ProfileEntryEnablerListlist of profile entry enablers
ErrorsNULL_ARGUMENT profileIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProfileIdsByProfileEntryEnabler
Description

Gets the Profile Ids mapped to a ProfileEntryEnabler.

Parametersosid.id.IdprofileEntryEnablerId Id of a ProfileEntryEnabler
Returnosid.id.IdListlist of profiles
ErrorsNOT_FOUND profileEntryEnablerId is not found
NULL_ARGUMENT profileEntryEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProfilesByProfileEntryEnabler
Description

Gets the Profiles mapped to a ProfileEntryEnabler.

Parametersosid.id.IdprofileEntryEnablerId Id of a ProfileEntryEnabler
Returnosid.profile.ProfileListlist of profiles
ErrorsNOT_FOUND profileEntryEnablerId is not found
NULL_ARGUMENT profileEntryEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.