Package lumis.util

Class PortletParametersMap

    • Constructor Detail

      • PortletParametersMap

        public PortletParametersMap()
      • PortletParametersMap

        public PortletParametersMap​(int initialCapacity)
    • Method Detail

      • setParameter

        public void setParameter​(String key,
                                 String value)
        Sets a String parameter.

        This method replaces all parameters with the given key.

        Parameters:
        key - key of the parameter
        value - value of the parameter
        Throws:
        IllegalArgumentException - if key or value are null.
        Since:
        4.0.7
      • setParameter

        public void setParameter​(String key,
                                 String[] values)
        Sets a String array parameter.

        This method replaces all parameters with the given key.

        Parameters:
        key - key of the parameter
        values - values of the parameter
        Throws:
        IllegalArgumentException - if key or value are null.
        Since:
        4.0.7
      • setParameters

        public void setParameters​(Map<String,​String[]> parameters)
        Sets a parameter map.

        All previously set render parameters are cleared.

        Parameters:
        parameters - Map containing the parameters. The keys in the parameter map must be of type String. The values in the parameter map must be of type String array (String[]).
        Throws:
        IllegalArgumentException - if parameters is null, if any of the key/values in the Map are null, if any of the keys is not a String, or if any of the values is not a String array.
        Since:
        4.0.7