Uses of Enum Class
org.a2aproject.sdk.server.auth.TaskOperation
Packages that use TaskOperation
-
Uses of TaskOperation in org.a2aproject.sdk.server.auth
Methods in org.a2aproject.sdk.server.auth that return TaskOperationModifier and TypeMethodDescriptionstatic TaskOperationReturns the enum constant of this class with the specified name.static TaskOperation[]TaskOperation.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.a2aproject.sdk.server.auth with parameters of type TaskOperationModifier and TypeMethodDescriptionbooleanTaskAuthorizationProvider.checkCreate(ServerCallContext context, TaskOperation operation) Check whether the current user is allowed to create a new task.booleanTaskAuthorizationProvider.checkRead(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to read the given task.static booleanTaskAuthorizationProvider.checkReadAccess(@Nullable TaskAuthorizationProvider provider, @Nullable ServerCallContext context, String taskId, TaskOperation operation) Fail-closed read-access check that handles absent provider and missing call context.booleanTaskAuthorizationProvider.checkWrite(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to write to the given task.voidTaskAuthorizationProvider.recordOwnership(ServerCallContext context, String taskId, TaskOperation operation) Record that the current user owns the given task. -
Uses of TaskOperation in org.a2aproject.sdk.server.requesthandlers
Methods in org.a2aproject.sdk.server.requesthandlers with parameters of type TaskOperationModifier and TypeMethodDescriptionvoidAuthorizationRequestHandlerDecorator.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) voidDefaultRequestHandler.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) The authorization is done by the AuthorizationRequestHandlerDecoratorvoidRequestHandler.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation)