Interface | osid.inventory.ModelLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving models. This lookup session defines several views:
The methods | ||
Method | getWarehouseId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Warehouse Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getWarehouse | ||
Description |
Gets the | ||
Return | osid.inventory.Warehouse | the warehouse | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupModels | ||
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 | useComparativeModelView | ||
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 | usePlenaryModelView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedWarehouseView | ||
Description |
Federates the view for methods in this session. A federated view will include models in catalogs which are children of this catalog in the warehouse hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedWarehouseView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this warehouse only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getModel | ||
Description |
Gets the | ||
Parameters | osid.id.Id | modelId | the Id of the Model to retrieve |
Return | osid.inventory.Model | the returned Model | |
Errors | NOT_FOUND | no Model found with the given Id | |
NULL_ARGUMENT | modelId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getModelsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | modelIds | the list of Ids to retrieve |
Return | osid.inventory.ModelList | the returned Model list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | modelIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getModelsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | modelGenusType | a model genus type |
Return | osid.inventory.ModelList | the returned Model list | |
Errors | NULL_ARGUMENT | modelGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getModelsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | modelGenusType | a model genus type |
Return | osid.inventory.ModelList | the returned Model list | |
Errors | NULL_ARGUMENT | modelGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getModelsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | modelRecordType | a model record type |
Return | osid.inventory.ModelList | the returned Model list | |
Errors | NULL_ARGUMENT | modelRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getModelsByManufacturer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.inventory.ModelList | the returned Model 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 | getModels | ||
Description |
Gets all | ||
Return | osid.inventory.ModelList | a list of Models | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |