public class PortletPreferencesImpl
extends Object
implements Cloneable, javax.portlet.PortletPreferences, Serializable
| Constructor and Description |
|---|
PortletPreferencesImpl() |
PortletPreferencesImpl(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
Map<String,Preference> preferences) |
PortletPreferencesImpl(String xml,
Map<String,Preference> preferences) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object object) |
protected long |
getCompanyId() |
Map<String,String[]> |
getMap() |
protected Map<String,Preference> |
getModifiedPreferences() |
Enumeration<String> |
getNames() |
protected Map<String,Preference> |
getOriginalPreferences() |
protected String |
getOriginalXML() |
long |
getOwnerId() |
int |
getOwnerType() |
long |
getPlid() |
protected String |
getPortletId() |
Map<String,Preference> |
getPreferences() |
String |
getValue(String key,
String def) |
String[] |
getValues(String key,
String[] def) |
int |
hashCode() |
boolean |
isReadOnly(String key) |
void |
reset(String key) |
void |
setPlid(long plid) |
void |
setValue(String key,
String value) |
void |
setValues(String key,
String... values) |
int |
size() |
void |
store() |
protected String |
toXML() |
public PortletPreferencesImpl()
public PortletPreferencesImpl(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
Map<String,Preference> preferences)
public PortletPreferencesImpl(String xml,
Map<String,Preference> preferences)
public Object clone()
clone in class Objectpublic boolean equals(Object object)
equals in class Objectpublic Map<String,String[]> getMap()
getMap in interface javax.portlet.PortletPreferencespublic Enumeration<String> getNames()
getNames in interface javax.portlet.PortletPreferencespublic long getOwnerId()
public int getOwnerType()
public long getPlid()
public Map<String,Preference> getPreferences()
public String getValue(String key,
String def)
getValue in interface javax.portlet.PortletPreferencespublic String[] getValues(String key,
String[] def)
getValues in interface javax.portlet.PortletPreferencespublic int hashCode()
hashCode in class Objectpublic boolean isReadOnly(String key)
isReadOnly in interface javax.portlet.PortletPreferencespublic void reset(String key)
throws javax.portlet.ReadOnlyException
reset in interface javax.portlet.PortletPreferencesjavax.portlet.ReadOnlyExceptionpublic void setPlid(long plid)
public void setValue(String key,
String value)
throws javax.portlet.ReadOnlyException
setValue in interface javax.portlet.PortletPreferencesjavax.portlet.ReadOnlyExceptionpublic void setValues(String key,
String... values)
throws javax.portlet.ReadOnlyException
setValues in interface javax.portlet.PortletPreferencesjavax.portlet.ReadOnlyExceptionpublic int size()
public void store()
throws IOException,
javax.portlet.ValidatorException
store in interface javax.portlet.PortletPreferencesIOExceptionjavax.portlet.ValidatorExceptionprotected long getCompanyId()
protected Map<String,Preference> getModifiedPreferences()
protected Map<String,Preference> getOriginalPreferences()
protected String getOriginalXML()
protected String getPortletId()
protected String toXML()