Package de.hybris.platform.cockpit.impl
Class DefaultCockpitConfigurationService
- java.lang.Object
-
- de.hybris.platform.cockpit.impl.DefaultCockpitConfigurationService
-
- All Implemented Interfaces:
CockpitConfigurationService
public class DefaultCockpitConfigurationService extends java.lang.Object implements CockpitConfigurationService
Default implementation forCockpitConfigurationService
-
-
Constructor Summary
Constructors Constructor Description DefaultCockpitConfigurationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CockpitConfigurationDaogetCockpitConfigurationDao()CockpitUIComponentConfigurationModelgetComponentConfiguration(PrincipalModel principal, java.lang.String objectTemplateCode, java.lang.String code)Gets the component configuration.java.util.List<CockpitUIComponentConfigurationModel>getComponentConfigurationsForPrincipal(PrincipalModel principal)Gets the component configurations for principal.java.util.List<CockpitUIComponentConfigurationModel>getDedicatedComponentConfigurationsForPrincipal(PrincipalModel principal)Gets dedicated component configurations for principal.java.util.List<java.lang.String>getRoleNamesForPrincipal(PrincipalModel principal)Gets the role names for principal.voidremoveComponentConfigurations(java.util.List<CockpitUIComponentConfigurationModel> configurations)Removes the given component configurations from persistence.voidsetCockpitConfigurationDao(CockpitConfigurationDao cockpitConfigurationDao)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
getComponentConfigurationsForPrincipal
public java.util.List<CockpitUIComponentConfigurationModel> getComponentConfigurationsForPrincipal(PrincipalModel principal)
Description copied from interface:CockpitConfigurationServiceGets the component configurations for principal. This also includes configurations for supergroups.- Specified by:
getComponentConfigurationsForPrincipalin interfaceCockpitConfigurationService- Parameters:
principal- the principal- Returns:
- the component configurations for principal
-
getComponentConfiguration
public CockpitUIComponentConfigurationModel getComponentConfiguration(PrincipalModel principal, java.lang.String objectTemplateCode, java.lang.String code)
Description copied from interface:CockpitConfigurationServiceGets the component configuration.- Specified by:
getComponentConfigurationin interfaceCockpitConfigurationService- Parameters:
principal- the principalobjectTemplateCode- the object template codecode- the code- Returns:
- the component configuration
-
getDedicatedComponentConfigurationsForPrincipal
public java.util.List<CockpitUIComponentConfigurationModel> getDedicatedComponentConfigurationsForPrincipal(PrincipalModel principal)
Description copied from interface:CockpitConfigurationServiceGets dedicated component configurations for principal. Supergroups are not included.- Specified by:
getDedicatedComponentConfigurationsForPrincipalin interfaceCockpitConfigurationService
-
removeComponentConfigurations
public void removeComponentConfigurations(java.util.List<CockpitUIComponentConfigurationModel> configurations)
Description copied from interface:CockpitConfigurationServiceRemoves the given component configurations from persistence. Also deletes the relatedCockpitUIConfigurationMediaModelitems if they are not shared with anotherCockpitUIComponentConfigurationModel.- Specified by:
removeComponentConfigurationsin interfaceCockpitConfigurationService- Parameters:
configurations- the configurations that should be removed.
-
getRoleNamesForPrincipal
public java.util.List<java.lang.String> getRoleNamesForPrincipal(PrincipalModel principal)
Description copied from interface:CockpitConfigurationServiceGets the role names for principal.- Specified by:
getRoleNamesForPrincipalin interfaceCockpitConfigurationService- Parameters:
principal- the principal- Returns:
- the role names for principal
-
getCockpitConfigurationDao
protected CockpitConfigurationDao getCockpitConfigurationDao()
-
setCockpitConfigurationDao
public void setCockpitConfigurationDao(CockpitConfigurationDao cockpitConfigurationDao)
-
setModelService
public void setModelService(ModelService modelService)
-
-