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.StringcreateXmlContent(WidgetDashboardConfiguration config)CockpitUIComponentConfigurationDaogetCockpitUIComponentConfigurationDao()java.lang.ClassgetComponentClass()Provides the class this strategy is valid for.MediaServicegetMediaService()ModelServicegetModelService()voidpersistComponentConfiguration(UIComponentConfiguration configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)Stores the configuration according to the strategy implementationvoidsetCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao)voidsetMediaService(MediaService mediaService)voidsetModelService(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:ConfigurationPersistingStrategyStores the configuration according to the strategy implementation- Specified by:
persistComponentConfigurationin interfaceConfigurationPersistingStrategy- Overrides:
persistComponentConfigurationin 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:ConfigurationPersistingStrategyProvides the class this strategy is valid for. Used for mapping strategies to classes via spring.- Specified by:
getComponentClassin interfaceConfigurationPersistingStrategy- Overrides:
getComponentClassin classDefaultConfigurationPersistingStrategy- Returns:
- the class of the configuration which this strategy can handle
-
setModelService
public void setModelService(ModelService modelService)
- Overrides:
setModelServicein classDefaultConfigurationPersistingStrategy
-
getModelService
public ModelService getModelService()
- Overrides:
getModelServicein classDefaultConfigurationPersistingStrategy
-
setMediaService
public void setMediaService(MediaService mediaService)
- Overrides:
setMediaServicein classDefaultConfigurationPersistingStrategy
-
getMediaService
public MediaService getMediaService()
- Overrides:
getMediaServicein classDefaultConfigurationPersistingStrategy
-
setCockpitUIComponentConfigurationDao
public void setCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao)
- Overrides:
setCockpitUIComponentConfigurationDaoin classDefaultConfigurationPersistingStrategy
-
getCockpitUIComponentConfigurationDao
public CockpitUIComponentConfigurationDao getCockpitUIComponentConfigurationDao()
- Overrides:
getCockpitUIComponentConfigurationDaoin classDefaultConfigurationPersistingStrategy
-
-