static void |
UserPortalViewHelper.addKeyToCustomLocalizations(UserPortalViewModel model,
ELocalizationsType type) |
Adds a new key to the custom messages or files of the selected portal related entity of the given type.
|
static void |
UserPortalViewHelper.addNewLocaleToPortal(IEntityContext ec,
Locale locale,
UserPortalViewModel model) |
Adds a new locale to the portal.
|
static void |
UserPortalViewHelper.addTagToUserPortal(UserPortalViewModel model,
String newTagName) |
Adds a new tag to the user portal.
|
static void |
UserPortalViewHelper.addUploadedFileToSelectedPortal(org.primefaces.model.file.UploadedFile file,
String fileKey,
UserPortalViewModel model) |
Adjusts the model by adding an uploaded file to the list of localized portal files.
|
static void |
UserPortalViewHelper.addUploadedFileToSelectedProject(org.primefaces.model.file.UploadedFile file,
String fileKey,
UserPortalViewModel model) |
Adjusts the model by adding an uploaded file to the list of files of the currently selected project.
|
static void |
UserPortalViewHelper.applySelectionFromPreviousPortalViewModel(IEntityContext ec,
UserPortalViewModel previousModel,
UserPortalViewModel model) |
Applies the selection from the previous view model to the new view model.
|
static void |
UserPortalViewHelper.cleanupPortalViewModel(UserPortalViewModel model) |
Cleans up an existing portal view model, releasing resource such as temporary files.
|
static void |
UserPortalViewHelper.deleteLocaleFromPortal(RequestEntityContext ec,
Locale locale,
UserPortalViewModel model) |
|
static List<String> |
UserPortalViewHelper.findCustomLocalizationsKeys(UserPortalViewModel model,
ELocalizationsType type) |
Finds all custom keys that can be configured for the given type of portal related entity.
|
static List<String> |
UserPortalViewHelper.findLanguagesToAddMatchingQuery(String query,
Locale locale,
UserPortalViewModel model) |
Finds all languages that match the given query and are not yet added to the user portal.
|
static UserPortalPersistResult |
UserPortalViewHelper.persistUserPortalViewModel(IEntityContext ec,
UserPortal portal,
UserPortalViewModel model) |
Given a view model with data, persists that data in the database.
|
static void |
UserPortalViewHelper.prepareSelectedProjectForEditing(IEntityContext ec,
UserPortalViewModel model) |
Prepares the model so that the given project's portal configuration can be edited.
|
static void |
UserPortalViewHelper.prepareUserPortalViewForUpdatedLocale(IEntityContext ec,
UserPortalViewModel model) |
Prepares the model for the given locale so that the portal configuration for that locale can be edited.
|
static void |
UserPortalViewHelper.removeFileFromSelectedPortal(String fileKey,
UserPortalViewModel model) |
Adjusts the model by removing the file with the given key from the currently selected portal, if present.
|
static void |
UserPortalViewHelper.removeFileFromSelectedProject(String fileKey,
UserPortalViewModel model) |
Adjusts the model by removing the file with the given key from the currently selected project, if present.
|
static void |
UserPortalViewHelper.removeKeyFromCustomLocalizations(UserPortalViewModel model,
ELocalizationsType type,
String key) |
Removes a custom key from all messages or files of the selected portal related entity of the given type.
|
static void |
UserPortalViewHelper.removeTagFromUserPortal(UserPortalViewModel model,
UserPortalProjectTagViewModel tag) |
Removes a tag from the user portal.
|
static void |
UserPortalViewHelper.reorderInputAuthenticators(int fromIndex,
int toIndex,
UserPortalViewModel model) |
Updates the model and moves an input login service at a given position to another position.
|
static void |
UserPortalViewHelper.reorderRedirectAuthenticators(int fromIndex,
int toIndex,
UserPortalViewModel model) |
Updates the model and moves a redirect login service at a given position to another position.
|
static String |
UserPortalViewHelper.resolveTagMessage(UserPortalProjectTagViewModel tag,
UserPortalViewModel model,
String messageKey,
Supplier<String> defaultSupplier) |
Resolves the value of a localized tag message for a given tag.
|