Class DashboardPersistingStrategy
- java.lang.Object
-
- de.hybris.platform.cockpit.services.config.impl.DefaultConfigurationPersistingStrategy
-
- de.hybris.platform.cockpit.services.config.impl.DashboardPersistingStrategy
-
- All Implemented Interfaces:
ConfigurationPersistingStrategy
public class DashboardPersistingStrategy extends DefaultConfigurationPersistingStrategy
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.cockpit.services.config.ConfigurationPersistingStrategy
COMPONENT_PERMISSION_CODE
-
-
Constructor Summary
Constructors Constructor Description DashboardPersistingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createXmlContent(WidgetDashboardConfiguration config)
CockpitUIComponentConfigurationDao
getCockpitUIComponentConfigurationDao()
java.lang.Class
getComponentClass()
Provides the class this strategy is valid for.MediaService
getMediaService()
ModelService
getModelService()
void
persistComponentConfiguration(UIComponentConfiguration configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)
Stores the configuration according to the strategy implementationvoid
setCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao)
void
setMediaService(MediaService mediaService)
void
setModelService(ModelService modelService)
-
Methods inherited from class de.hybris.platform.cockpit.services.config.impl.DefaultConfigurationPersistingStrategy
checkPermissions, createXml, getComponentClassName, getConfigurationFactory, getJaxbElement, getRootJaxbElement, setComponentClassName, setConfigurationFactory, setJaxbClass, setJaxbContextCache, setSchemaResource, setUiAccessRightService, storeConfigurationMedia, updateJaxb
-
-
-
-
Method Detail
-
persistComponentConfiguration
public void persistComponentConfiguration(UIComponentConfiguration configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)
Description copied from interface:ConfigurationPersistingStrategy
Stores the configuration according to the strategy implementation- Specified by:
persistComponentConfiguration
in interfaceConfigurationPersistingStrategy
- Overrides:
persistComponentConfiguration
in classDefaultConfigurationPersistingStrategy
- Parameters:
configuration
- the configuration to storeuser
- the user the configuration should be valid forobjectTemplate
- the object template the configuration should be valid forcode
- the component code of the configuration
-
createXmlContent
protected java.lang.String createXmlContent(WidgetDashboardConfiguration config)
-
getComponentClass
public java.lang.Class getComponentClass()
Description copied from interface:ConfigurationPersistingStrategy
Provides the class this strategy is valid for. Used for mapping strategies to classes via spring.- Specified by:
getComponentClass
in interfaceConfigurationPersistingStrategy
- Overrides:
getComponentClass
in classDefaultConfigurationPersistingStrategy
- Returns:
- the class of the configuration which this strategy can handle
-
setModelService
public void setModelService(ModelService modelService)
- Overrides:
setModelService
in classDefaultConfigurationPersistingStrategy
-
getModelService
public ModelService getModelService()
- Overrides:
getModelService
in classDefaultConfigurationPersistingStrategy
-
setMediaService
public void setMediaService(MediaService mediaService)
- Overrides:
setMediaService
in classDefaultConfigurationPersistingStrategy
-
getMediaService
public MediaService getMediaService()
- Overrides:
getMediaService
in classDefaultConfigurationPersistingStrategy
-
setCockpitUIComponentConfigurationDao
public void setCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao)
- Overrides:
setCockpitUIComponentConfigurationDao
in classDefaultConfigurationPersistingStrategy
-
getCockpitUIComponentConfigurationDao
public CockpitUIComponentConfigurationDao getCockpitUIComponentConfigurationDao()
- Overrides:
getCockpitUIComponentConfigurationDao
in classDefaultConfigurationPersistingStrategy
-
-