Package io.meeds.mcp.server.tool
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
-
Field Summary
Fields inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
DEFAULT_LIMIT, DEFAULT_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhideNotification(String notificationId) listNotifications(Boolean onlyUnread, String plugin, Integer offset, Integer limit) voidmarkAllNotificationsRead(String plugin) voidmarkNotificationRead(String notificationId) voidmuteSpaceNotifications(long spaceId, boolean muted) voidsetNotificationChannelEnabled(String channelId, boolean enabled) voidsetNotificationPluginEnabled(String pluginId, String channelId, boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
getCurrentUserAclIdentity, getCurrentUserLocale, getCurrentUserLocale, getCurrentUserName, getLocale
-
Constructor Details
-
NotificationMcpTool
public NotificationMcpTool()
-
-
Method Details
-
listNotifications
-
getUnreadNotificationsCount
-
markNotificationRead
public void markNotificationRead(String notificationId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
markAllNotificationsRead
-
hideNotification
public void hideNotification(String notificationId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
getNotificationSettings
-
setNotificationChannelEnabled
-
setNotificationPluginEnabled
-
muteSpaceNotifications
public void muteSpaceNotifications(long spaceId, boolean muted)
-