Interface | osid.inquiry.InquiryAdminSession | ||
---|---|---|---|
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 | 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 | canCreateInquiries | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Inquiry creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateInquiryWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | inquiryRecordTypes | array of inquiry record types |
Return | boolean | true if Inquiry creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | inquiryRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getInquiryFormForCreate | ||
Description |
Gets the inquiry form for creating new inquiries. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | auditId | the Id for the audit |
osid.type.Type[] | inquiryRecordTypes | array of inquiry record types | |
Return | osid.inquiry.InquiryForm | the inquiry form | |
Errors | NOT_FOUND | auditId is not found | |
NULL_ARGUMENT | auditId or inquiryRecordTypes 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 | createInquiry | ||
Description |
Creates a new | ||
Parameters | osid.inquiry.InquiryForm | inquiryForm | the form for this Inquiry |
Return | osid.inquiry.Inquiry | the new Inquiry | |
Errors | ILLEGAL_STATE | inquiryForm already used in a create transaction. | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | inquiryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | inquiryForm did not originate from
getInquiryFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateInquiries | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Inquiry modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getInquiryFormForUpdate | ||
Description |
Gets the inquiry form for updating an existing inquiry. A new inquiry form should be requested for each update transaction. | ||
Parameters | osid.id.Id | inquiryId | the Id of the Inquiry |
Return | osid.inquiry.InquiryForm | the inquiry form | |
Errors | NOT_FOUND | inquiryId is not found | |
NULL_ARGUMENT | inquiryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateInquiry | ||
Description |
Updates an existing inquiry. | ||
Parameters | osid.inquiry.InquiryForm | inquiryForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | inquiryForm already used in an update transatcion | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | inquiryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | inquiryForm did not originate from
getInquiryFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteInquiries | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Inquiry deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteInquiry | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | inquiryId | the Id of the Inquiry to remove |
Errors | NOT_FOUND | inquiryId not found | |
NULL_ARGUMENT | inquiryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageInquiryAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Inquiry aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasInquiry | ||
Description |
Adds an | ||
Parameters | osid.id.Id | inquiryId | the Id of an Inquiry |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | inquiryId not found | ||
NULL_ARGUMENT | inquiryId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canSequenceInquiries | ||
Description |
Tests if this user can order | ||
Return | boolean | false if Inquiry ordering is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | moveInquiryAhead | ||
Description |
Reorders inquiries in an audit by moving the specified inquiry in front of a reference inquiry. | ||
Parameters | osid.id.Id | inquiryId | the Id of an Inquiry |
osid.id.Id | auditId | the Id of an Audit | |
osid.id.Id | referenceId | the reference inquiry Id | |
Errors | NOT_FOUND | inquiryId, auditId, or referenceId not found
or, inquiryId or referenceId not related to
auditId | |
NULL_ARGUMENT | inquiryId, auditId, or referenceId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | moveInquiryBehind | ||
Description |
Reorders inquiries in an audit by moving the specified inquiry behind a reference inquiry. | ||
Parameters | osid.id.Id | inquiryId | the Id of an Inquiry |
osid.id.Id | auditId | the Id of an Audit | |
osid.id.Id | referenceId | the reference inquiry Id | |
Errors | NOT_FOUND | inquiryId, auditId, or referenceId not found
or, inquiryId or referenceId not related to
auditId | |
NULL_ARGUMENT | inquiryId, auditId, or referenceId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | orderInquiries | ||
Description |
Reorders a set of inquiries in an audit. | ||
Parameters | osid.id.Id[] | inquiryIds | the Ids for a set of Inquiries |
osid.id.Id | auditId | the Id of an Audit | |
Errors | NOT_FOUND | auditId not found or, an inquiryId not
related to auditId | |
NULL_ARGUMENT | inquiryIds or auditId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |