Interface | osid.resource.BinLookupSession | ||
---|---|---|---|
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. For example, a browsing application
may only need to examine the Bins may have an additional records indicated by their
respective record types. The record may not be accessed
through a cast of the | ||
Method | canLookupBins | ||
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 | useComparativeBinView | ||
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 | usePlenaryBinView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBin | ||
Description |
Gets the | ||
Parameters | osid.id.Id | binId | Id of the Bin |
Return | osid.resource.Bin | the bin | |
Errors | NOT_FOUND | binId not found | |
NULL_ARGUMENT | binId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getBinsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | binIds | the list of Ids to retrieve |
Return | osid.resource.BinList | the returned Bin list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | binIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBinsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | binGenusType | a bin genus type |
Return | osid.resource.BinList | the returned Bin list | |
Errors | NULL_ARGUMENT | binGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBinsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | binGenusType | a bin genus type |
Return | osid.resource.BinList | the returned Bin list | |
Errors | NULL_ARGUMENT | binGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBinsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | binRecordType | a bin record type |
Return | osid.resource.BinList | the returned Bin list | |
Errors | NULL_ARGUMENT | binRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBinsByProvider | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.resource.BinList | the returned Bin list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getBins | ||
Description |
Gets all | ||
Return | osid.resource.BinList | a list of Bins | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |