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 CockpitConfigurationDao
getCockpitConfigurationDao()
CockpitUIComponentConfigurationModel
getComponentConfiguration(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.void
removeComponentConfigurations(java.util.List<CockpitUIComponentConfigurationModel> configurations)
Removes the given component configurations from persistence.void
setCockpitConfigurationDao(CockpitConfigurationDao cockpitConfigurationDao)
void
setModelService(ModelService modelService)
-
-
-
Method Detail
-
getComponentConfigurationsForPrincipal
public java.util.List<CockpitUIComponentConfigurationModel> getComponentConfigurationsForPrincipal(PrincipalModel principal)
Description copied from interface:CockpitConfigurationService
Gets the component configurations for principal. This also includes configurations for supergroups.- Specified by:
getComponentConfigurationsForPrincipal
in 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:CockpitConfigurationService
Gets the component configuration.- Specified by:
getComponentConfiguration
in 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:CockpitConfigurationService
Gets dedicated component configurations for principal. Supergroups are not included.- Specified by:
getDedicatedComponentConfigurationsForPrincipal
in interfaceCockpitConfigurationService
-
removeComponentConfigurations
public void removeComponentConfigurations(java.util.List<CockpitUIComponentConfigurationModel> configurations)
Description copied from interface:CockpitConfigurationService
Removes the given component configurations from persistence. Also deletes the relatedCockpitUIConfigurationMediaModel
items if they are not shared with anotherCockpitUIComponentConfigurationModel
.- Specified by:
removeComponentConfigurations
in interfaceCockpitConfigurationService
- Parameters:
configurations
- the configurations that should be removed.
-
getRoleNamesForPrincipal
public java.util.List<java.lang.String> getRoleNamesForPrincipal(PrincipalModel principal)
Description copied from interface:CockpitConfigurationService
Gets the role names for principal.- Specified by:
getRoleNamesForPrincipal
in 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)
-
-