static void |
UserPortalLocalizationsHelper.addCustomLocalizationsKeyForSelected(UserPortalViewModel model,
ELocalizationsType type) |
|
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,
IResourceBundle resourceBundle) |
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.addTenantResourceFile(org.primefaces.model.file.UploadedFile file,
UserPortalViewModel model) |
Adjusts the model by adding an uploaded file to the tenant resource file of the selected 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.addUploadedFileToSelectedUserPortalContent(org.primefaces.model.file.UploadedFile file,
String fileKey,
UserPortalViewModel model) |
Adjusts the model by adding an uploaded file to the list of localized user portal content files.
|
static UserPortalContentEntityPersistenceBatch |
UserPortalContentViewModelToEntityPersister.applySelectedUserPortalContents(IEntityContext ec,
UserPortal portal,
UserPortalViewModel model,
List<UserPortalContentTag> currentTags) |
|
static void |
UserPortalViewHelper.applySelectionFromPreviousPortalViewModel(IEntityContext ec,
UserPortalViewModel previousModel,
UserPortalViewModel model,
Locale locale,
IResourceBundle resourceBundle) |
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.cleanupTenantResourceFiles(UserPortalViewModel model) |
Cleans up all tenant resource files that are currently stored in the model.
|
static void |
UserPortalViewHelper.deleteLocaleFromPortal(RequestEntityContext ec,
Locale deletedLocale,
UserPortalViewModel model,
Locale locale,
IResourceBundle resourceBundle) |
|
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 Map<String,String> |
UserPortalViewHelper.findCustomPortalMessagesForLocale(UserPortalViewModel model,
Locale locale) |
Finds all custom localizations that can be configured for the given type of portal related entity.
|
static List<String> |
UserPortalLocalizationsHelper.findCustomSortedLocalizationKeysForSelected(UserPortalViewModel model,
ELocalizationsType type) |
|
static Map<String,String> |
UserPortalLocalizationsHelper.findCustomSortedPortalMessagesMapForLocale(UserPortalViewModel model,
Locale locale) |
Finds all custom portal messages for the given locale in the user portal view model.
|
static List<String> |
UserPortalLocalizationsHelper.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 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 UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(MandantRessource tenantResource,
UserPortalViewModel portalModel,
UUID userPortalContentUuid,
List<UserPortalContentTagViewModel> tags,
boolean active,
boolean createNewContentEntity,
boolean hasChanges) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(Projekt project,
UserPortalViewModel portalModel,
UUID userPortalContentUuid,
List<UserPortalContentTagViewModel> tags,
boolean active,
boolean createNewContentEntity,
boolean hasChanges) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(Projekt project,
UserPortalViewModel portalModel,
UUID userPortalContentUuid,
List<UserPortalContentTagViewModel> tags,
boolean active,
boolean createNewContentEntity,
boolean hasChanges,
Locale locale,
IResourceBundle resourceBundle) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(Textbaustein tenantTemplate,
UserPortalViewModel portalModel,
UUID userPortalContentUuid,
List<UserPortalContentTagViewModel> tags,
boolean active,
boolean createNewContentEntity,
boolean hasChanges) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(UserPortalFormContent userPortalFormContent,
boolean active,
UserPortalViewModel portalModel,
Locale locale,
IResourceBundle resourceBundle) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(UserPortalResourceContent userPortalResourceContent,
boolean active,
UserPortalViewModel portalModel) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModel(UserPortalTemplateContent userPortalTemplateContent,
boolean active,
UserPortalViewModel portalModel) |
|
static UserPortalContentViewModel |
UserPortalContentViewModelFactory.newUserPortalContentViewModelFromProject(IEntityContext ec,
UUID portalUuid,
UserPortalContentKey configKey,
UserPortalViewModel model,
Locale locale,
IResourceBundle resourceBundle) |
|
static UserPortalPersistResult |
UserPortalViewHelper.persistUserPortalViewModel(IEntityContext ec,
UserPortal portal,
UserPortalViewModel model,
WorkspaceScope workspace) |
Given a view model with data, persists that data in the database.
|
static void |
UserPortalViewHelper.prepareSelectedUserPortalContentForEditing(IEntityContext ec,
UserPortalViewModel model,
Locale locale,
IResourceBundle resourceBundle) |
Prepares the model so that the given project's portal configuration can be edited.
|
static void |
UserPortalViewHelper.prepareUserPortalViewForUpdatedLocale(IEntityContext ec,
UserPortalViewModel model,
Locale locale,
IResourceBundle resourceBundle) |
Prepares the model for the given locale so that the portal configuration for that locale can be edited.
|
static void |
UserPortalLocalizationsHelper.removeCustomKeyFromAlLocalizationsForSelected(UserPortalViewModel model,
ELocalizationsType type,
String key) |
|
static <E extends ILocalizationProviding<?,?> & ILocalizedScopedFilesProviding<?,?,?>> void |
UserPortalLocalizationsHelper.removeDeletedLocalizations(E object,
ILocalizationsViewModelProviding.ILocalizationsViewModelProvidingWithFiles viewModel,
UserPortalViewModel model) |
Removes deleted localizations and files from the given object based on the view model and available locales
|
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.removeFileFromSelectedUserPortalContent(String fileKey,
UserPortalViewModel model) |
Adjusts the model by removing the file with the given key from the currently selected user portal content, 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.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(UserPortalContentTagViewModel tag,
UserPortalViewModel model,
String messageKey,
Supplier<String> defaultSupplier) |
Resolves the value of a localized tag message for a given tag.
|
static void |
UserPortalLocalizationsHelper.setCustomPortalMessages(UserPortalViewModel model) |
Sets the custom portal messages for the user portal view model.
|
static void |
UserPortalLocalizationsHelper.setCustomPortalMessagesForLocale(UserPortalViewModel model,
Locale locale) |
Sets the custom properties for the given locale in the user portal view model.
|