Interface | osid.authorization.FunctionAdminSession | ||
---|---|---|---|
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 | getVaultId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Vault Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getVault | ||
Description |
Gets the | ||
Return | osid.authorization.Vault | the vault | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateFunctions | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Function creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateFunctionWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | functionRecordTypes | array of function record types |
Return | boolean | true if Function creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | functionRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionFormForCreate | ||
Description |
Gets the function form for creating new functions. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | functionRecordTypes | array of function record types |
Return | osid.authorization.FunctionForm | the function form | |
Errors | NULL_ARGUMENT | functionRecordTypes 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 | createFunction | ||
Description |
Creates a new | ||
Parameters | osid.authorization.FunctionForm | functionForm | the form for this Function |
Return | osid.authorization.Function | the new Function | |
Errors | ILLEGAL_STATE | functionForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | functionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | functionForm did not originate from
getFunctionFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateFunctions | ||
Description |
Tests if this user can update | ||
Return | boolean | false if function modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionFormForUpdate | ||
Description |
Gets the function form for updating an existing function. A new function form should be requested for each update transaction. | ||
Parameters | osid.id.Id | functionId | the Id of the Function |
Return | osid.authorization.FunctionForm | the function form | |
Errors | NOT_FOUND | functionId is not found | |
NULL_ARGUMENT | functionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateFunction | ||
Description |
Updates an existing function. | ||
Parameters | osid.authorization.FunctionForm | functionForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | functionForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | functionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | functionForm did not originate from
getFunctionFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteFunctions | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Function deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteFunction | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | functionId | the Id of the Function to delete |
Errors | NOT_FOUND | a Function was not found identified by the given Id
| |
NULL_ARGUMENT | functionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageFunctionAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Function aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasFunction | ||
Description |
Adds an | ||
Parameters | osid.id.Id | functionId | the Id of a Function |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | functionId not found | ||
NULL_ARGUMENT | functionId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |