Interface | osid.forum.PostLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
The methods useFederatedForumView() and useIsolatedForumView() behave as a radio group and one should be selected before invoking any lookup methods. | ||
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 | canLookupPosts | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativePostView | ||
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 | usePlenaryPostView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedForumView | ||
Description |
Federates the view for methods in this session. A federated view will include posts in forums which are children of this forum in the forum hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedForumView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this forum only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPost | ||
Description |
Gets the | ||
Parameters | osid.id.Id | postId | Id of the Post |
Return | osid.forum.Post | the post | |
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 is must be implemented. | |
Method | getPostsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | postIds | the list of Ids to retrieve |
Return | osid.forum.PostList | the returned Post list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | postIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postGenusType | a post genus type |
Return | osid.forum.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postGenusType | a post genus type |
Return | osid.forum.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | postRecordType | a post record type |
Return | osid.forum.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | postRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByDate | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | start of date range |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.forum.PostList | the returned Post list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsForPoster | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.forum.PostList | the returned Post list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPostsByDateForPoster | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.forum.PostList | the returned Post list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | resourceId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPosts | ||
Description |
Gets all | ||
Return | osid.forum.PostList | a list of Posts | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |