Liferay 6.1.2-ce-ga3

com.liferay.portlet
Class PortalPreferencesImpl

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

public class PortalPreferencesImpl
extends BasePreferencesImpl
implements Cloneable, PortalPreferences, Serializable

See Also:
Serialized Form

Constructor Summary
PortalPreferencesImpl()
           
PortalPreferencesImpl(long companyId, long ownerId, int ownerType, String xml, Map<String,Preference> preferences, boolean signedIn)
           
 
Method Summary
 Object 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()
           
 
Methods inherited from class com.liferay.portlet.BasePreferencesImpl
getActualValue, getActualValues, getCompanyId, getMap, getModifiedPreferences, getNames, getOriginalPreferences, getOriginalXML, getOwnerId, getOwnerType, getPreferences, getValues, getXMLSafeValue, getXMLSafeValues, isReadOnly, reset, 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.portlet.PortalPreferences
size
 

Constructor Detail

PortalPreferencesImpl

public PortalPreferencesImpl()

PortalPreferencesImpl

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

clone

public Object 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

store

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

Liferay 6.1.2-ce-ga3