Class PlaceholderAPI


  • public class PlaceholderAPI
    extends ASubAPI
    API helper class.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • PlaceholderAPI

        public PlaceholderAPI()
    • Method Detail

      • replaceSessionValues

        @Deprecated
        public String replaceSessionValues​(UserContext uc,
                                           String context,
                                           String sessionId,
                                           String templateText,
                                           Vorgang v)
        Deprecated.
        Use PlaceholderReplacer directly instead.
        Place system attributes at the location where the corresponding placeholders can be found.
        Parameters:
        uc - UserContext the user context in which the action is to be performed.
        context - String the current context.
        sessionId - String for determining session attributes.
        templateText - String String in the placeholder to be replaced occur.
        v - - Vorgang via which the system attributes are determined.
        Returns:
        parsed string.
        Since:
        2.4.3
      • replaceI18nVariable

        public String replaceI18nVariable​(UserContext uc,
                                          Mandant client,
                                          String i18nKey,
                                          String languageTag,
                                          Object... params)
        Parameters:
        uc - User context for the replacment proces.
        client - Client context for retrieving placeholder plugins.
        i18nKey - Key to resolve.
        languageTag - Language to use.
        params - Additional parameters for arguments within the i18n message.
        Returns:
        The message for the given i18n key.
      • replaceI18nValiable

        @Deprecated
        public String replaceI18nValiable​(UserContext uc,
                                          Mandant client,
                                          String i18nKey,
                                          String languageTag,
                                          Object... params)
        Deprecated.
        Parameters:
        uc - User context for the replacment proces.
        client - Client context for retrieving placeholder plugins.
        i18nKey - Key to resolve.
        languageTag - Language to use.
        params - Additional parameters for arguments within the i18n message.
        Returns:
        The message for the given i18n key.