Interface | osid.forum.PostAdminSession | ||
---|---|---|---|
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 | getForumId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Forum Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getForum | ||
Description |
Gets the | ||
Return | osid.forum.Forum | the forum | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePosts | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Post creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePostWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | postRecordTypes | array of post record types |
Return | boolean | true if Post creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | postRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getPostFormForCreate | ||
Description |
Gets the post form for creating new posts. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | postRecordTypes | array of post record types |
Return | osid.forum.PostForm | the post form | |
Errors | NULL_ARGUMENT | postRecordTypes 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 | createPost | ||
Description |
Creates a new | ||
Parameters | osid.forum.PostForm | postForm | the form for this Post |
Return | osid.forum.Post | the new Post | |
Errors | ILLEGAL_STATE | postForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | postForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | postForm did not originate from
getPostFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdatePosts | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Post modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getPostFormForUpdate | ||
Description |
Gets the post form for updating an existing post. A new post form should be requested for each update transaction. | ||
Parameters | osid.id.Id | postId | the Id of the Post |
Return | osid.forum.PostForm | the post form | |
Errors | NOT_FOUND | postId is not found | |
NULL_ARGUMENT | postId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updatePost | ||
Description |
Updates an existing post. | ||
Parameters | osid.forum.PostForm | postForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | postForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | postForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | postForm did not originate from
getPostFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeletePosts | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Post deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deletePost | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | postId | the Id of the Post to remove |
Errors | NOT_FOUND | postId not found | |
NULL_ARGUMENT | postId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManagePostAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Post aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasPost | ||
Description |
Adds an | ||
Parameters | osid.id.Id | postId | the Id of a Post |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | postId not found | ||
NULL_ARGUMENT | postId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |