| Interface | osid.forum.ForumAdminSession | ||
|---|---|---|---|
| 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 | canCreateForums | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Forum creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateForumWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | forumRecordTypes | array of forum record types |
| Return | boolean | true if Forum creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | forumRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getForumFormForCreate | ||
| Description |
Gets the forum form for creating new forums. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | forumRecordTypes | array of forum record types |
| Return | osid.forum.ForumForm | the forum form | |
| Errors | NULL_ARGUMENT | forumRecordTypes 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 | createForum | ||
| Description |
Creates a new | ||
| Parameters | osid.forum.ForumForm | forumForm | the form for this Forum |
| Return | osid.forum.Forum | the new Forum | |
| Errors | ILLEGAL_STATE | forumForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | forumForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | forumForm did not originate from
getForumFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateForums | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Forum modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getForumFormForUpdate | ||
| Description |
Gets the forum form for updating an existing forum. A new forum form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | forumId | the Id of the Forum |
| Return | osid.forum.ForumForm | the forum form | |
| Errors | NOT_FOUND | forumId is not found | |
| NULL_ARGUMENT | forumId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateForum | ||
| Description |
Updates an existing forum. | ||
| Parameters | osid.forum.ForumForm | forumForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | forumForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | forumForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | forumForm did not originate from
getForumFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteForums | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Forum deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteForum | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | forumId | the Id of the Forum to remove |
| Errors | NOT_FOUND | forumId not found | |
| NULL_ARGUMENT | forumId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageForumAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Forum aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasForum | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | forumId | the Id of a Forum |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | forumId not found | ||
| NULL_ARGUMENT | forumId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |