OSID Logo
OSID Specifications
profile rules package
Version 3.1.0
Interfaceosid.profile.rules.ProfileEntryEnablerProfileSession
Implementsosid.OsidSession
Used Byosid.profile.rules.ProfileRulesManager
osid.profile.rules.ProfileRulesProxyManager
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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.IdList list of related profile entry enabler Ids
ErrorsNOT_FOUND profileId is not found
NULL_ARGUMENT profileId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.ProfileEntryEnablerList list of related profile entry enablers
ErrorsNOT_FOUND profileId is not found
NULL_ARGUMENT profileId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetProfileEntryEnablerIdsByProfiles
Description

Gets the list of ProfileEntryEnablerIds corresponding to a list of Profiles.

Parametersosid.id.IdListprofileIds list of profile Ids
Returnosid.id.IdList list of profile entry enabler Ids
ErrorsNULL_ARGUMENT profileIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetProfileEntryEnablersByProfiles
Description

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

Parametersosid.id.IdListprofileIds list of profile Ids
Returnosid.profile.rules.ProfileEntryEnablerList list of profile entry enablers
ErrorsNULL_ARGUMENT profileIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetProfileIdsByProfileEntryEnabler
Description

Gets the Profile Ids mapped to a ProfileEntryEnabler.

Parametersosid.id.IdprofileEntryEnablerId Id of a ProfileEntryEnabler
Returnosid.id.IdList list of profiles
ErrorsNOT_FOUND profileEntryEnablerId is not found
NULL_ARGUMENT profileEntryEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetProfilesByProfileEntryEnabler
Description

Gets the Profiles mapped to a ProfileEntryEnabler.

Parametersosid.id.IdprofileEntryEnablerId Id of a ProfileEntryEnabler
Returnosid.profile.ProfileList list of profiles
ErrorsNOT_FOUND profileEntryEnablerId is not found
NULL_ARGUMENT profileEntryEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.