public class PortalPreferencesImpl extends BasePreferencesImpl 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,
String xml,
Map<String,Preference> preferences,
boolean signedIn) |
PortalPreferencesImpl(com.liferay.portal.kernel.model.PortalPreferences portalPreferences,
boolean signedIn) |
| Modifier and Type | Method and Description |
|---|---|
PortalPreferencesImpl |
clone() |
boolean |
equals(Object obj) |
long |
getMvccVersion() |
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() |
protected boolean |
isCausedByStaleObjectException(Throwable t) |
boolean |
isSignedIn() |
void |
reset(String key) |
void |
resetValues(String namespace) |
protected void |
retryableStore(Callable<?> callable,
String key) |
void |
setSignedIn(boolean signedIn) |
void |
setUserId(long userId) |
void |
setValue(String namespace,
String key,
String value) |
void |
setValues(String namespace,
String key,
String[] values) |
void |
store() |
getActualValue, getActualValues, getMap, getModifiedPreferences, getNames, getOriginalPreferences, getOriginalXML, getOwnerId, getOwnerType, getPreferences, getValues, getXMLSafeValue, getXMLSafeValues, isNull, isReadOnly, reset, setOriginalPreferences, setOriginalXML, setValue, setValues, size, toXMLpublic static final com.liferay.portal.kernel.transaction.TransactionConfig SUPPORTS_TRANSACTION_CONFIG
public PortalPreferencesImpl()
public PortalPreferencesImpl(com.liferay.portal.kernel.model.PortalPreferences portalPreferences,
boolean signedIn)
public PortalPreferencesImpl(long ownerId,
int ownerType,
String xml,
Map<String,Preference> preferences,
boolean signedIn)
public PortalPreferencesImpl clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic long getMvccVersion()
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.PortalPreferencesgetValue in class BasePreferencesImplpublic 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 key)
throws ReadOnlyException
reset in class BasePreferencesImplReadOnlyExceptionpublic 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 void store()
throws IOException
store in class BasePreferencesImplIOExceptionprotected boolean isCausedByStaleObjectException(Throwable t)
protected void retryableStore(Callable<?> callable,
String key)
throws Throwable
Throwable