Class GrouperMcpGetGrouperPrivilegesLite
java.lang.Object
edu.internet2.middleware.grouper.ws.mcp.GrouperMcpGetGrouperPrivilegesLite
MCP tool handler for getting privileges on a Grouper group or stem.
Supports looking up privileges by subject, group/stem, and privilege type/name.
Delegates to the WS getGrouperPrivilegesLite service logic for consistency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.node.ObjectNodeexecute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser) execute the privilege_get tool by delegating to the WS service logicstatic com.fasterxml.jackson.databind.node.ObjectNodereturn the MCP tool definition for privilege_get
-
Constructor Details
-
GrouperMcpGetGrouperPrivilegesLite
public GrouperMcpGetGrouperPrivilegesLite()
-
-
Method Details
-
toolDefinition
public static com.fasterxml.jackson.databind.node.ObjectNode toolDefinition()return the MCP tool definition for privilege_get- Returns:
- the tool definition as a Jackson ObjectNode
-
execute
public static com.fasterxml.jackson.databind.node.ObjectNode execute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser) execute the privilege_get tool by delegating to the WS service logic- Parameters:
arguments- the tool arguments from the MCP requestauthUser- the authenticated user- Returns:
- the MCP tool result
-