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