Class FormThemeViewManager
java.lang.Object
de.xima.fc.gui.model.form_theme.FormThemeViewManager
- All Implemented Interfaces:
Serializable
Keeps track of all existing
client form themes for a specific client.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewTheme(Locale locale) Creates a new form theme for the current client with the given locale.deleteThemesById(Iterable<Long> themes) Deletes the form themes with the given IDs.Finds the client form theme by its ID.themeByUuid(Long clientId, UUID clientFormThemeUuid) Finds the client form theme by its UUID and the ID of the client.themeByUuid(UUID themeUuid) Finds the client form theme by its UUID.themes()Gets a list of all available form themes.updateThemeDetail(UUID themeUuid, Consumer<FormThemeView> updater) Updates a detail of the theme with the given UUID.
-
Method Details
-
createNewTheme
Creates a new form theme for the current client with the given locale.- Parameters:
locale- The locale for generating a new name for the form theme.- Returns:
- The newly created form theme.
-
deleteThemesById
Deletes the form themes with the given IDs.- Parameters:
themes- The IDs of the form themes to delete.- Returns:
- The form themes that were deleted.
-
themeById
Finds the client form theme by its ID.- Parameters:
themeId- The ID of the client form theme.- Returns:
- The client form theme with the given ID, or null if no such theme exists.
-
themeByUuid
Finds the client form theme by its UUID.- Parameters:
themeUuid- The UUID of the client form theme.- Returns:
- The client form theme with the given UUID, or null if no such theme exists.
-
themeByUuid
Finds the client form theme by its UUID and the ID of the client.- Parameters:
clientId- The ID of the client that contains the form themes.clientFormThemeUuid- The UUID of the client form theme.- Returns:
- The client form theme with the given UUID belonging to the client with the given ID, or null if no such theme exists.
-
themes
Gets a list of all available form themes.- Returns:
- A list of all available form themes.
-
updateThemeDetail
@CanIgnoreReturnValue public FormThemeView updateThemeDetail(UUID themeUuid, Consumer<FormThemeView> updater) Updates a detail of the theme with the given UUID.- Parameters:
themeUuid- UUID of the theme to update.updater- Update function that mutates the theme.- Returns:
- The updated theme.
- Throws:
de.xima.cmn.dao.exceptions.UpdateException- If the theme with the given UUID does not exist, or if the update fails.
-