| Interface | osid.financials.budgeting.BudgetEntryAdminSession | ||
|---|---|---|---|
| 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.financials.Business | the business | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBudgetEntries | ||
| Description | Tests if this user can create  | ||
| Return | boolean |  false if BudgetEntry creation is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBudgetEntryWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | budgetEntryRecordTypes | array of budget entry record types | 
| Return | boolean |  true if BudgetEntry creation using the 
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  budgetEntryRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBudgetEntryFormForCreate | ||
| Description | Gets the budget entry form for creating new budget entries. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | budgetId | a budget  Id  | 
| osid.id.Id | accountId | an account  Id  | |
| osid.type.Type[] | budgetEntryRecordTypes | array of budget entry record types | |
| Return | osid.financials.budgeting.BudgetEntryForm | the budget entry form | |
| Errors | NOT_FOUND |  budgetId or accountId is not found | |
| NULL_ARGUMENT |  budgetId, accountId, or budgetEntryRecordTypes 
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 | createBudgetEntry | ||
| Description | Creates a new  | ||
| Parameters | osid.financials.budgeting.BudgetEntryForm | entryForm | the form for this  BudgetEntry  | 
| Return | osid.financials.budgeting.BudgetEntry | the new  BudgetEntry  | |
| 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 
getBudgetEntryFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBudgetEntries | ||
| Description | Tests if this user can update  | ||
| Return | boolean |  false if BudgetEntry modification is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBudgetEntryFormForUpdate | ||
| Description | Gets the budget entry form for updating an existing budget entries. A new budget entry form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | budgetEntryId | the  Id of the BudgetEntry  | 
| Return | osid.financials.budgeting.BudgetEntryForm | the budget entry form | |
| Errors | NOT_FOUND |  budgetEntryId is not found | |
| NULL_ARGUMENT |  budgetEntryId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBudgetEntry | ||
| Description | Updates an existing budget entries. | ||
| Parameters | osid.financials.budgeting.BudgetEntryForm | budgetEntryForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  budgetEntryForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  budgetEntryForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  entryForm did not originate from 
getBudgetEntryFormForUpdate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBudgetEntries | ||
| Description | Tests if this user can delete  | ||
| Return | boolean |  false if BudgetEntry deletion is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBudgetEntry | ||
| Description | Deletes an  | ||
| Parameters | osid.id.Id | budgetEntryId | the  Id of the BudgetEntry to remove | 
| Errors | NOT_FOUND |  budgetEntryId not found | |
| NULL_ARGUMENT |  budgetEntryId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBudgetEntryAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if BudgetEntry aliasing is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBudgetEntry | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | budgetEntryId | the  Id of an BudgetEntry  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is in use as a primary Id  | |
| NOT_FOUND |  budgetEntryId not found | ||
| NULL_ARGUMENT |  budgetEntryId or aliasId is null 
 | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |