Package com.liferay.portlet.internal
Class BaseMutablePortletParameters<T extends jakarta.portlet.MutablePortletParameters>
Object
com.liferay.portlet.internal.BasePortletParametersImpl<T>
com.liferay.portlet.internal.BaseMutablePortletParameters<T>
- All Implemented Interfaces:
LiferayMutablePortletParameters,jakarta.portlet.Mutable,jakarta.portlet.MutablePortletParameters,jakarta.portlet.PortletParameters
- Direct Known Subclasses:
MutableActionParametersImpl,MutableRenderParametersImpl,MutableResourceParametersImpl
public abstract class BaseMutablePortletParameters<T extends jakarta.portlet.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 TypeMethodDescriptionjakarta.portlet.MutablePortletParametersadd(jakarta.portlet.PortletParameters portletParameters) voidclear()booleanReturnstrueif the state of the portlet parameters has changed.booleanremoveParameter(String name) jakarta.portlet.MutablePortletParametersset(jakarta.portlet.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 jakarta.portlet.MutablePortletParameters
getNamesMethods inherited from interface jakarta.portlet.PortletParameters
clone, getValue, getValues, isEmpty, size
-
Constructor Details
-
BaseMutablePortletParameters
-
-
Method Details
-
add
public jakarta.portlet.MutablePortletParameters add(jakarta.portlet.PortletParameters portletParameters) - Specified by:
addin interfacejakarta.portlet.MutablePortletParameters
-
clear
public void clear()- Specified by:
clearin interfacejakarta.portlet.MutablePortletParameters
-
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 interfacejakarta.portlet.MutablePortletParameters
-
set
public jakarta.portlet.MutablePortletParameters set(jakarta.portlet.PortletParameters portletParameters) - Specified by:
setin interfacejakarta.portlet.MutablePortletParameters
-
setValue
- Specified by:
setValuein interfacejakarta.portlet.MutablePortletParameters
-
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 interfacejakarta.portlet.MutablePortletParameters
-
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
-