| Interface | osid.billing.EntryAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create an   For updates,   The delete operations delete   This session includes an   | ||
| 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 | canCreateEntries | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Entry  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateEntryWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | entryRecordTypes | array of entry record types | 
| Return | boolean |  true  if  Entry  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  entryRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntryFormForCreate | ||
| Description | 
                     Gets the entry form for creating new entries. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | customerId | a customer  Id   | 
osid.id.Id | itemId | an item  Id   | |
osid.id.Id | periodId | a period  Id   | |
osid.type.Type[] | entryRecordTypes | array of entry record types | |
| Return | osid.billing.EntryForm | the entry form | |
| Errors | NOT_FOUND |  itemId  or  periodId  is not found  |                 |
| NULL_ARGUMENT |  itemId, periodId  , or  entryRecordTypes  is 
 null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createEntry | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.billing.EntryForm | entryForm | the form for this  Entry   | 
| Return | osid.billing.Entry | the new  Entry   | |
| Errors | ILLEGAL_STATE |  entryForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  entryForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  entryForm  did not originate from  
getEntryFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateEntries | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Entry  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEntryFormForUpdate | ||
| Description | 
                     Gets the entry form for updating an existing entry. A new entry form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | entryId | the  Id  of the  Entry   | 
| Return | osid.billing.EntryForm | the entry form | |
| Errors | NOT_FOUND |  entryId  is not found  |                 |
| NULL_ARGUMENT |  entryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateEntry | ||
| Description | 
                     Updates an existing entry.  | ||
| Parameters | osid.billing.EntryForm | entryForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  entryForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  entryForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  entryForm  did not originate from  
getEntryFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteEntries | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Entry  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteEntry | ||
| Description | 
                     Deletes an   | ||
| Parameters | osid.id.Id | entryId | the  Id  of the  Entry  to remove  | 
| Errors | NOT_FOUND |  entryId  not found  |                 |
| NULL_ARGUMENT |  entryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageEntryAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Entry  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasEntry | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | entryId | the  Id  of an  Entry   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is in use as a primary  Id   |                 |
| NOT_FOUND |  entryId  not found  |                 ||
| NULL_ARGUMENT |  entryId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |