Class NotificationMcpTool

java.lang.Object
io.meeds.mcp.server.tool.NotificationMcpTool
All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin

@Service public class NotificationMcpTool extends Object implements io.meeds.mcp.server.plugin.McpToolPlugin
  • Constructor Details

    • NotificationMcpTool

      public NotificationMcpTool()
  • Method Details

    • listNotifications

      public List<NotificationModel> listNotifications(Boolean onlyUnread, String plugin, Integer offset, Integer limit)
    • getUnreadNotificationsCount

      public NotificationCountModel getUnreadNotificationsCount()
    • markNotificationRead

      public void markNotificationRead(String notificationId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • markAllNotificationsRead

      public void markAllNotificationsRead(String plugin)
    • hideNotification

      public void hideNotification(String notificationId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getNotificationSettings

      public NotificationSettingsModel getNotificationSettings()
    • setNotificationChannelEnabled

      public void setNotificationChannelEnabled(String channelId, boolean enabled)
    • setNotificationPluginEnabled

      public void setNotificationPluginEnabled(String pluginId, String channelId, boolean enabled)
    • muteSpaceNotifications

      public void muteSpaceNotifications(long spaceId, boolean muted)