Interface | osid.resource.demographic.DemographicLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getBinId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Bin Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBin | ||
Description |
Gets the | ||
Return | osid.resource.Bin | the bin | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupDemographics | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeDemographicView | ||
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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryDemographicView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedBinView | ||
Description |
Federates the view for methods in this session. A federated view will include demographic in bins which are children of this bin in the bin hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedBinView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this bin only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useActiveDemographicView | ||
Description |
Only active demographics are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusDemographicView | ||
Description |
All active and inactive demographics are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getDemographic | ||
Description |
Gets the In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Parameters | osid.id.Id | demographicId | Id of the Demographic |
Return | osid.resource.demographic.Demographic | the demographic | |
Errors | NOT_FOUND | demographicId not found | |
NULL_ARGUMENT | demographicId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getDemographicsByIds | ||
Description |
Gets a In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Parameters | osid.id.IdList | demographicIds | the list of Ids to retrieve |
Return | osid.resource.demographic.DemographicList | the returned Demographic list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | demographicIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDemographicsByGenusType | ||
Description |
Gets a In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Parameters | osid.type.Type | demographicGenusType | a demographic genus type |
Return | osid.resource.demographic.DemographicList | the returned Demographic list | |
Errors | NULL_ARGUMENT | demographicGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDemographicsByParentGenusType | ||
Description |
Gets a In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Parameters | osid.type.Type | demographicGenusType | a demographic genus type |
Return | osid.resource.demographic.DemographicList | the returned Demographic list | |
Errors | NULL_ARGUMENT | demographicGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDemographicsByRecordType | ||
Description |
Gets a In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Parameters | osid.type.Type | demographicRecordType | a demographic record type |
Return | osid.resource.demographic.DemographicList | the returned Demographic list | |
Errors | NULL_ARGUMENT | demographicRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDemographics | ||
Description |
Gets all In plenary mode, the returned list contains all known demographic or an error results. Otherwise, the returned list may contain only those demographic that are accessible through this session. In active mode, demographic are returned that are currently active. In any status mode, active and inactive demographic are returned. | ||
Return | osid.resource.demographic.DemographicList | the returned Demographic list | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |