Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-1008

To ComponentConfiguration, add methods to access the parameters from the hst component configuration without having their property placeholders replaced in their values

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.04.03
    • 2.04.04
    • None
    • None

    Description

      To ComponentConfiguration

      we add

      /**

      • Also see {@link #getParameters(ResolvedSiteMapItem)}. Normally, you use {@link #getParameters(ResolvedSiteMapItem)}

        , unless you want to access

      • parameter values without having their property placeholders (like ${1}) substituded by the current request context. In other words, the parameter values
      • exactly the way they are in the {@link HstComponentConfiguration}
        * @return An unmodifiableMap of all parameters the way they are configured in the hst component configuration without having any property placeholder filled in by the current context
        */
        Map<String, String> getRawParameters();

        /**
        * Also see {@link #getLocalParameters(ResolvedSiteMapItem)}. Normally, you use {@link #getLocalParameters(ResolvedSiteMapItem)}, unless you want to access
        * parameter values without having their property placeholders (like ${1}) substituded by the current request context. In other words, the parameter values
        * exactly the way they are in the {@link HstComponentConfiguration}

        . Note that this method does not return inherited parameters, but only its local (directly)

      • configured ones
      • @return An unmodifiableMap of all parameters the way they are configured in the hst component configuration without having any property placeholder filled in by the current context and without parameter inheritance
        */
        Map<String, String> getRawLocalParameters();
        ;

      Now, in your hst component java class, you can use:

      this.getComponentConfiguration().getRawLocalParameters()

      to access property values without having the current context trying to replace property values

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: