| Interface | osid.authentication.AgentAdminSession | ||
|---|---|---|---|
| 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 | getAgencyId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Agency Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgency | ||
| Description |
Gets the | ||
| Return | osid.authentication.Agency | the Agency associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAgents | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Agent creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAgentWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | agentRecordTypes | array of agent record types |
| Return | boolean | true if Agent creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | agentRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgentFormForCreate | ||
| Description |
Gets the agent form for creating new agents. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | agentRecordTypes | array of agent record types |
| Return | osid.authentication.AgentForm | the agent form | |
| Errors | NULL_ARGUMENT | agentRecordTypes 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 | createAgent | ||
| Description |
Creates a new | ||
| Parameters | osid.authentication.AgentForm | agentForm | the form for this Agent |
| Return | osid.authentication.Agent | the new Agent | |
| Errors | ILLEGAL_STATE | agentForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | agentForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | agentForm did not originate from
getAgentFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAgents | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if agent modification is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAgent | ||
| Description |
Tests if this user can update a specified agent. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known updating the agent will result in a | ||
| Parameters | osid.id.Id | agentId | the Id of the Agent |
| Return | boolean | false if agent modification is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | agentId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If the | ||
| Method | getAgentFormForUpdate | ||
| Description |
Gets the agent form for updating an existing agent. A new agent form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | agentId | the Id of the Agent |
| Return | osid.authentication.AgentForm | the agent form | |
| Errors | NOT_FOUND | agentId is not found | |
| NULL_ARGUMENT | agentId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAgent | ||
| Description |
Updates an existing agent. | ||
| Parameters | osid.authentication.AgentForm | agentForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | agentForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | agentId or agentForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | agentForm did not originate from
getAgentFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAgents | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Agent deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAgent | ||
| Description |
Tests if this user can delete a specified | ||
| Parameters | osid.id.Id | agentId | the Id of the Agent |
| Return | boolean | false if Agent deletion is not authorized,
true otherwise | |
| Errors | NULL_ARGUMENT | agentId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
If the | ||
| Method | deleteAgent | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | agentId | the Id of the Agent to delete |
| Errors | NOT_FOUND | an Agent was not found identified by the given Id
| |
| NULL_ARGUMENT | agentId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAgentAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Agent aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAgent | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | agentId | the Id of an Agent |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | agentId not found | ||
| NULL_ARGUMENT | agentId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |