Interface | osid.forum.PostForumSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to retrieve This lookup session defines several views:
| ||
Method | canLookupPostForumMappings | ||
Description |
Tests if this user can perform lookups of post/forum
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known lookup methods in this session will result in a
| ||
Return | boolean | false if looking up mappings is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeForumView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryForumView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPostIdsByForum | ||
Description |
Gets the list of Post Ids associated with a | ||
Parameters | osid.id.Id | forumId | Id of a Forum. |
Return | osid.id.IdList | list of related post Ids | |
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 | getPostsByForum | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | forumId | Id of a Forum |
Return | osid.forum.PostList | list of related posts | |
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 | getPostIdsByForums | ||
Description |
Gets the list of | ||
Parameters | osid.id.IdList | forumIds | list of forum Ids |
Return | osid.id.IdList | list of post Ids | |
Errors | NULL_ARGUMENT | forumIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByForums | ||
Description |
Gets the list of | ||
Parameters | osid.id.IdList | forumIds | list of forum Ids |
Return | osid.forum.PostList | list of posts | |
Errors | NULL_ARGUMENT | forumIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getForumIdsByPost | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | postId | Id of a Post |
Return | osid.id.IdList | list of forum Ids | |
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 | getForumsByPost | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | postId | Id of a Post |
Return | osid.forum.ForumList | list of forums | |
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. |