OSID Logo
OSID Specifications
resource demographic package
Version 3.0.0
Interfaceosid.resource.demographic.DemographicEnablerBinSession
Implementsosid.OsidSession
Used Byosid.resource.demographic.ResourceDemographicManager
osid.resource.demographic.ResourceDemographicProxyManager
Description

This session provides methods to retrieve DemographicEnabler to Bin mappings. A DemographicEnabler may appear in multiple Bin objects. Each bin 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
MethodcanLookupDemographicEnablerBinMappings
Description

Tests if this user can perform lookups of demographic enabler/bin 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.

Returnbooleanfalse if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeDemographicEnablerBinView
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.
MethodusePlenaryDemographicEnablerBinView
Description

A complete view of the DemographicEnabler and Bin 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.
MethodgetDemographicEnablerIdsByBin
Description

Gets the list of DemographicEnablerIds associated with an Bin .

Parametersosid.id.IdbinIdId of the Bin
Returnosid.id.IdListlist of related demographic enabler Ids
ErrorsNOT_FOUNDbinId is not found
NULL_ARGUMENTbinId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablersByBin
Description

Gets the list of demographic enablers associated with an Bin .

Parametersosid.id.IdbinIdId of the Bin
Returnosid.resource.demographic.DemographicEnablerListlist of related demographic enablers
ErrorsNOT_FOUNDbinId is not found
NULL_ARGUMENTbinId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablerIdsByBins
Description

Gets the list of DemographicEnablerIds corresponding to a list of Bins .

Parametersosid.id.IdListbinIdslist of bin Ids
Returnosid.id.IdListlist of demographic enabler Ids
ErrorsNULL_ARGUMENTbinIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDemographicEnablersByBins
Description

Gets the list of demographic enablers corresponding to a list of Bins .

Parametersosid.id.IdListbinIdslist of bin Ids
Returnosid.resource.demographic.DemographicEnablerListlist of demographic enablers
ErrorsNULL_ARGUMENTbinIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetBinIdsByDemographicEnabler
Description

Gets the Bin Ids mapped to a DemographicEnabler .

Parametersosid.id.IddemographicEnablerIdId of a DemographicEnabler
Returnosid.id.IdListlist of bins
ErrorsNOT_FOUNDdemographicEnablerId is not found
NULL_ARGUMENTdemographicEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetBinsByDemographicEnabler
Description

Gets the Bins mapped to a DemographicEnabler .

Parametersosid.id.IddemographicEnablerIdId of a DemographicEnabler
Returnosid.resource.BinListlist of bins
ErrorsNOT_FOUNDdemographicEnablerId is not found
NULL_ARGUMENTdemographicEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.