| Interface | osid.billing.BusinessLookupSession | ||
|---|---|---|---|
| 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   | ||
| Method | canLookupBusinesses | ||
| 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 | useComparativeBusinessView | ||
| 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 | usePlenaryBusinessView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBusiness | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | businessId |  Id  of the  Business   | 
| Return | osid.billing.Business | the business | |
| Errors | NOT_FOUND |  businessId  not found  |                 |
| NULL_ARGUMENT |  businessId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBusinessesByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | businessIds | the list of  Ids  to retrieve  | 
| Return | osid.billing.BusinessList | the returned  Business  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  businessIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusinessesByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | businessGenusType | a business genus type | 
| Return | osid.billing.BusinessList | the returned  Business  list  | |
| Errors | NULL_ARGUMENT |  businessGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusinessesByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | businessGenusType | a business genus type | 
| Return | osid.billing.BusinessList | the returned  Business  list  | |
| Errors | NULL_ARGUMENT |  businessGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusinessesByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | businessRecordType | a business record type | 
| Return | osid.billing.BusinessList | the returned  Business  list  | |
| Errors | NULL_ARGUMENT |  businessRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusinessesByProvider | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.billing.BusinessList | the returned  Business  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 | getBusinesses | ||
| Description | 
                     Gets all   | ||
| Return | osid.billing.BusinessList | a list of  Businesses   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |