Package de.hybris.platform.cockpit
Interface CockpitConfigurationService
- All Known Implementing Classes:
DefaultCockpitConfigurationService
public interface CockpitConfigurationService
Service that allows to fetch existing cockpit configurations from the system. To create new configurations use
ModelService.-
Method Summary
Modifier and TypeMethodDescriptiongetComponentConfiguration(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.
-
Method Details
-
getComponentConfigurationsForPrincipal
List<CockpitUIComponentConfigurationModel> getComponentConfigurationsForPrincipal(PrincipalModel principal) Gets the component configurations for principal. This also includes configurations for supergroups.- Parameters:
principal- the principal- Returns:
- the component configurations for principal
-
getDedicatedComponentConfigurationsForPrincipal
List<CockpitUIComponentConfigurationModel> getDedicatedComponentConfigurationsForPrincipal(PrincipalModel principal) Gets dedicated component configurations for principal. Supergroups are not included. -
removeComponentConfigurations
Removes the given component configurations from persistence. Also deletes the relatedCockpitUIConfigurationMediaModelitems if they are not shared with anotherCockpitUIComponentConfigurationModel.- Parameters:
configurations- the configurations that should be removed.
-
getComponentConfiguration
CockpitUIComponentConfigurationModel getComponentConfiguration(PrincipalModel principal, String objectTemplateCode, String code) Gets the component configuration.- Parameters:
principal- the principalobjectTemplateCode- the object template codecode- the code- Returns:
- the component configuration
-
getRoleNamesForPrincipal
Gets the role names for principal.- Parameters:
principal- the principal- Returns:
- the role names for principal
-