Class EndUserProjectConfigViewModel
java.lang.Object
de.xima.fc.gui.model.project.EndUserProjectConfigViewModel
- All Implemented Interfaces:
ILocalizationsViewModelProviding<LocalizationsViewModelWithFiles>, ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles, Serializable
public final class EndUserProjectConfigViewModel
extends Object
implements ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles, Serializable
View model for the configuration UI for the end user settings of a
form.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ILocalizationsViewModelProviding
ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles -
Constructor Summary
ConstructorsConstructorDescriptionEndUserProjectConfigViewModel(Projekt project, boolean active, UserPortalViewModel portalModel, Locale locale, IResourceBundle resourceBundle) -
Method Summary
Modifier and TypeMethodDescriptionvoiddetermineWarnings(Projekt project, UserPortalViewModel model, Locale locale, IResourceBundle resourceBundle) Gets the default description of the project.Gets the default display name of the project.Gets the default short description of the project.getDisplayName(Locale locale) getKey()Gets a map with the localizations for each locale.getLocalizations(Locale locale) Gets the localizations for the given locale.getLocalizedFiles(Locale locale) Gets a map with the localized messages for the given locale.getLocalizedMessage(Locale locale, String i18nKey) Gets the localized message for the given with the given locale.getLocalizedMessages(Locale locale) Gets a map with the localized messages for the given locale.Gets the name of the project being edited.getTags()Gets the selected tags for the project.booleanbooleanisActive()Gets whether the project is active.voidsetActive(boolean active) Sets whether the project is active.voidsetTags(List<ProjectPortalTagViewModel> tags) Sets the selected tags for the project.
-
Constructor Details
-
EndUserProjectConfigViewModel
public EndUserProjectConfigViewModel(Projekt project, boolean active, UserPortalViewModel portalModel, Locale locale, IResourceBundle resourceBundle)
-
-
Method Details
-
getKey
-
getLocalizations
Gets a map with the localizations for each locale.- Specified by:
getLocalizationsin interfaceILocalizationsViewModelProviding<LocalizationsViewModelWithFiles>- Returns:
- Map with localizations.
-
getLocalizations
Gets the localizations for the given locale.- Specified by:
getLocalizationsin interfaceILocalizationsViewModelProviding<LocalizationsViewModelWithFiles>- Returns:
- DefaultLocalizations for the locale.
-
getLocalizedMessage
Gets the localized message for the given with the given locale.- Specified by:
getLocalizedMessagein interfaceILocalizationsViewModelProviding<LocalizationsViewModelWithFiles>- Returns:
- The project config's localized message for the given key.
-
getLocalizedMessages
Gets a map with the localized messages for the given locale.- Specified by:
getLocalizedMessagesin interfaceILocalizationsViewModelProviding<LocalizationsViewModelWithFiles>- Returns:
- Map with localized messages.
-
getProjectName
Gets the name of the project being edited.- Returns:
- Name of the project.
-
getDefaultDisplayName
Gets the default display name of the project.- Returns:
- Default display name of the project.
-
getDefaultShortDescription
Gets the default short description of the project.- Returns:
- Default short description of the project.
-
getDefaultDescription
Gets the default description of the project.- Returns:
- Default description of the project.
-
getDisplayName
-
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
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.
-
isActive
public boolean isActive()Gets whether the project is active.- Returns:
- Whether the project is active.
-
setActive
public void setActive(boolean active) Sets whether the project is active.- Parameters:
active- Whether the project is active.
-
getWarnings
-
hasWarnings
public boolean hasWarnings() -
getLocalizedFiles
Gets a map with the localized messages for the given locale.- Specified by:
getLocalizedFilesin interfaceILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles- Returns:
- Map with localized messages.
-
determineWarnings
public void determineWarnings(Projekt project, UserPortalViewModel model, Locale locale, IResourceBundle resourceBundle)
-