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) voidclear()booleanReturnstrueif the state of the portlet parameters has changed.booleanremoveParameter(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, sizeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.portlet.MutablePortletParameters
getNames
-
Constructor Details
-
BaseMutablePortletParameters
-
-
Method Details
-
add
- Specified by:
addin interfaceMutablePortletParameters
-
clear
public void clear()- Specified by:
clearin interfaceMutablePortletParameters
-
isMutated
public boolean isMutated()Description copied from interface:LiferayMutablePortletParametersReturnstrueif the state of the portlet parameters has changed.- Specified by:
isMutatedin interfaceLiferayMutablePortletParameters- Returns:
trueif the state has changed;falseotherwise
-
removeParameter
- Specified by:
removeParameterin interfaceMutablePortletParameters
-
set
- Specified by:
setin interfaceMutablePortletParameters
-
setValue
- Specified by:
setValuein interfaceMutablePortletParameters
-
setValue
Description copied from interface:LiferayMutablePortletParametersSets the parameter value. AnIllegalArgumentExceptionis thrown if the name isnull.- Specified by:
setValuein 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:
setValuesin interfaceMutablePortletParameters
-
setValues
Description copied from interface:LiferayMutablePortletParametersSets the parameter values. AnIllegalArgumentExceptionis thrown if the name isnull.- Specified by:
setValuesin 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
-