Liferay 7.0-ga1 portal-impl

com.liferay.portlet
Class PortalPreferencesImpl

java.lang.Object
  extended by com.liferay.portlet.BasePreferencesImpl
      extended by com.liferay.portlet.PortalPreferencesImpl
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.PortalPreferences, Serializable, Cloneable

public class PortalPreferencesImpl
extends BasePreferencesImpl
implements Cloneable, com.liferay.portal.kernel.portlet.PortalPreferences, Serializable

See Also:
Serialized Form

Field Summary
static com.liferay.portal.kernel.transaction.TransactionConfig SUPPORTS_TRANSACTION_CONFIG
           
 
Constructor Summary
PortalPreferencesImpl()
           
PortalPreferencesImpl(long ownerId, int ownerType, String xml, Map<String,Preference> preferences, boolean signedIn)
           
PortalPreferencesImpl(com.liferay.portal.kernel.model.PortalPreferences portalPreferences, boolean signedIn)
           
 
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()
           
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()
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.portlet.PortalPreferences
size
 

Field Detail

SUPPORTS_TRANSACTION_CONFIG

public static final com.liferay.portal.kernel.transaction.TransactionConfig SUPPORTS_TRANSACTION_CONFIG
Constructor Detail

PortalPreferencesImpl

public PortalPreferencesImpl()

PortalPreferencesImpl

public PortalPreferencesImpl(com.liferay.portal.kernel.model.PortalPreferences portalPreferences,
                             boolean signedIn)

PortalPreferencesImpl

public PortalPreferencesImpl(long ownerId,
                             int ownerType,
                             String xml,
                             Map<String,Preference> preferences,
                             boolean signedIn)
Method Detail

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 com.liferay.portal.kernel.portlet.PortalPreferences

getValue

public String getValue(String namespace,
                       String key)
Specified by:
getValue in interface com.liferay.portal.kernel.portlet.PortalPreferences
Overrides:
getValue in class BasePreferencesImpl

getValue

public String getValue(String namespace,
                       String key,
                       String defaultValue)
Specified by:
getValue in interface com.liferay.portal.kernel.portlet.PortalPreferences

getValues

public String[] getValues(String namespace,
                          String key)
Specified by:
getValues in interface com.liferay.portal.kernel.portlet.PortalPreferences

getValues

public String[] getValues(String namespace,
                          String key,
                          String[] defaultValue)
Specified by:
getValues in interface com.liferay.portal.kernel.portlet.PortalPreferences

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isSignedIn

public boolean isSignedIn()
Specified by:
isSignedIn in interface com.liferay.portal.kernel.portlet.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 com.liferay.portal.kernel.portlet.PortalPreferences

setSignedIn

public void setSignedIn(boolean signedIn)
Specified by:
setSignedIn in interface com.liferay.portal.kernel.portlet.PortalPreferences

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface com.liferay.portal.kernel.portlet.PortalPreferences

setValue

public void setValue(String namespace,
                     String key,
                     String value)
Specified by:
setValue in interface com.liferay.portal.kernel.portlet.PortalPreferences

setValues

public void setValues(String namespace,
                      String key,
                      String[] values)
Specified by:
setValues in interface com.liferay.portal.kernel.portlet.PortalPreferences

store

public void store()
           throws IOException
Specified by:
store in class BasePreferencesImpl
Throws:
IOException

isCausedByStaleObjectException

protected boolean isCausedByStaleObjectException(Throwable t)

retryableStore

protected void retryableStore(Callable<?> callable,
                              String key)
                       throws Throwable
Throws:
Throwable

Liferay 7.0-ga1 portal-impl