| Interface | osid.financials.budgeting.BudgetAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create a   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 | canCreateBudgets | ||
| Description | Tests if this user can create  | ||
| Return | boolean |  false if Budget creation is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBudgetWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | budgetRecordTypes | array of budget record types | 
| Return | boolean |  true if Budget creation using the specified 
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  budgetRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBudgetFormForCreate | ||
| Description | Gets the budget form for creating new budgets. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | activityId | the Id of the associated  Activity  | 
| osid.id.Id | fiscalPeriodId | the Id of the fiscal period | |
| osid.type.Type[] | budgetRecordTypes | array of budget record types | |
| Return | osid.financials.budgeting.BudgetForm | the budget form | |
| Errors | NOT_FOUND |  activityId or fiscalPeriodId not found | |
| NULL_ARGUMENT |  activityId, fiscalPeriodId, or budgetRecordTypes 
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 | createBudget | ||
| Description | Creates a new  | ||
| Parameters | osid.financials.budgeting.BudgetForm | budgetForm | the form for this  Budget  | 
| Return | osid.financials.budgeting.Budget | the new  Budget  | |
| Errors | ILLEGAL_STATE |  budgetForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  budgetForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  entryForm did not originate from getBudgetFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBudgets | ||
| Description | Tests if this user can update  | ||
| Return | boolean |  false if Budget modification is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBudgetFormForUpdate | ||
| Description | Gets the budget form for updating an existing budget. A new budget form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | budgetId | the  Id of the Budget  | 
| Return | osid.financials.budgeting.BudgetForm | the budget form | |
| Errors | NOT_FOUND |  budgetId is not found | |
| NULL_ARGUMENT |  budgetId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBudget | ||
| Description | Updates an existing budget. | ||
| Parameters | osid.financials.budgeting.BudgetForm | budgetForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  budgetForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  budgetForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  entryForm did not originate from getBudgetFormForUpdate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBudgets | ||
| Description | Tests if this user can delete  | ||
| Return | boolean |  false if Budget deletion is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBudget | ||
| Description | Deletes a  | ||
| Parameters | osid.id.Id | budgetId | the  Id of the Budget to remove | 
| Errors | NOT_FOUND |  budgetId not found | |
| NULL_ARGUMENT |  budgetId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBudgetAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if Budget aliasing is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBudget | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | budgetId | the  Id of a Budget  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is in use as a primary Id  | |
| NOT_FOUND |  budgetId not found | ||
| NULL_ARGUMENT |  budgetId or aliasId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |