public class PortalPreferencesImpl
extends Object
implements Cloneable, com.liferay.portal.kernel.portlet.PortalPreferences, Serializable
| Modifier and Type | Field and Description |
|---|---|
static com.liferay.portal.kernel.transaction.TransactionConfig |
SUPPORTS_TRANSACTION_CONFIG |
| Constructor and Description |
|---|
PortalPreferencesImpl() |
PortalPreferencesImpl(long ownerId,
int ownerType,
Map<PortalPreferenceKey,String[]> preferences,
boolean signedIn) |
| Modifier and Type | Method and Description |
|---|---|
PortalPreferencesImpl |
clone() |
boolean |
equals(Object object) |
Map<String,String[]> |
getMap(String namespace) |
Enumeration<String> |
getNames(String namespace) |
long |
getOwnerId() |
int |
getOwnerType() |
Map<PortalPreferenceKey,String[]> |
getPreferences() |
long |
getUserId() |
String |
getValue(String namespace,
String key) |
String |
getValue(String namespace,
String key,
String defaultValue) |
String[] |
getValues(String namespace,
String key) |
String[] |
getValues(String namespace,
String key,
String[] defaultValue) |
int |
hashCode() |
boolean |
isSignedIn() |
void |
reset(String namespace,
String key) |
void |
resetValues(String namespace) |
void |
setSignedIn(boolean signedIn) |
void |
setUserId(long userId) |
void |
setValue(String namespace,
String key,
String value) |
void |
setValues(String namespace,
String key,
String[] values) |
int |
size() |
void |
store() |
protected String |
toXML() |
public static final com.liferay.portal.kernel.transaction.TransactionConfig SUPPORTS_TRANSACTION_CONFIG
public PortalPreferencesImpl()
public PortalPreferencesImpl(long ownerId,
int ownerType,
Map<PortalPreferenceKey,String[]> preferences,
boolean signedIn)
public PortalPreferencesImpl clone()
clone in class Objectpublic boolean equals(Object object)
equals in class Objectpublic Map<String,String[]> getMap(String namespace)
public Enumeration<String> getNames(String namespace)
public long getOwnerId()
public int getOwnerType()
public Map<PortalPreferenceKey,String[]> getPreferences()
public long getUserId()
getUserId in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic String getValue(String namespace,
String key)
getValue in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic String getValue(String namespace,
String key,
String defaultValue)
getValue in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic String[] getValues(String namespace,
String key)
getValues in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic String[] getValues(String namespace,
String key,
String[] defaultValue)
getValues in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic int hashCode()
hashCode in class Objectpublic boolean isSignedIn()
isSignedIn in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void reset(String namespace,
String key)
public void resetValues(String namespace)
resetValues in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void setSignedIn(boolean signedIn)
setSignedIn in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void setValue(String namespace,
String key,
String value)
setValue in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void setValues(String namespace,
String key,
String[] values)
setValues in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic int size()
size in interface com.liferay.portal.kernel.portlet.PortalPreferencespublic void store()
throws IOException
IOExceptionprotected String toXML()