Skip to main content

Overview

The DiscussionForumService provides the API for both the Discussion Forums tool and the Private Messages tool in Sakai LMS. It defines events and constants used by both messaging systems. Package: org.sakaiproject.api.app.messageforums Source: /msgcntr/messageforums-api/src/java/org/sakaiproject/api/app/messageforums/DiscussionForumService.java

Constants

Service Identifiers

Tool IDs

Private Messages Events

Events fired by the Private Messages tool:

Message Events

Usage:

Folder Events

Example:

Discussion Forums Events

Events fired by the Discussion Forums tool:

Forum Events

Example:

Topic Events

Example:

Post/Response Events

Example:

Grading Events

Example:

Thread Management Events

Example:

Event Tracking Example

Here’s a complete example of how to use these events in a custom tool or service:

Event Listening Example

To listen for forum events:

Reference Format

The reference format for forum entities follows this pattern:
Examples:

Common Use Cases

Tracking Discussion Engagement

Tracking Private Message Activity

Integration Points

The DiscussionForumService events integrate with:
  • Statistics/Analytics: Track user engagement and participation
  • Notifications: Trigger email or in-app notifications
  • Gradebook: Integration for graded forums
  • Reports: Generate activity reports
  • Search: Index forum content for search
  • LRS/xAPI: Send learning activity statements

See Also