Package com.liferay.portlet.internal
Class BaseMutablePortletParameters<T extends MutablePortletParameters>
Object
com.liferay.portlet.internal.BasePortletParametersImpl<T>
com.liferay.portlet.internal.BaseMutablePortletParameters<T>
- All Implemented Interfaces:
LiferayMutablePortletParameters
,Mutable
,MutablePortletParameters
,PortletParameters
- Direct Known Subclasses:
MutableActionParametersImpl
,MutableRenderParametersImpl
,MutableResourceParametersImpl
public abstract class BaseMutablePortletParameters<T extends MutablePortletParameters>
extends BasePortletParametersImpl<T>
implements LiferayMutablePortletParameters
- Author:
- Neil Griffin
-
Field Summary
Fields inherited from interface com.liferay.portlet.internal.LiferayMutablePortletParameters
NULL_PARAM_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(PortletParameters portletParameters) void
clear()
boolean
Returnstrue
if the state of the portlet parameters has changed.boolean
removeParameter
(String name) set
(PortletParameters portletParameters) Sets the parameter value.String[]
String[]
Sets the parameter values.Methods inherited from class com.liferay.portlet.internal.BasePortletParametersImpl
clone, deepCopyMap, getNames, getParameterMap, getValue, getValues, isEmpty, size
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.portlet.MutablePortletParameters
getNames
-
Constructor Details
-
BaseMutablePortletParameters
-
-
Method Details
-
add
- Specified by:
add
in interfaceMutablePortletParameters
-
clear
public void clear()- Specified by:
clear
in interfaceMutablePortletParameters
-
isMutated
public boolean isMutated()Description copied from interface:LiferayMutablePortletParameters
Returnstrue
if the state of the portlet parameters has changed.- Specified by:
isMutated
in interfaceLiferayMutablePortletParameters
- Returns:
true
if the state has changed;false
otherwise
-
removeParameter
- Specified by:
removeParameter
in interfaceMutablePortletParameters
-
set
- Specified by:
set
in interfaceMutablePortletParameters
-
setValue
- Specified by:
setValue
in interfaceMutablePortletParameters
-
setValue
Description copied from interface:LiferayMutablePortletParameters
Sets the parameter value. AnIllegalArgumentException
is thrown if the name isnull
.- Specified by:
setValue
in interfaceLiferayMutablePortletParameters
- Parameters:
name
- the parameter's namevalue
- the parameter's value. Ifnull
, the parameter is removed.append
- whether the new value is appended to any existing values for the parameter. If this isfalse
, any existing values are overwritten with the new value.- Returns:
- the parameter value prior to setting
-
setValues
- Specified by:
setValues
in interfaceMutablePortletParameters
-
setValues
Description copied from interface:LiferayMutablePortletParameters
Sets the parameter values. AnIllegalArgumentException
is thrown if the name isnull
.- Specified by:
setValues
in interfaceLiferayMutablePortletParameters
- Parameters:
name
- the parameter's namevalues
- the parameter's values. Ifnull
, the parameter is removed.append
- whether the new values are appended to any existing values for the parameter. If this isfalse
, any existing values are overwritten with the new values.- Returns:
- the parameter values prior to setting
-