Class UserPortalStateLocalizationViewModel
- java.lang.Object
-
- de.xima.fc.common.bean_models.SourceableLocalizationViewModel<E>
-
- de.xima.fc.common.bean_models.PojoLocalizationViewModel<UserPortalStateLocalizationViewModelEntry>
-
- de.xima.fc.common.bean_models.workflow.state.UserPortalStateLocalizationViewModel
-
- All Implemented Interfaces:
ILocalizationViewModel<UserPortalStateLocalizationViewModelEntry>
,Serializable
public class UserPortalStateLocalizationViewModel extends PojoLocalizationViewModel<UserPortalStateLocalizationViewModelEntry>
View model for editing localized messages of auser portal state
.- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalStateLocalizationViewModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserPortalStateLocalizationViewModel
fromPortalState(UserPortalState portalState, Locale viewLocale)
Creates a new view model for the given portal state.protected UserPortalStateLocalizationViewModelEntry
newEntry()
List<UserPortalStateLocalization>
toLocalizationsList(UserPortalState state)
-
Methods inherited from class de.xima.fc.common.bean_models.PojoLocalizationViewModel
getLocalizations, setLocalizations
-
Methods inherited from class de.xima.fc.common.bean_models.SourceableLocalizationViewModel
addNewLocale, getActiveTabIndex, getLocalizationsByLocale, getNewLanguageTag, getSelectedLocale, getTabTitle, getViewLocale, removeLocale, setActiveTabIndex, setNewLanguageTag, setSelectedLocale, setViewLocale
-
-
-
-
Method Detail
-
toLocalizationsList
public List<UserPortalStateLocalization> toLocalizationsList(UserPortalState state)
-
newEntry
protected UserPortalStateLocalizationViewModelEntry newEntry()
- Specified by:
newEntry
in classSourceableLocalizationViewModel<UserPortalStateLocalizationViewModelEntry>
-
fromPortalState
public static UserPortalStateLocalizationViewModel fromPortalState(UserPortalState portalState, Locale viewLocale)
Creates a new view model for the given portal state.- Parameters:
portalState
- The portal state to create the view model for.viewLocale
- Locale to use e.g. for sorting locales by their localized display name.- Returns:
- The new view model.
-
-