MutablePortletParameters provides methods that allow
setting parameters to define a potential future render state.
RenderState provides a description of the render state.
PortletParameters provides a description of the parameter concept.
RenderState, PortletParameters, MutableRenderState
| Modifier and Type | Method and Description |
|---|---|
| public MutablePortletParameters | Returns: MutablePortletParameters object containing the previous values- input portlet parameters params)
Adds the parameters from the input
PortletParameters object
if they are not already present. |
| public void | |
| public Set | Returns: aSet of String
objects, each String containing
the name of a parameter; or an
empty Set if the
MutablePortletParameters object has no parameters.Redeclares javax.
Returns a
Set of String
objects containing the names of the parameters contained
in this object. |
| public boolean | Returns: true if the parameter name was present.the parameter name name)
Removes the given public or private parameter.
|
| public MutablePortletParameters | Returns: MutablePortletParameters object containing the previous values- input portlet parameters params)
Makes the public and private parameters identical to
those of the input PortletParameters object.
|
| public String | |
| public String[] |
| add | back to summary |
|---|---|
| public MutablePortletParameters add(PortletParameters params)
Adds the parameters from the input
PortletParameters object
if they are not already present.
If a parameter from the input object is already present, its value
will be updated with the input value.
The parameters are copied so that after the operation completes, there is no linkage to the input object.
| |
| clear | back to summary |
|---|---|
| public void clear()
Clears all parameters.
| |
| getNames | back to summary |
|---|---|
| public Set Redeclares javax.
Returns a
Set of String
objects containing the names of the parameters contained
in this object.
A parameter cannot be added through use of the set. However, removing a parameter from the set will remove the underlying parameter. Only parameter names targeted to the current portlet are returned. | |
| removeParameter | back to summary |
|---|---|
| public boolean removeParameter(String name)
Removes the given public or private parameter.
All values associated with the name are removed.
| |
| set | back to summary |
|---|---|
| public MutablePortletParameters set(PortletParameters params)
Makes the public and private parameters identical to
those of the input PortletParameters object.
The parameters are copied so that after the operation completes, there is no linkage to the input object.
| |
| setValue | back to summary |
|---|---|
| public String setValue(String name, String value)
Sets a String parameter.
If the parameter already exists, this method replaces all existing values with the new value.
A parameter value of
To remove a parameter, use
| |
| setValues | back to summary |
|---|---|
| public String[] setValues(String name, String... values)
Sets a multivalued String parameter.
If the parameter already exists, this method replaces all existing values with the new value array.
An input value of null or an empty array is valid.
These values will be preserved when reading the parameter through
A parameter value of
To remove a parameter, use
| |