Class PathTemplateValuesProvider
- java.lang.Object
-
- com.hybris.cockpitng.core.util.template.impl.PathTemplateValuesProvider
-
- All Implemented Interfaces:
TemplateValuesProvider
public class PathTemplateValuesProvider extends java.lang.Object implements TemplateValuesProvider
Provider that uses template identity as a full resource path and assigns it as follows:- all before widget's id is assigned to
VALUE_NAME_ROOT- widget's id is assigned to
VALUE_NAME_WIDGET- path after widget's id is assigned to
VALUE_NAME_VIEW_PATH- full URL (incl. potential parameters) after widget's id is assigned to
VALUE_NAME_VIEW_URL
-
-
Constructor Summary
Constructors Constructor Description PathTemplateValuesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WidgetLibUtilsgetWidgetLibUtils()java.util.Map<java.lang.String,java.lang.Object>provideTemplateValues(java.lang.Object context, java.lang.String templateId)Method allows to define values available in template.voidsetWidgetLibUtils(WidgetLibUtils widgetLibUtils)
-
-
-
Method Detail
-
provideTemplateValues
public java.util.Map<java.lang.String,java.lang.Object> provideTemplateValues(java.lang.Object context, java.lang.String templateId)Description copied from interface:TemplateValuesProviderMethod allows to define values available in template.- Specified by:
provideTemplateValuesin interfaceTemplateValuesProvider- Parameters:
context- object against which a template is to be resolvedtemplateId- identity of a template to be resolved- Returns:
- map of values available in template
-
getWidgetLibUtils
protected WidgetLibUtils getWidgetLibUtils()
-
setWidgetLibUtils
public void setWidgetLibUtils(WidgetLibUtils widgetLibUtils)
-
-