Package io.jmix.securitydata.impl
Class CurrentUserQueryParamValueProvider
java.lang.Object
io.jmix.securitydata.impl.CurrentUserQueryParamValueProvider
- All Implemented Interfaces:
QueryParamValueProvider
@Component("sec_CurrentUserQueryParamValueProvider")
@Order(200)
public class CurrentUserQueryParamValueProvider
extends Object
implements QueryParamValueProvider
Takes query parameter values from the currently authenticated (or substituted) user object.
Parameter names must be in the form current_user_ATTRIBUTE
where ATTRIBUTE
is the name of
an attribute of the user object.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
CURRENT_USER_PREFIX
- See Also:
-
currentUserSubstitution
-
-
Constructor Details
-
CurrentUserQueryParamValueProvider
public CurrentUserQueryParamValueProvider()
-
-
Method Details
-
supports
Description copied from interface:QueryParamValueProvider
Returns true if this provider supports the given parameter.- Specified by:
supports
in interfaceQueryParamValueProvider
-
getValue
Description copied from interface:QueryParamValueProvider
Returns a value for the given parameter.- Specified by:
getValue
in interfaceQueryParamValueProvider
-