Interface | osid.course.syllabus.DocetAdminSession | ||
---|---|---|---|
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 | getCourseCatalogId | ||
Description |
Gets the | ||
Return | osid.id.Id | the CourseCatalog Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseCatalog | ||
Description |
Gets the | ||
Return | osid.course.CourseCatalog | the course catalog | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateDocets | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Docet creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateDocetWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | docetRecordTypes | array of docet record types |
Return | boolean | true if Docet creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | docetRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getDocetFormForCreate | ||
Description |
Gets the docet form for creating new docets. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | moduleId | a module Id |
osid.id.Id | activityUnitId | an activity unit Id | |
osid.type.Type[] | docetRecordTypes | array of docet record types | |
Return | osid.course.syllabus.DocetForm | the docet form | |
Errors | NOT_FOUND | moduleId or activityUnitId is not found | |
NULL_ARGUMENT | moduleId, acticvtyUnitId, or docetRecordTypes
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 | createDocet | ||
Description |
Creates a new | ||
Parameters | osid.course.syllabus.DocetForm | docetForm | the form for this Docet |
Return | osid.course.syllabus.Docet | the new Docet | |
Errors | ILLEGAL_STATE | docetForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | docetForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | docetForm did not originate from
getDocetFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateDocets | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Docet modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getDocetFormForUpdate | ||
Description |
Gets the docet form for updating an existing docet. A new docet form should be requested for each update transaction. | ||
Parameters | osid.id.Id | docetId | the Id of the Docet |
Return | osid.course.syllabus.DocetForm | the docet form | |
Errors | NOT_FOUND | docetId is not found | |
NULL_ARGUMENT | docetId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateDocet | ||
Description |
Updates an existing docet. | ||
Parameters | osid.course.syllabus.DocetForm | docetForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | docetForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | docetForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | docetForm did not originate from
getDocetFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteDocets | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Docet deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteDocet | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | docetId | the Id of the Docet to remove |
Errors | NOT_FOUND | docetId not found | |
NULL_ARGUMENT | docetId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageDocetAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Docet aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasDocet | ||
Description |
Adds an | ||
Parameters | osid.id.Id | docetId | the Id of an Docet |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | docetId not found | ||
NULL_ARGUMENT | docetId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canSequenceDocets | ||
Description |
Tests if this user can order | ||
Return | boolean | false if Docet ordering is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | moveDocetAhead | ||
Description |
Reorders docets in a module by moving the specified docet in front of a reference docet. | ||
Parameters | osid.id.Id | docetId | the Id of a Docet |
osid.id.Id | moduleId | the Id of a Module | |
osid.id.Id | referenceId | the reference docet Id | |
Errors | NOT_FOUND | docetId, moduleId, or referenceId not found
or, docetId or referenceId not related to
moduleId | |
NULL_ARGUMENT | docetId, moduleId, or referenceId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | moveDocetBehind | ||
Description |
Reorders docets in a module by moving the specified docet behind a reference docet. | ||
Parameters | osid.id.Id | docetId | the Id of a Docet |
osid.id.Id | moduleId | the Id of a Module | |
osid.id.Id | referenceId | the reference docet Id | |
Errors | NOT_FOUND | docetId, moduleId, or referenceId not found
or, docetId or referenceId not related to
moduleId | |
NULL_ARGUMENT | docetId, moduleId or referenceId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | orderDocets | ||
Description |
Reorders a set of docets in a module. | ||
Parameters | osid.id.Id[] | docetIds | the Ids for a set of Docets |
osid.id.Id | moduleId | the Id of a Module | |
Errors | NOT_FOUND | docetId not found or, a docetId not related
to moduleId | |
NULL_ARGUMENT | docetIds or moduleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |