Uses of Interface
io.fluxcapacitor.javaclient.tracking.handling.authentication.User
Packages that use User
Package
Description
-
Uses of User in io.fluxcapacitor.javaclient
Methods in io.fluxcapacitor.javaclient with parameters of type UserModifier and TypeMethodDescriptionstatic <T> T
FluxCapacitor.filterContent
(T value, User user) Modify given value before it's passed to the given viewer. -
Uses of User in io.fluxcapacitor.javaclient.common
Methods in io.fluxcapacitor.javaclient.common with parameters of type UserModifier and TypeMethodDescriptionAttaches a user object to the metadata using the configuredUserProvider
. -
Uses of User in io.fluxcapacitor.javaclient.common.serialization
Methods in io.fluxcapacitor.javaclient.common.serialization with parameters of type UserModifier and TypeMethodDescription<T> T
ContentFilter.filterContent
(T value, User viewer) Filters the given value based on the current viewer (user) context. -
Uses of User in io.fluxcapacitor.javaclient.common.serialization.jackson
Methods in io.fluxcapacitor.javaclient.common.serialization.jackson with parameters of type User -
Uses of User in io.fluxcapacitor.javaclient.scheduling
Methods in io.fluxcapacitor.javaclient.scheduling with parameters of type UserModifier and TypeMethodDescriptionReturns a new schedule with aUser
added to the metadata using the configuredUserProvider
. -
Uses of User in io.fluxcapacitor.javaclient.tracking.handling.authentication
Fields in io.fluxcapacitor.javaclient.tracking.handling.authentication with type parameters of type UserModifier and TypeFieldDescriptionstatic final ThreadLocal
<User> User.current
Thread-local reference to the current user.Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication with type parameters of type UserModifier and TypeMethodDescriptionstatic <U extends User>
UUser.getCurrent()
Returns the user currently associated with the executing thread.Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication that return UserModifier and TypeMethodDescriptionAbstractUserProvider.fromMessage
(HasMessage message) Extracts aUser
from the metadata of a message.DelegatingUserProvider.fromMessage
(HasMessage message) NoOpUserProvider.fromMessage
(HasMessage message) UserProvider.fromMessage
(HasMessage message) Extracts theUser
from a givenHasMessage
instance.DelegatingUserProvider.getActiveUser()
default User
UserProvider.getActiveUser()
Returns the currently active user, typically injected by the current context.DelegatingUserProvider.getSystemUser()
NoOpUserProvider.getSystemUser()
UserProvider.getSystemUser()
Returns theUser
representing the system (non-human) identity.DelegatingUserProvider.getUserById
(Object userId) NoOpUserProvider.getUserById
(Object userId) UserProvider.getUserById
(Object userId) Retrieves aUser
by their unique ID.Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication with parameters of type UserModifier and TypeMethodDescriptionAbstractUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds aUser
to the metadata using the configured key.DelegatingUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) NoOpUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) default Metadata
UserProvider.addToMetadata
(Metadata metadata, User user) Adds user-related metadata to a message, overwriting existing values if present.UserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds user-related metadata to a message.Constructor parameters in io.fluxcapacitor.javaclient.tracking.handling.authentication with type arguments of type UserModifierConstructorDescriptionAbstractUserProvider
(Class<? extends User> userClass) Constructs anAbstractUserProvider
using the default metadata keyAbstractUserProvider.DEFAULT_USER_KEY
. -
Uses of User in io.fluxcapacitor.javaclient.tracking.handling.validation
Methods in io.fluxcapacitor.javaclient.tracking.handling.validation with parameters of type UserModifier and TypeMethodDescriptionstatic boolean
ValidationUtils.assertAuthorized
(Class<?> payloadType, User user) Verifies whether the given user is authorized to issue the given payload, based on roles declared via annotations on the payload's class or package.static boolean
ValidationUtils.assertAuthorized
(Class<?> target, Executable method, User user) Checks if the given user is authorized to invoke the given method on the given target.protected static boolean
ValidationUtils.assertAuthorized
(String action, User user, ValidationUtils.RequiredRole[] requiredRoles) static boolean
ValidationUtils.ignoreSilently
(Class<?> payloadType, User user) Determines whether a particular operation on a payload type should be ignored without raising an exception.static boolean
ValidationUtils.ignoreSilently
(Class<?> target, Executable method, User user) Determines whether a specific method invocation on a target class by a given user should be ignored without raising an exception, based on the user's authorization. -
Uses of User in io.fluxcapacitor.javaclient.web
Methods in io.fluxcapacitor.javaclient.web with parameters of type UserModifier and TypeMethodDescription -
Uses of User in io.fluxcapacitor.proxy
Methods in io.fluxcapacitor.proxy with parameters of type User