Interface | osid.financials.AccountAdminSession | ||
---|---|---|---|
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 | canCreateAccounts | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Account creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAccountWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | accountRecordTypes | array of account record types |
Return | boolean | true if Account creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | accountRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAccountFormForCreate | ||
Description |
Gets the account form for creating new accounts. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | accountRecordTypes | array of account record types |
Return | osid.financials.AccountForm | the account form | |
Errors | NULL_ARGUMENT | accountRecordTypes 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 | createAccount | ||
Description |
Creates a new | ||
Parameters | osid.financials.AccountForm | accountForm | the form for this Account |
Return | osid.financials.Account | the new Account | |
Errors | ILLEGAL_STATE | accountForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | accountForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | accountForm did not originate from
getAccountFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAccounts | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Account modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAccountFormForUpdate | ||
Description |
Gets the account form for updating an existing account. A new account form should be requested for each update transaction. | ||
Parameters | osid.id.Id | accountId | the Id of the Account |
Return | osid.financials.AccountForm | the account form | |
Errors | NOT_FOUND | accountId is not found | |
NULL_ARGUMENT | accountId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAccount | ||
Description |
Updates an existing account. | ||
Parameters | osid.financials.AccountForm | accountForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | accountForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | accountForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | accountForm did not originate from
getAccountFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAccounts | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Account deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAccount | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | accountId | the Id of the Account to remove |
Errors | NOT_FOUND | accountId not found | |
NULL_ARGUMENT | accountId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAccountAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Account aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAccount | ||
Description |
Adds an | ||
Parameters | osid.id.Id | accountId | the Id of an Account |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | accountId not found | ||
NULL_ARGUMENT | accountId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |