Class EndUserStateDTO
java.lang.Object
de.xima.fc.dao.form_record.dto.EndUserStateDTO
- All Implemented Interfaces:
Serializable
DTO for form record states.
This DTO is used to provide information about the state of a form record to the end user. It contains the display name, description, icon style class and colors of the state.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EndUserStateDTOgetDefault(Locale locale, Locale fallbackLocale) Gets the default end user state DTO.static EndUserStateDTOGets the end user state DTO for a saved state.getType()
-
Constructor Details
-
EndUserStateDTO
Constructor.- Parameters:
state- The state.locale- The locale.
-
-
Method Details
-
getDefault
Gets the default end user state DTO. This should be used when no state is available. The default state is "In Progress".- Parameters:
locale- The locale to create the default state for.fallbackLocale- The fallback locale to use if the locale is not available.- Returns:
- The default end user state DTO.
-
getSaved
Gets the end user state DTO for a saved state. This should be used when a form record is saved.- Parameters:
locale- The locale to create the saved state for.fallbackLocale- The fallback locale to use if the locale is not available.- Returns:
- The end user state DTO for a saved state.
-
getDescription
-
getDisplayName
-
getHexColorBackground
-
getHexColorText
-
getIconStyleClass
-
getType
-