
public.javadoc.org.spincast.plugins.pebble.SpincastMainPebbleExtensionDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastMainPebbleExtensionDefault (org.spincast:spincast-framework 1.2.0 API)
org.spincast.plugins.pebble
Class SpincastMainPebbleExtensionDefault
- java.lang.Object
-
- com.mitchellbosecke.pebble.extension.AbstractExtension
-
- org.spincast.plugins.pebble.SpincastMainPebbleExtensionDefault
-
- All Implemented Interfaces:
- com.mitchellbosecke.pebble.extension.Extension, SpincastMainPebbleExtension
public class SpincastMainPebbleExtensionDefault
extends com.mitchellbosecke.pebble.extension.AbstractExtension
implements SpincastMainPebbleExtension
Spincast Main Pebble extension implementation.
-
-
Field Summary
Fields
Modifier and Type
Field and Description
static String
FILTER_NAME_BOOLEAN
static String
FILTER_NAME_CHECKED
static String
FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR
static String
FILTER_NAME_SELECTED
static String
FILTER_NAME_VALIDATION_CLASS
static String
FILTER_NAME_VALIDATION_FRESH
static String
FILTER_NAME_VALIDATION_GET
static String
FILTER_NAME_VALIDATION_GROUP_MESSAGES
static String
FILTER_NAME_VALIDATION_HAS_ERRORS
static String
FILTER_NAME_VALIDATION_HAS_SUCCESSES
static String
FILTER_NAME_VALIDATION_HAS_WARNINGS
static String
FILTER_NAME_VALIDATION_IS_VALID
static String
FILTER_NAME_VALIDATION_MESSAGES
static String
FILTER_NAME_VALIDATION_SUBMITTED
static String
FUNCTION_NAME_MESSAGE
static String
FUNCTION_NAME_QUERYSTRING_APPEND
static String
FUNCTION_NAME_QUERYSTRING_TO_HIDDEN_FIELDS
static String
FUNCTION_NAME_ROUTE
static String
FUNCTION_NAME_ROUTE_ID
static String
FUNCTION_NAME_VALIDATION_GET
static String
FUNCTION_NAME_VALIDATION_JS_ONE_LINE
-
Constructor Summary
Constructors
Constructor and Description
SpincastMainPebbleExtensionDefault(com.google.inject.Provider<TemplatingEngine> templatingEngineProvider,
SpincastPebbleTemplatingEngineConfig spincastPebbleTemplatingEngineConfig,
ObjectConverter objectConverter,
SpincastUtils spincastUtils,
Dictionary dictionary,
com.google.inject.Provider<RequestContext<?>> requestContextProvider,
SpincastConfig spincastConfig)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected Set<Object>
convertToSet(Object obj)
protected String
encodeQuerystringValue(String value)
protected com.mitchellbosecke.pebble.extension.Filter
getBooleanFilter()
protected String
getBooleanFilterName()
protected com.mitchellbosecke.pebble.extension.Filter
getCheckedFilter()
protected String
getCheckedFilterName()
protected Dictionary
getDictionary()
protected com.mitchellbosecke.pebble.template.EvaluationContext
getEvaluationContext(Map<String,Object> args)
Map<String,com.mitchellbosecke.pebble.extension.Filter>
getFilters()
Map<String,com.mitchellbosecke.pebble.extension.Function>
getFunctions()
protected com.mitchellbosecke.pebble.extension.Filter
getGetFilter()
protected String
getGetFilterName()
protected com.mitchellbosecke.pebble.extension.Function
getGetFunction()
protected String
getGetFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getJsOneLinerOutputFunction()
protected String
getJsOneLinerOutputFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getMessageFunction()
protected String
getMessageFunctionName()
protected Object
getModelElement(Map<String,Object> args,
String property)
protected com.mitchellbosecke.pebble.extension.Filter
getNewlineToBrFilter()
protected String
getNewlineToBrFilterName()
protected ObjectConverter
getObjectConverter()
protected com.mitchellbosecke.pebble.template.PebbleTemplate
getPebbleTemplate(Map<String,Object> args)
protected Map<String,Object>
getPropertyAsMap(Map<String,Object> args,
String property)
protected String
getPropertyAsString(Map<String,Object> args,
String property)
protected com.mitchellbosecke.pebble.extension.Function
getQuerystringAppendFunction()
protected String
getQuerystringAppendFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getQuerystringToHiddenFieldsFunction()
protected String
getQuerystringToHiddenFieldsFunctionName()
protected com.google.inject.Provider<RequestContext<?>>
getRequestContextProvider()
protected com.mitchellbosecke.pebble.extension.Function
getRouteFunction()
protected String
getRouteFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getRouteIdFunction()
protected String
getRouteIdFunctionName()
protected com.mitchellbosecke.pebble.template.ScopeChain
getScopeChain(Map<String,Object> args)
protected com.mitchellbosecke.pebble.extension.Filter
getSelectedFilter()
protected String
getSelectedFilterName()
protected SpincastConfig
getSpincastConfig()
protected SpincastPebbleTemplatingEngineConfig
getSpincastPebbleTemplatingEngineConfig()
protected SpincastUtils
getSpincastUtils()
TemplatingEngine
getTemplatingEngine()
protected String
getValidationClassError()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationClassFilter()
protected String
getValidationClassFilterName()
protected Object
getValidationClassNoMessage()
protected Object
getValidationClassSuccess()
protected Object
getValidationClassWarning()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationFreshFilter()
protected String
getValidationFreshFilterName()
protected String
getValidationGroupMessagesFilterName()
protected String
getValidationGroupMessagesTemplatePath()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationHasErrorsFilter()
protected String
getValidationHasErrorsFilterName()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationHasSuccessesFilter()
protected String
getValidationHasSuccessesFilterName()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationHasWarningsFilter()
protected String
getValidationHasWarningsFilterName()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationIsValidFilter()
protected String
getValidationIsValidFilterName()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationMessagesFilter(String templatePath)
protected String
getValidationMessagesFilterName()
protected String
getValidationMessagesTemplatePath()
protected com.mitchellbosecke.pebble.extension.Filter
getValidationSubmittedFilter()
protected String
getValidationSubmittedFilterName()
-
Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getBinaryOperators, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
-
Field Detail
-
FILTER_NAME_CHECKED
public static final String FILTER_NAME_CHECKED
- See Also:
- Constant Field Values
-
FILTER_NAME_SELECTED
public static final String FILTER_NAME_SELECTED
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_MESSAGES
public static final String FILTER_NAME_VALIDATION_MESSAGES
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_GROUP_MESSAGES
public static final String FILTER_NAME_VALIDATION_GROUP_MESSAGES
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_CLASS
public static final String FILTER_NAME_VALIDATION_CLASS
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_FRESH
public static final String FILTER_NAME_VALIDATION_FRESH
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_SUBMITTED
public static final String FILTER_NAME_VALIDATION_SUBMITTED
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_IS_VALID
public static final String FILTER_NAME_VALIDATION_IS_VALID
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_HAS_SUCCESSES
public static final String FILTER_NAME_VALIDATION_HAS_SUCCESSES
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_HAS_WARNINGS
public static final String FILTER_NAME_VALIDATION_HAS_WARNINGS
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_HAS_ERRORS
public static final String FILTER_NAME_VALIDATION_HAS_ERRORS
- See Also:
- Constant Field Values
-
FILTER_NAME_VALIDATION_GET
public static final String FILTER_NAME_VALIDATION_GET
- See Also:
- Constant Field Values
-
FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR
public static final String FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR
- See Also:
- Constant Field Values
-
FILTER_NAME_BOOLEAN
public static final String FILTER_NAME_BOOLEAN
- See Also:
- Constant Field Values
-
FUNCTION_NAME_VALIDATION_GET
public static final String FUNCTION_NAME_VALIDATION_GET
- See Also:
- Constant Field Values
-
FUNCTION_NAME_VALIDATION_JS_ONE_LINE
public static final String FUNCTION_NAME_VALIDATION_JS_ONE_LINE
- See Also:
- Constant Field Values
-
FUNCTION_NAME_MESSAGE
public static final String FUNCTION_NAME_MESSAGE
- See Also:
- Constant Field Values
-
FUNCTION_NAME_QUERYSTRING_APPEND
public static final String FUNCTION_NAME_QUERYSTRING_APPEND
- See Also:
- Constant Field Values
-
FUNCTION_NAME_QUERYSTRING_TO_HIDDEN_FIELDS
public static final String FUNCTION_NAME_QUERYSTRING_TO_HIDDEN_FIELDS
- See Also:
- Constant Field Values
-
FUNCTION_NAME_ROUTE
public static final String FUNCTION_NAME_ROUTE
- See Also:
- Constant Field Values
-
FUNCTION_NAME_ROUTE_ID
public static final String FUNCTION_NAME_ROUTE_ID
- See Also:
- Constant Field Values
-
Constructor Detail
-
SpincastMainPebbleExtensionDefault
@Inject
public SpincastMainPebbleExtensionDefault(com.google.inject.Provider<TemplatingEngine> templatingEngineProvider,
SpincastPebbleTemplatingEngineConfig spincastPebbleTemplatingEngineConfig,
ObjectConverter objectConverter,
SpincastUtils spincastUtils,
Dictionary dictionary,
com.google.inject.Provider<RequestContext<?>> requestContextProvider,
SpincastConfig spincastConfig)
Constructor
-
Method Detail
-
getTemplatingEngine
public TemplatingEngine getTemplatingEngine()
-
getObjectConverter
protected ObjectConverter getObjectConverter()
-
getSpincastUtils
protected SpincastUtils getSpincastUtils()
-
getDictionary
protected Dictionary getDictionary()
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getRequestContextProvider
protected com.google.inject.Provider<RequestContext<?>> getRequestContextProvider()
-
getSpincastPebbleTemplatingEngineConfig
protected SpincastPebbleTemplatingEngineConfig getSpincastPebbleTemplatingEngineConfig()
-
getFilters
public Map<String,com.mitchellbosecke.pebble.extension.Filter> getFilters()
- Specified by:
getFilters
in interface com.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFilters
in class com.mitchellbosecke.pebble.extension.AbstractExtension
-
getFunctions
public Map<String,com.mitchellbosecke.pebble.extension.Function> getFunctions()
- Specified by:
getFunctions
in interface com.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFunctions
in class com.mitchellbosecke.pebble.extension.AbstractExtension
-
getEvaluationContext
protected com.mitchellbosecke.pebble.template.EvaluationContext getEvaluationContext(Map<String,Object> args)
-
getPebbleTemplate
protected com.mitchellbosecke.pebble.template.PebbleTemplate getPebbleTemplate(Map<String,Object> args)
-
getScopeChain
protected com.mitchellbosecke.pebble.template.ScopeChain getScopeChain(Map<String,Object> args)
-
getPropertyAsMap
protected Map<String,Object> getPropertyAsMap(Map<String,Object> args,
String property)
-
getValidationClassError
protected String getValidationClassError()
-
getValidationClassWarning
protected Object getValidationClassWarning()
-
getValidationClassSuccess
protected Object getValidationClassSuccess()
-
getValidationClassNoMessage
protected Object getValidationClassNoMessage()
-
getValidationMessagesTemplatePath
protected String getValidationMessagesTemplatePath()
-
getValidationGroupMessagesTemplatePath
protected String getValidationGroupMessagesTemplatePath()
-
getCheckedFilterName
protected String getCheckedFilterName()
-
getCheckedFilter
protected com.mitchellbosecke.pebble.extension.Filter getCheckedFilter()
-
getSelectedFilterName
protected String getSelectedFilterName()
-
getSelectedFilter
protected com.mitchellbosecke.pebble.extension.Filter getSelectedFilter()
-
getValidationMessagesFilterName
protected String getValidationMessagesFilterName()
-
getValidationGroupMessagesFilterName
protected String getValidationGroupMessagesFilterName()
-
getValidationMessagesFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationMessagesFilter(String templatePath)
-
getValidationClassFilterName
protected String getValidationClassFilterName()
-
getValidationClassFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationClassFilter()
-
getValidationFreshFilterName
protected String getValidationFreshFilterName()
-
getValidationFreshFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationFreshFilter()
-
getValidationSubmittedFilterName
protected String getValidationSubmittedFilterName()
-
getValidationSubmittedFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationSubmittedFilter()
-
getValidationIsValidFilterName
protected String getValidationIsValidFilterName()
-
getValidationIsValidFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationIsValidFilter()
-
getValidationHasSuccessesFilterName
protected String getValidationHasSuccessesFilterName()
-
getValidationHasSuccessesFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasSuccessesFilter()
-
getValidationHasWarningsFilterName
protected String getValidationHasWarningsFilterName()
-
getValidationHasWarningsFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasWarningsFilter()
-
getValidationHasErrorsFilterName
protected String getValidationHasErrorsFilterName()
-
getValidationHasErrorsFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasErrorsFilter()
-
getGetFilterName
protected String getGetFilterName()
-
getGetFilter
protected com.mitchellbosecke.pebble.extension.Filter getGetFilter()
-
getNewlineToBrFilterName
protected String getNewlineToBrFilterName()
-
getNewlineToBrFilter
protected com.mitchellbosecke.pebble.extension.Filter getNewlineToBrFilter()
-
getBooleanFilterName
protected String getBooleanFilterName()
-
getBooleanFilter
protected com.mitchellbosecke.pebble.extension.Filter getBooleanFilter()
-
getGetFunctionName
protected String getGetFunctionName()
-
getGetFunction
protected com.mitchellbosecke.pebble.extension.Function getGetFunction()
-
getJsOneLinerOutputFunctionName
protected String getJsOneLinerOutputFunctionName()
-
getJsOneLinerOutputFunction
protected com.mitchellbosecke.pebble.extension.Function getJsOneLinerOutputFunction()
-
getMessageFunctionName
protected String getMessageFunctionName()
-
getMessageFunction
protected com.mitchellbosecke.pebble.extension.Function getMessageFunction()
-
getQuerystringAppendFunctionName
protected String getQuerystringAppendFunctionName()
-
getQuerystringAppendFunction
protected com.mitchellbosecke.pebble.extension.Function getQuerystringAppendFunction()
-
getQuerystringToHiddenFieldsFunctionName
protected String getQuerystringToHiddenFieldsFunctionName()
-
getQuerystringToHiddenFieldsFunction
protected com.mitchellbosecke.pebble.extension.Function getQuerystringToHiddenFieldsFunction()
-
getRouteFunctionName
protected String getRouteFunctionName()
-
getRouteFunction
protected com.mitchellbosecke.pebble.extension.Function getRouteFunction()
-
getRouteIdFunctionName
protected String getRouteIdFunctionName()
-
getRouteIdFunction
protected com.mitchellbosecke.pebble.extension.Function getRouteIdFunction()
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy