public class PortletPreferencesImpl extends Object implements Cloneable, 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 PortletPreferencespublic Enumeration<String> getNames()
getNames in interface PortletPreferencespublic long getOwnerId()
public int getOwnerType()
public long getPlid()
public Map<String,Preference> getPreferences()
public String getValue(String key,
String def)
getValue in interface PortletPreferencespublic String[] getValues(String key,
String[] def)
getValues in interface PortletPreferencespublic int hashCode()
hashCode in class Objectpublic boolean isReadOnly(String key)
isReadOnly in interface PortletPreferencespublic void reset(String key)
throws ReadOnlyException
reset in interface PortletPreferencesReadOnlyExceptionpublic void setPlid(long plid)
public void setValue(String key,
String value)
throws ReadOnlyException
setValue in interface PortletPreferencesReadOnlyExceptionpublic void setValues(String key,
String... values)
throws ReadOnlyException
setValues in interface PortletPreferencesReadOnlyExceptionpublic int size()
public void store()
throws IOException,
ValidatorException
store in interface PortletPreferencesIOExceptionValidatorExceptionprotected long getCompanyId()
protected Map<String,Preference> getModifiedPreferences()
protected Map<String,Preference> getOriginalPreferences()
protected String getOriginalXML()
protected String getPortletId()
protected String toXML()