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 object) |
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, toXML
public 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 Object
public boolean equals(Object object)
equals
in class Object
public long getMvccVersion()
public long getUserId()
getUserId
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public String getValue(String namespace, String key)
getValue
in interface com.liferay.portal.kernel.portlet.PortalPreferences
getValue
in class BasePreferencesImpl
public String getValue(String namespace, String key, String defaultValue)
getValue
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public String[] getValues(String namespace, String key)
getValues
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public String[] getValues(String namespace, String key, String[] defaultValue)
getValues
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public int hashCode()
hashCode
in class Object
public boolean isSignedIn()
isSignedIn
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void reset(String key) throws ReadOnlyException
reset
in class BasePreferencesImpl
ReadOnlyException
public void resetValues(String namespace)
resetValues
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void setSignedIn(boolean signedIn)
setSignedIn
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void setUserId(long userId)
setUserId
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void setValue(String namespace, String key, String value)
setValue
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void setValues(String namespace, String key, String[] values)
setValues
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void store() throws IOException
store
in class BasePreferencesImpl
IOException
protected boolean isCausedByStaleObjectException(Throwable t)
protected void retryableStore(Callable<?> callable, String key) throws Throwable
Throwable