Package de.hybris.platform.cockpit
Interface CockpitConfigurationService
-
- All Known Implementing Classes:
DefaultCockpitConfigurationService
public interface CockpitConfigurationServiceService that allows to fetch existing cockpit configurations from the system. To create new configurations useModelService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getComponentConfigurationsForPrincipal
java.util.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
java.util.List<CockpitUIComponentConfigurationModel> getDedicatedComponentConfigurationsForPrincipal(PrincipalModel principal)
Gets dedicated component configurations for principal. Supergroups are not included.
-
removeComponentConfigurations
void removeComponentConfigurations(java.util.List<CockpitUIComponentConfigurationModel> configurations)
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, java.lang.String objectTemplateCode, java.lang.String code)
Gets the component configuration.- Parameters:
principal- the principalobjectTemplateCode- the object template codecode- the code- Returns:
- the component configuration
-
getRoleNamesForPrincipal
java.util.List<java.lang.String> getRoleNamesForPrincipal(PrincipalModel principal)
Gets the role names for principal.- Parameters:
principal- the principal- Returns:
- the role names for principal
-
-