Class DefaultActionsConfigurationFallbackStrategy
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.DefaultActionsConfigurationFallbackStrategy
-
- All Implemented Interfaces:
CockpitConfigurationFallbackStrategy<Actions>
public class DefaultActionsConfigurationFallbackStrategy extends java.lang.Object implements CockpitConfigurationFallbackStrategy<Actions>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREATE_ACTION_IDstatic java.lang.StringCREATE_ACTION_PROPERTYstatic java.lang.StringDEFAULT_ACTION_GROUP_QUALIFIERstatic java.lang.StringDELETE_ACTION_IDstatic java.lang.StringEXPORT_COLUMNS_AND_DATA_PROPERTYstatic java.lang.StringEXPORT_CSV_ACTION_IDstatic java.lang.StringSELECTED_OBJECTS_PROPERTY
-
Constructor Summary
Constructors Constructor Description DefaultActionsConfigurationFallbackStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Action>getActions()java.util.Set<java.lang.String>getComponentCodes()ActionsloadFallbackConfiguration(ConfigContext context, java.lang.Class<Actions> configurationType)Generates and loads a fallback configuration for the given context and configuration type.protected java.lang.StringresolveRequiredComponentCode(ConfigContext context)voidsetActions(java.util.List<Action> actions)voidsetComponentCodes(java.util.Set<java.lang.String> componentCodes)
-
-
-
Field Detail
-
DEFAULT_ACTION_GROUP_QUALIFIER
public static final java.lang.String DEFAULT_ACTION_GROUP_QUALIFIER
- See Also:
- Constant Field Values
-
CREATE_ACTION_ID
public static final java.lang.String CREATE_ACTION_ID
- See Also:
- Constant Field Values
-
CREATE_ACTION_PROPERTY
public static final java.lang.String CREATE_ACTION_PROPERTY
- See Also:
- Constant Field Values
-
SELECTED_OBJECTS_PROPERTY
public static final java.lang.String SELECTED_OBJECTS_PROPERTY
- See Also:
- Constant Field Values
-
DELETE_ACTION_ID
public static final java.lang.String DELETE_ACTION_ID
- See Also:
- Constant Field Values
-
EXPORT_CSV_ACTION_ID
public static final java.lang.String EXPORT_CSV_ACTION_ID
- See Also:
- Constant Field Values
-
EXPORT_COLUMNS_AND_DATA_PROPERTY
public static final java.lang.String EXPORT_COLUMNS_AND_DATA_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadFallbackConfiguration
public Actions loadFallbackConfiguration(ConfigContext context, java.lang.Class<Actions> configurationType)
Description copied from interface:CockpitConfigurationFallbackStrategyGenerates and loads a fallback configuration for the given context and configuration type.- Specified by:
loadFallbackConfigurationin interfaceCockpitConfigurationFallbackStrategy<Actions>- Parameters:
context- configuration contextconfigurationType- type of configuration to be loaded- Returns:
- created fallback configuration or null if the strategy can not create a fallback configuration for the given context and type
-
resolveRequiredComponentCode
protected java.lang.String resolveRequiredComponentCode(ConfigContext context)
-
getComponentCodes
public java.util.Set<java.lang.String> getComponentCodes()
- Returns:
- the componentCodes
-
setComponentCodes
public void setComponentCodes(java.util.Set<java.lang.String> componentCodes)
- Parameters:
componentCodes- the componentCodes to set
-
getActions
public java.util.List<Action> getActions()
- Returns:
- the actions
-
setActions
public void setActions(java.util.List<Action> actions)
- Parameters:
actions- the actions to set
-
-