Package 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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionSpincastMainPebbleExtensionDefault
(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
Modifier and TypeMethodDescriptionconvertToSet
(Object obj) protected String
encodeQuerystringValue
(String value) List<com.mitchellbosecke.pebble.attributes.AttributeResolver>
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.attributes.AttributeResolver
protected Dictionary
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected ObjectConverter
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.google.inject.Provider<RequestContext<?>>
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Function
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected SpincastConfig
protected SpincastPebbleTemplatingEngineConfig
protected SpincastUtils
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected Object
protected Object
protected Object
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected String
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.extension.Filter
getValidationMessagesFilter
(String templatePath) protected String
protected String
protected com.mitchellbosecke.pebble.extension.Filter
protected String
protected com.mitchellbosecke.pebble.attributes.ResolvedAttribute
resolveJsonArrayAttribute
(JsonArray arr, int pos, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) protected com.mitchellbosecke.pebble.attributes.ResolvedAttribute
resolveJsonObjectAttribute
(JsonObject obj, String attrName, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getBinaryOperators, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mitchellbosecke.pebble.extension.Extension
getBinaryOperators, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
FILTER_NAME_CHECKED
- See Also:
-
FILTER_NAME_SELECTED
- See Also:
-
FILTER_NAME_VALIDATION_MESSAGES
- See Also:
-
FILTER_NAME_VALIDATION_GROUP_MESSAGES
- See Also:
-
FILTER_NAME_VALIDATION_CLASS
- See Also:
-
FILTER_NAME_VALIDATION_FRESH
- See Also:
-
FILTER_NAME_VALIDATION_SUBMITTED
- See Also:
-
FILTER_NAME_VALIDATION_IS_VALID
- See Also:
-
FILTER_NAME_VALIDATION_HAS_SUCCESSES
- See Also:
-
FILTER_NAME_VALIDATION_HAS_WARNINGS
- See Also:
-
FILTER_NAME_VALIDATION_HAS_ERRORS
- See Also:
-
FILTER_NAME_VALIDATION_GET
- See Also:
-
FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR
- See Also:
-
FILTER_NAME_BOOLEAN
- See Also:
-
FILTER_NAME_EMPTY_OR_FALSE
- See Also:
-
FILTER_NAME_EMPTY_OR_TRUE
- See Also:
-
FILTER_NAME_NOT_EMPTY_AND_FALSE
- See Also:
-
FILTER_NAME_NOT_EMPTY_AND_TRUE
- See Also:
-
FUNCTION_NAME_VALIDATION_GET
- See Also:
-
FUNCTION_NAME_VALIDATION_JS_ONE_LINE
- See Also:
-
FUNCTION_NAME_MESSAGE
- See Also:
-
FUNCTION_NAME_QUERYSTRING_APPEND
- See Also:
-
FUNCTION_NAME_QUERYSTRING_TO_HIDDEN_FIELDS
- See Also:
-
FUNCTION_NAME_ROUTE
- See Also:
-
FUNCTION_NAME_ROUTE_ID
- See Also:
-
-
Constructor Details
-
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 Details
-
getTemplatingEngine
-
getObjectConverter
-
getSpincastUtils
-
getDictionary
-
getSpincastConfig
-
getRequestContextProvider
-
getSpincastPebbleTemplatingEngineConfig
-
getAttributeResolver
- Specified by:
getAttributeResolver
in interfacecom.mitchellbosecke.pebble.extension.Extension
- Overrides:
getAttributeResolver
in classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
getDefaultSpincastAttributeResolver
protected com.mitchellbosecke.pebble.attributes.AttributeResolver getDefaultSpincastAttributeResolver() -
resolveJsonObjectAttribute
protected com.mitchellbosecke.pebble.attributes.ResolvedAttribute resolveJsonObjectAttribute(JsonObject obj, String attrName, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) -
resolveJsonArrayAttribute
protected com.mitchellbosecke.pebble.attributes.ResolvedAttribute resolveJsonArrayAttribute(JsonArray arr, int pos, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) -
getFilters
- Specified by:
getFilters
in interfacecom.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFilters
in classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
getFunctions
- Specified by:
getFunctions
in interfacecom.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFunctions
in classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
convertToSet
-
getValidationClassError
-
getValidationClassWarning
-
getValidationClassSuccess
-
getValidationClassNoMessage
-
getValidationMessagesTemplatePath
-
getValidationGroupMessagesTemplatePath
-
getCheckedFilterName
-
getCheckedFilter
protected com.mitchellbosecke.pebble.extension.Filter getCheckedFilter() -
getSelectedFilterName
-
getSelectedFilter
protected com.mitchellbosecke.pebble.extension.Filter getSelectedFilter() -
getValidationMessagesFilterName
-
getValidationGroupMessagesFilterName
-
getValidationMessagesFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationMessagesFilter(String templatePath) -
getValidationClassFilterName
-
getValidationClassFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationClassFilter() -
getValidationFreshFilterName
-
getValidationFreshFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationFreshFilter() -
getValidationSubmittedFilterName
-
getValidationSubmittedFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationSubmittedFilter() -
getValidationIsValidFilterName
-
getValidationIsValidFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationIsValidFilter() -
getValidationHasSuccessesFilterName
-
getValidationHasSuccessesFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasSuccessesFilter() -
getValidationHasWarningsFilterName
-
getValidationHasWarningsFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasWarningsFilter() -
getValidationHasErrorsFilterName
-
getValidationHasErrorsFilter
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasErrorsFilter() -
getGetFilterName
-
getGetFilter
protected com.mitchellbosecke.pebble.extension.Filter getGetFilter() -
getNewlineToBrFilterName
-
getNewlineToBrFilter
protected com.mitchellbosecke.pebble.extension.Filter getNewlineToBrFilter() -
getBooleanFilterName
-
getBooleanFilter
protected com.mitchellbosecke.pebble.extension.Filter getBooleanFilter() -
getIsEmptyOrFalseFilterName
-
getIsEmptyOrFalseFilter
protected com.mitchellbosecke.pebble.extension.Filter getIsEmptyOrFalseFilter() -
getIsEmptyOrTrueFilterName
-
getIsEmptyOrTrueFilter
protected com.mitchellbosecke.pebble.extension.Filter getIsEmptyOrTrueFilter() -
getIsNotEmptyAndFalseFilterName
-
getIsNotEmptyAndFalseFilte
protected com.mitchellbosecke.pebble.extension.Filter getIsNotEmptyAndFalseFilte() -
getIsNotEmptyAndTrueFilterName
-
getIsNotEmptyAndTrueFilte
protected com.mitchellbosecke.pebble.extension.Filter getIsNotEmptyAndTrueFilte() -
getGetFunctionName
-
getGetFunction
protected com.mitchellbosecke.pebble.extension.Function getGetFunction() -
getJsOneLinerOutputFunctionName
-
getJsOneLinerOutputFunction
protected com.mitchellbosecke.pebble.extension.Function getJsOneLinerOutputFunction() -
getMessageFunctionName
-
getMessageFunction
protected com.mitchellbosecke.pebble.extension.Function getMessageFunction() -
getQuerystringAppendFunctionName
-
getQuerystringAppendFunction
protected com.mitchellbosecke.pebble.extension.Function getQuerystringAppendFunction() -
getQuerystringToHiddenFieldsFunctionName
-
getQuerystringToHiddenFieldsFunction
protected com.mitchellbosecke.pebble.extension.Function getQuerystringToHiddenFieldsFunction() -
encodeQuerystringValue
-
getRouteFunctionName
-
getRouteFunction
protected com.mitchellbosecke.pebble.extension.Function getRouteFunction() -
getRouteIdFunctionName
-
getRouteIdFunction
protected com.mitchellbosecke.pebble.extension.Function getRouteIdFunction()
-