public abstract class BaseMutablePortletParameters<T extends MutablePortletParameters> extends BasePortletParametersImpl<T> implements LiferayMutablePortletParameters
| Constructor and Description |
|---|
BaseMutablePortletParameters(Map<String,String[]> parameterMap,
Function<Map<String,String[]>,T> mutablePortletParametersCreator) |
| Modifier and Type | Method and Description |
|---|---|
MutablePortletParameters |
add(PortletParameters portletParameters) |
void |
clear() |
boolean |
isMutated()
Returns
true if the state of the portlet parameters has
changed. |
boolean |
removeParameter(String name) |
MutablePortletParameters |
set(PortletParameters portletParameters) |
String |
setValue(String name,
String value) |
String |
setValue(String name,
String value,
boolean append)
Sets the parameter value.
|
String[] |
setValues(String name,
String... values) |
String[] |
setValues(String name,
String[] values,
boolean append)
Sets the parameter values.
|
clone, deepCopyMap, getNames, getParameterMap, getValue, getValues, isEmpty, sizeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamespublic BaseMutablePortletParameters(Map<String,String[]> parameterMap,
Function<Map<String,String[]>,T> mutablePortletParametersCreator)
public MutablePortletParameters add(PortletParameters portletParameters)
add in interface MutablePortletParameterspublic void clear()
clear in interface MutablePortletParameterspublic boolean isMutated()
LiferayMutablePortletParameterstrue if the state of the portlet parameters has
changed.isMutated in interface LiferayMutablePortletParameterstrue if the state has changed; false
otherwisepublic boolean removeParameter(String name)
removeParameter in interface MutablePortletParameterspublic MutablePortletParameters set(PortletParameters portletParameters)
set in interface MutablePortletParameterspublic String setValue(String name,
String value)
setValue in interface MutablePortletParameterspublic String setValue(String name,
String value,
boolean append)
LiferayMutablePortletParametersIllegalArgumentException is
thrown if the name is null.setValue in interface LiferayMutablePortletParametersname - the parameter's namevalue - the parameter's value. If null, the parameter
is removed.append - whether the new value is appended to any existing values
for the parameter. If this is false, any existing
values are overwritten with the new value.public String[] setValues(String name,
String... values)
setValues in interface MutablePortletParameterspublic String[] setValues(String name,
String[] values,
boolean append)
LiferayMutablePortletParametersIllegalArgumentException is
thrown if the name is null.setValues in interface LiferayMutablePortletParametersname - the parameter's namevalues - the parameter's values. If null, the
parameter is removed.append - whether the new values are appended to any existing values
for the parameter. If this is false, any existing
values are overwritten with the new values.