Interface | osid.authorization.VaultAdminSession | ||
---|---|---|---|
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 | canCreateVaults | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Vault creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateVaultWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | vaultRecordTypes | array of vault record types |
Return | boolean | true if Vault creation using the specified
Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | vaultRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getVaultFormForCreate | ||
Description |
Gets the vault form for creating new vaults. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | vaultRecordTypes | array of vault record types |
Return | osid.authorization.VaultForm | the vault form | |
Errors | NULL_ARGUMENT | vaultRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form qith requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createVault | ||
Description |
Creates a new | ||
Parameters | osid.authorization.VaultForm | vaultForm | the form for this Vault |
Return | osid.authorization.Vault | the new Vault | |
Errors | ILLEGAL_STATE | vaultForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | vaultForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | vaultForm did not originate from
getVaultFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateVaults | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Vault modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getVaultFormForUpdate | ||
Description |
Gets the vault form for updating an existing vault. A new vault form should be requested for each update transaction. | ||
Parameters | osid.id.Id | vaultId | the Id of the Vault |
Return | osid.authorization.VaultForm | the vault form | |
Errors | NOT_FOUND | vaultId is not found | |
NULL_ARGUMENT | vaultId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateVault | ||
Description |
Updates an existing vault. | ||
Parameters | osid.authorization.VaultForm | vaultForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | vaultForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | vaultForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | vaultForm did not originate from
getVaultFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteVaults | ||
Description |
Tests if this user can delete vaults. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known deleting a | ||
Return | boolean | false if Vault deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteVault | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | vaultId | the Id of the Vault to remove |
Errors | NOT_FOUND | vaultId not found | |
NULL_ARGUMENT | vaultId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageVaultAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Vault aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasVault | ||
Description |
Adds an | ||
Parameters | osid.id.Id | vaultId | the Id of a Vault |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | vaultId not found | ||
NULL_ARGUMENT | vaultId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |