TenantAwareFunction

public abstract class TenantAwareFunction<F, T> extends TenantAware implements Function<T, R>

A function which is calculated in a tenant context.

Parameters

<F>

the type of the input

<T>

the type of the output

Inheritors

Constructors

Link copied to clipboard
protected void TenantAwareFunction()
protected void TenantAwareFunction(TenantId tenantId)

Functions

Link copied to clipboard
public T execute(F input)
Returns the result of applying the function to the passed input.

Inherited functions

Link copied to clipboard
public Function<T, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(T p)
Link copied to clipboard
public Function<V, R> compose<V>(Function<? extends Object, ? extends T> before)
Link copied to clipboard
public static Function<T, T> identity<T>()
Link copied to clipboard
public static boolean isTenantSet()
Verifies whether a current tenant is set in the execution context.