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() |
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 Object
public boolean equals(Object object)
equals
in class Object
public 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.PortalPreferences
public String getValue(String namespace, String key)
getValue
in interface com.liferay.portal.kernel.portlet.PortalPreferences
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 namespace, String key)
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 int size()
size
in interface com.liferay.portal.kernel.portlet.PortalPreferences
public void store() throws IOException
IOException
public String toXML()