Class MockPortletPreferences
Object
com.liferay.portal.kernel.test.portlet.MockPortletPreferences
- All Implemented Interfaces:
jakarta.portlet.PortletPreferences
- Author:
- Dante Wang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMap()getNames()String[]booleanisReadOnly(String key) voidvoidsetPreferencesValidator(jakarta.portlet.PreferencesValidator preferencesValidator) voidsetReadOnly(String key, boolean readOnly) voidvoidvoidstore()
-
Constructor Details
-
MockPortletPreferences
public MockPortletPreferences()
-
-
Method Details
-
getMap
- Specified by:
getMapin interfacejakarta.portlet.PortletPreferences
-
getNames
- Specified by:
getNamesin interfacejakarta.portlet.PortletPreferences
-
getValue
- Specified by:
getValuein interfacejakarta.portlet.PortletPreferences
-
getValues
- Specified by:
getValuesin interfacejakarta.portlet.PortletPreferences
-
isReadOnly
- Specified by:
isReadOnlyin interfacejakarta.portlet.PortletPreferences
-
reset
- Specified by:
resetin interfacejakarta.portlet.PortletPreferences- Throws:
jakarta.portlet.ReadOnlyException
-
setPreferencesValidator
public void setPreferencesValidator(jakarta.portlet.PreferencesValidator preferencesValidator) -
setReadOnly
-
setValue
- Specified by:
setValuein interfacejakarta.portlet.PortletPreferences- Throws:
jakarta.portlet.ReadOnlyException
-
setValues
- Specified by:
setValuesin interfacejakarta.portlet.PortletPreferences- Throws:
jakarta.portlet.ReadOnlyException
-
store
- Specified by:
storein interfacejakarta.portlet.PortletPreferences- Throws:
IOExceptionjakarta.portlet.ValidatorException
-