Package org.cyclos.impl.utils
Interface ContentProcessingAccessor
-
public interface ContentProcessingAccessorProvides access to configure and process dynamic content
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentProcessingAccessoraddThymeleafBinding(String name, Object value)Adds a variable to be available in the Thymeleaf contextContentProcessingAccessoraddThymeleafBindings(Map<String,Object> variables)Adds variables to be available in the Thymeleaf contextStringprocess(String template)Process the content in the given templateContentProcessingAccessorsetConversionContext(Bean target, Property<String,?> property)Indicates that the content is being processed as result of a conversionContentProcessingAccessorsetUser(BasicUser user)Sets the user to be the base for the variables function.ContentProcessingAccessorsetVariablesFunction(Function<String,Object> function)Sets a function to process variables BEFORE calling the user variables function.
-
-
-
Method Detail
-
addThymeleafBinding
ContentProcessingAccessor addThymeleafBinding(String name, Object value)
Adds a variable to be available in the Thymeleaf context
-
addThymeleafBindings
ContentProcessingAccessor addThymeleafBindings(Map<String,Object> variables)
Adds variables to be available in the Thymeleaf context
-
setConversionContext
ContentProcessingAccessor setConversionContext(Bean target, Property<String,?> property)
Indicates that the content is being processed as result of a conversion
-
setUser
ContentProcessingAccessor setUser(BasicUser user)
Sets the user to be the base for the variables function. When null, gets the logged user.
-
setVariablesFunction
ContentProcessingAccessor setVariablesFunction(Function<String,Object> function)
Sets a function to process variables BEFORE calling the user variables function. Variables not processed by this function will be later on processed by the user variables function
-
-