| Interface | osid.billing.CategoryLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods for retrieving categories. This lookup session defines several views: 
  The methods   Categories may have an additional records indicated by 
                their respective record types. The record may not be accessed 
                through a cast of the   | ||
| Method | getBusinessId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Business Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusiness | ||
| Description | 
                     Gets the   | ||
| Return | osid.billing.Business | the business | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupCategories | ||
| 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 | useComparativeCategoryView | ||
| 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 | usePlenaryCategoryView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedBusinessView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include categories in catalogs which are children of this catalog in the business hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedBusinessView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts retrievals to this business only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getCategory | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | categoryId | the  Id  of the  Category  to retrieve  | 
| Return | osid.billing.Category | the returned  Category   | |
| Errors | NOT_FOUND | no  Category  found with the given  Id   |                 |
| NULL_ARGUMENT |  categoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCategoriesByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | categoryIds | the list of  Ids  to retrieve  | 
| Return | osid.billing.CategoryList | the returned  Category  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  categoryIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCategoriesByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | categoryGenusType | a category genus type | 
| Return | osid.billing.CategoryList | the returned  Category  list  | |
| Errors | NULL_ARGUMENT |  categoryGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCategoriesByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | categoryGenusType | a category genus type | 
| Return | osid.billing.CategoryList | the returned  Category  list  | |
| Errors | NULL_ARGUMENT |  categoryGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCategoriesByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | categoryRecordType | a category record type | 
| Return | osid.billing.CategoryList | the returned  Category  list  | |
| Errors | NULL_ARGUMENT |  categoryRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCategories | ||
| Description | 
                     Gets all   | ||
| Return | osid.billing.CategoryList | a list of  Categories   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |