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 Object
implements CockpitConfigurationService
Default implementation for
CockpitConfigurationService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CockpitConfigurationDaogetComponentConfiguration(PrincipalModel principal, String objectTemplateCode, String code) Gets the component configuration.Gets the component configurations for principal.Gets dedicated component configurations for principal.getRoleNamesForPrincipal(PrincipalModel principal) Gets the role names for principal.voidremoveComponentConfigurations(List<CockpitUIComponentConfigurationModel> configurations) Removes the given component configurations from persistence.voidsetCockpitConfigurationDao(CockpitConfigurationDao cockpitConfigurationDao) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultCockpitConfigurationService
public DefaultCockpitConfigurationService()
-
-
Method Details
-
getComponentConfigurationsForPrincipal
public 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, String objectTemplateCode, 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 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(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
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
-
setCockpitConfigurationDao
-
setModelService
-