Package de.xima.fc.logic.form_theme
Class FormThemeUsages
- java.lang.Object
-
- de.xima.fc.logic.form_theme.FormThemeUsages
-
- All Implemented Interfaces:
Serializable
public final class FormThemeUsages extends Object implements Serializable
POJO model representing all usages of a form theme within the system and within each client. For example, a form theme might be used as the default system form theme, or as the main theme of a form version.- Since:
- 8.3.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
asDefaultSystemTheme()
Gets whether the form theme is the default system theme.List<IPluginFormTheme>
asParentPluginTheme()
Gets all system plugins that use the form theme as a parent.List<ESystemFormThemeType>
asParentSystemTheme()
Gets all system form theme types that uses the form theme as a parent.Map<Mandant,ClientFormThemeUsages>
clientUsages()
Gets the usages of the form theme within each client.ClientFormThemeUsages
clientUsages(Mandant client)
Gets the usages of the form theme within the given client.static FormThemeUsages
empty()
Gets an empty form theme usages object with any usages.boolean
hasAnyUsages()
Checks if the form theme has any usages, either in the system scope or in any client scope.
-
-
-
Method Detail
-
asDefaultSystemTheme
public boolean asDefaultSystemTheme()
Gets whether the form theme is the default system theme.- Returns:
- Whether the form theme is the default system theme.
-
asParentPluginTheme
public List<IPluginFormTheme> asParentPluginTheme()
Gets all system plugins that use the form theme as a parent.- Returns:
- All system plugins that use the form theme as a parent.
-
asParentSystemTheme
public List<ESystemFormThemeType> asParentSystemTheme()
Gets all system form theme types that uses the form theme as a parent.- Returns:
- All system form theme types that uses the form theme as a parent.
-
clientUsages
public Map<Mandant,ClientFormThemeUsages> clientUsages()
Gets the usages of the form theme within each client.- Returns:
- The usages of the form theme within each client.
-
clientUsages
public ClientFormThemeUsages clientUsages(Mandant client)
Gets the usages of the form theme within the given client.- Parameters:
client
- The client to get the usages for.- Returns:
- The usages of the form theme within the given client.
-
hasAnyUsages
public boolean hasAnyUsages()
Checks if the form theme has any usages, either in the system scope or in any client scope.- Returns:
- True if the form theme has any usages, false otherwise.
-
empty
public static FormThemeUsages empty()
Gets an empty form theme usages object with any usages.- Returns:
- An empty form theme usages object with any usages.
-
-