Interface | osid.inquiry.ResponseAdminSession | ||
---|---|---|---|
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 | getInquestId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Inquest Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getInquest | ||
Description |
Gets the | ||
Return | osid.inquiry.Inquest | the inquest | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateResponses | ||
Description |
Tests if this user can create responses. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a | ||
Return | boolean | false if Response creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateResponseWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | responseRecordTypes | array of response record types |
Return | boolean | true if Response creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | responseRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getResponseFormForCreate | ||
Description |
Gets the response form for creating new responses. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | inquiryId | the Id for the inquiry |
osid.id.Id | resourceId | the Id for the responding resource | |
osid.type.Type[] | responseRecordTypes | array of response record types | |
Return | osid.inquiry.ResponseForm | the response form | |
Errors | NOT_FOUND | inquiryId or resourceId is not found | |
NULL_ARGUMENT | inquiryId, resourceId, or responseRecordTypes
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 | createResponse | ||
Description |
Creates a new | ||
Parameters | osid.inquiry.ResponseForm | responseForm | the form for this Response |
Return | osid.inquiry.Response | the new Response | |
Errors | ILLEGAL_STATE | responseForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | responseForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | responseForm did not originate from
getResponseFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateResponses | ||
Description |
Tests if this user can update responses. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
Return | boolean | false if Response modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getResponseFormForUpdate | ||
Description |
Gets the response form for updating an existing response. A new response form should be requested for each update transaction. | ||
Parameters | osid.id.Id | responseId | the Id of the Response |
Return | osid.inquiry.ResponseForm | the response form | |
Errors | NOT_FOUND | responseId is not found | |
NULL_ARGUMENT | responseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateResponse | ||
Description |
Updates an existing response. | ||
Parameters | osid.inquiry.ResponseForm | responseForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | responseForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | responseForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | responseForm did not originate from
getResponseFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteResponses | ||
Description |
Tests if this user can delete responses. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
Return | boolean | false if Response deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteResponse | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | responseId | the Id of the Response to remove |
Errors | NOT_FOUND | responseId not found | |
NULL_ARGUMENT | responseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageResponseAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Response aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasResponse | ||
Description |
Adds an | ||
Parameters | osid.id.Id | responseId | the Id of a Response |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | responseId not found | ||
NULL_ARGUMENT | responseId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |