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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionSpincastMainPebbleExtensionDefault(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 StringencodeQuerystringValue(String value) List<com.mitchellbosecke.pebble.attributes.AttributeResolver>protected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.attributes.AttributeResolverprotected Dictionaryprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected ObjectConverterprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.google.inject.Provider<RequestContext<?>>protected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Functionprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected SpincastConfigprotected SpincastPebbleTemplatingEngineConfigprotected SpincastUtilsprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected Objectprotected Objectprotected Objectprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected Stringprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.extension.FiltergetValidationMessagesFilter(String templatePath) protected Stringprotected Stringprotected com.mitchellbosecke.pebble.extension.Filterprotected Stringprotected com.mitchellbosecke.pebble.attributes.ResolvedAttributeresolveJsonArrayAttribute(JsonArray arr, int pos, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) protected com.mitchellbosecke.pebble.attributes.ResolvedAttributeresolveJsonObjectAttribute(JsonObject obj, String attrName, com.mitchellbosecke.pebble.template.EvaluationContextImpl context) Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getBinaryOperators, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperatorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getAttributeResolverin interfacecom.mitchellbosecke.pebble.extension.Extension- Overrides:
getAttributeResolverin 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:
getFiltersin interfacecom.mitchellbosecke.pebble.extension.Extension- Overrides:
getFiltersin classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
getFunctions
- Specified by:
getFunctionsin interfacecom.mitchellbosecke.pebble.extension.Extension- Overrides:
getFunctionsin 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()
-