Interface ConfigurationPersistingStrategy<CONFIG extends UIComponentConfiguration>
-
- All Known Implementing Classes:
AdvancedSearchConfigurationPersistingStrategy,DashboardPersistingStrategy,DefaultConfigurationPersistingStrategy,EditorConfigurationPersistingStrategy,ListViewConfigurationPersistingStrategy
public interface ConfigurationPersistingStrategy<CONFIG extends UIComponentConfiguration>Interface for a strategy how to persist component configurations
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_PERMISSION_CODE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<CONFIG>getComponentClass()Provides the class this strategy is valid for.voidpersistComponentConfiguration(CONFIG configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)Stores the configuration according to the strategy implementation
-
-
-
Field Detail
-
COMPONENT_PERMISSION_CODE
static final java.lang.String COMPONENT_PERMISSION_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
persistComponentConfiguration
void persistComponentConfiguration(CONFIG configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)
Stores the configuration according to the strategy implementation- Parameters:
configuration- the configuration to storeuser- the user the configuration should be valid forobjectTemplate- the object template the configuration should be valid forcode- the component code of the configuration
-
getComponentClass
java.lang.Class<CONFIG> getComponentClass()
Provides the class this strategy is valid for. Used for mapping strategies to classes via spring.- Returns:
- the class of the configuration which this strategy can handle
-
-