Package de.xima.fc.gui.model.portal
Class UserPortalProjectConfigViewModel
- java.lang.Object
 - 
- de.xima.fc.gui.model.portal.UserPortalProjectConfigViewModel
 
 
- 
- All Implemented Interfaces:
 ILocalizationsViewModelProviding<UserPortalLocalizationsViewModelWithFiles>,ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles,Serializable
public final class UserPortalProjectConfigViewModel extends Object implements ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles, Serializable
View model for the configuration UI for the user portal specific settings of aform.- Since:
 - 8.2.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface de.xima.fc.gui.model.portal.ILocalizationsViewModelProviding
ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles 
 - 
 
- 
Constructor Summary
Constructors Constructor Description UserPortalProjectConfigViewModel(String projectName)Creates a new view model for aformwith the given name. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Locale,UserPortalLocalizationsViewModelWithFiles>getLocalizations()Gets a map with the localizations for each locale.UserPortalLocalizationsViewModelWithFilesgetLocalizations(Locale locale)Gets the localizations for the given locale.Map<String,UserPortalFileViewModel>getLocalizedFiles(Locale locale)Gets a map with the localized messages for the given locale.StringgetLocalizedMessage(Locale locale, String i18nKey)Gets the localized message for the given with the given locale.Map<String,String>getLocalizedMessages(Locale locale)Gets a map with the localized messages for the given locale.StringgetProjectName()Gets the name of the project being edited.List<Serializable>getTags()Gets the selected tags for the project.voidsetLocalizations(Map<Locale,UserPortalLocalizationsViewModelWithFiles> localizations)Sets a map with the localizations for each locale.voidsetTags(List<Serializable> tags)Sets the selected tags for the project. 
 - 
 
- 
- 
Method Detail
- 
getLocalizations
public Map<Locale,UserPortalLocalizationsViewModelWithFiles> getLocalizations()
Gets a map with the localizations for each locale.- Specified by:
 getLocalizationsin interfaceILocalizationsViewModelProviding<UserPortalLocalizationsViewModelWithFiles>- Returns:
 - Map with localizations.
 
 
- 
setLocalizations
public void setLocalizations(Map<Locale,UserPortalLocalizationsViewModelWithFiles> localizations)
Sets a map with the localizations for each locale.- Parameters:
 localizations- Map with localizations.
 
- 
getProjectName
public String getProjectName()
Gets the name of the project being edited.- Returns:
 - Name of the project.
 
 
- 
getTags
public List<Serializable> getTags()
Gets the selected tags for the project. Tags are managed globally for the portal. For each project, the user can select a tag from the global list of tags.- Returns:
 - List of selected tags.
 
 
- 
setTags
public void setTags(List<Serializable> tags)
Sets the selected tags for the project. Tags are managed globally for the portal. For each project, the user can select a tag from the global list of tags.- Parameters:
 tags- List of selected tags.
 
- 
getLocalizations
public UserPortalLocalizationsViewModelWithFiles getLocalizations(Locale locale)
Gets the localizations for the given locale.- Specified by:
 getLocalizationsin interfaceILocalizationsViewModelProviding<UserPortalLocalizationsViewModelWithFiles>- Returns:
 - DefaultLocalizations for the locale.
 
 
- 
getLocalizedFiles
public Map<String,UserPortalFileViewModel> getLocalizedFiles(Locale locale)
Gets a map with the localized messages for the given locale.- Specified by:
 getLocalizedFilesin interfaceILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles- Returns:
 - Map with localized messages.
 
 
- 
getLocalizedMessage
public String getLocalizedMessage(Locale locale, String i18nKey)
Gets the localized message for the given with the given locale.- Specified by:
 getLocalizedMessagein interfaceILocalizationsViewModelProviding<UserPortalLocalizationsViewModelWithFiles>- Returns:
 - The project config's localized message for the given key.
 
 
- 
getLocalizedMessages
public Map<String,String> getLocalizedMessages(Locale locale)
Gets a map with the localized messages for the given locale.- Specified by:
 getLocalizedMessagesin interfaceILocalizationsViewModelProviding<UserPortalLocalizationsViewModelWithFiles>- Returns:
 - Map with localized messages.
 
 
 - 
 
 -