Package io.meeds.mcp.server.tool
Class FavoriteMcpTool
java.lang.Object
io.meeds.mcp.server.tool.FavoriteMcpTool
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin
@Service
public class FavoriteMcpTool
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 TypeMethodDescriptionvoidaddToFavorites(String contentType, String contentId) booleanisContentFavorite(String contentType, String contentId) listMyFavorites(String contentType, Integer offset, Integer limit) voidremoveFromFavorites(String contentType, String contentId) 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
-
FavoriteMcpTool
public FavoriteMcpTool()
-
-
Method Details
-
addToFavorites
- Throws:
IllegalAccessException
-
removeFromFavorites
public void removeFromFavorites(String contentType, String contentId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
isContentFavorite
-
listMyFavorites
-