com.liferay.portlet
Class PortalPreferencesImpl
java.lang.Object
com.liferay.portlet.BasePreferencesImpl
com.liferay.portlet.PortalPreferencesImpl
- All Implemented Interfaces:
- PortalPreferences, Serializable, Cloneable
public class PortalPreferencesImpl
- extends BasePreferencesImpl
- implements Cloneable, PortalPreferences, Serializable
- See Also:
- Serialized Form
Method Summary |
PortalPreferencesImpl |
clone()
|
boolean |
equals(Object obj)
|
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 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)
|
void |
store()
|
protected void |
validateStore(Callable<?> callable,
String key)
|
Methods inherited from class com.liferay.portlet.BasePreferencesImpl |
getActualValue, getActualValues, getMap, getModifiedPreferences, getNames, getOriginalPreferences, getOriginalXML, getOwnerId, getOwnerType, getPreferences, getValues, getXMLSafeValue, getXMLSafeValues, isNull, isReadOnly, reset, setOriginalPreferences, setOriginalXML, setValue, setValues, size, toXML |
TRANSACTION_ATTRIBUTE
public static final TransactionAttribute TRANSACTION_ATTRIBUTE
PortalPreferencesImpl
public PortalPreferencesImpl()
PortalPreferencesImpl
public PortalPreferencesImpl(long ownerId,
int ownerType,
String xml,
Map<String,Preference> preferences,
boolean signedIn)
clone
public PortalPreferencesImpl clone()
- Overrides:
clone
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getUserId
public long getUserId()
- Specified by:
getUserId
in interface PortalPreferences
getValue
public String getValue(String namespace,
String key)
- Specified by:
getValue
in interface PortalPreferences
- Overrides:
getValue
in class BasePreferencesImpl
getValue
public String getValue(String namespace,
String key,
String defaultValue)
- Specified by:
getValue
in interface PortalPreferences
getValues
public String[] getValues(String namespace,
String key)
- Specified by:
getValues
in interface PortalPreferences
getValues
public String[] getValues(String namespace,
String key,
String[] defaultValue)
- Specified by:
getValues
in interface PortalPreferences
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isSignedIn
public boolean isSignedIn()
- Specified by:
isSignedIn
in interface PortalPreferences
reset
public void reset(String key)
throws ReadOnlyException
- Specified by:
reset
in class BasePreferencesImpl
- Throws:
ReadOnlyException
resetValues
public void resetValues(String namespace)
- Specified by:
resetValues
in interface PortalPreferences
setSignedIn
public void setSignedIn(boolean signedIn)
- Specified by:
setSignedIn
in interface PortalPreferences
setUserId
public void setUserId(long userId)
- Specified by:
setUserId
in interface PortalPreferences
setValue
public void setValue(String namespace,
String key,
String value)
- Specified by:
setValue
in interface PortalPreferences
setValues
public void setValues(String namespace,
String key,
String[] values)
- Specified by:
setValues
in interface PortalPreferences
validateStore
protected void validateStore(Callable<?> callable,
String key)
throws Throwable
- Throws:
Throwable
store
public void store()
throws IOException
- Specified by:
store
in class BasePreferencesImpl
- Throws:
IOException