com.liferay.portlet
Class BasePreferencesImpl
java.lang.Object
com.liferay.portlet.BasePreferencesImpl
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PortalPreferencesImpl, PortletPreferencesImpl
public abstract class BasePreferencesImpl
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasePreferencesImpl
public BasePreferencesImpl(long ownerId,
int ownerType,
String xml,
Map<String,Preference> preferences)
getMap
public Map<String,String[]> getMap()
getNames
public Enumeration<String> getNames()
getOwnerId
public long getOwnerId()
getOwnerType
public int getOwnerType()
getValue
public String getValue(String key,
String def)
getValues
public String[] getValues(String key,
String[] def)
isReadOnly
public boolean isReadOnly(String key)
reset
public void reset()
reset
public abstract void reset(String key)
throws ReadOnlyException
- Throws:
ReadOnlyException
setValue
public void setValue(String key,
String value)
throws ReadOnlyException
- Throws:
ReadOnlyException
setValues
public void setValues(String key,
String[] values)
throws ReadOnlyException
- Throws:
ReadOnlyException
size
public int size()
store
public abstract void store()
throws IOException,
ValidatorException
- Throws:
IOException
ValidatorException
getActualValue
protected String getActualValue(String value)
getActualValues
protected String[] getActualValues(String[] values)
getModifiedPreferences
protected Map<String,Preference> getModifiedPreferences()
getOriginalPreferences
protected Map<String,Preference> getOriginalPreferences()
getOriginalXML
protected String getOriginalXML()
getPreferences
protected Map<String,Preference> getPreferences()
getXMLSafeValue
protected String getXMLSafeValue(String value)
getXMLSafeValues
protected String[] getXMLSafeValues(String[] values)
isNull
protected boolean isNull(String[] values)
setOriginalPreferences
protected void setOriginalPreferences(Map<String,Preference> originalPreferences)
setOriginalXML
protected void setOriginalXML(String originalXML)
toXML
protected String toXML()