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