Liferay 6.1.2-ce-ga3

com.liferay.portlet
Class BasePreferencesImpl

java.lang.Object
  extended by com.liferay.portlet.BasePreferencesImpl
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PortalPreferencesImpl, PortletPreferencesImpl

public abstract class BasePreferencesImpl
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
BasePreferencesImpl(long companyId, long ownerId, int ownerType, String xml, Map<String,Preference> preferences)
           
 
Method Summary
protected  String getActualValue(String value)
           
protected  String[] getActualValues(String[] values)
           
protected  long getCompanyId()
           
 Map<String,String[]> getMap()
           
protected  Map<String,Preference> getModifiedPreferences()
           
 Enumeration<String> getNames()
           
protected  Map<String,Preference> getOriginalPreferences()
           
protected  String getOriginalXML()
           
 long getOwnerId()
           
 int getOwnerType()
           
protected  Map<String,Preference> getPreferences()
           
 String getValue(String key, String def)
           
 String[] getValues(String key, String[] def)
           
protected  String getXMLSafeValue(String value)
           
protected  String[] getXMLSafeValues(String[] values)
           
 boolean isReadOnly(String key)
           
 void reset()
           
abstract  void reset(String key)
           
 void setValue(String key, String value)
           
 void setValues(String key, String[] values)
           
 int size()
           
abstract  void store()
           
protected  String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePreferencesImpl

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

getMap

public Map<String,String[]> getMap()

getNames

public Enumeration<String> getNames()

getOwnerId

public long getOwnerId()

getOwnerType

public int getOwnerType()

getValue

public String getValue(String key,
                       String def)

getValues

public String[] getValues(String key,
                          String[] def)

isReadOnly

public boolean isReadOnly(String key)

reset

public void reset()

reset

public abstract void reset(String key)
                    throws ReadOnlyException
Throws:
ReadOnlyException

setValue

public void setValue(String key,
                     String value)
              throws ReadOnlyException
Throws:
ReadOnlyException

setValues

public void setValues(String key,
                      String[] values)
               throws ReadOnlyException
Throws:
ReadOnlyException

size

public int size()

store

public abstract void store()
                    throws IOException,
                           ValidatorException
Throws:
IOException
ValidatorException

getActualValue

protected String getActualValue(String value)

getActualValues

protected String[] getActualValues(String[] values)

getCompanyId

protected long getCompanyId()

getModifiedPreferences

protected Map<String,Preference> getModifiedPreferences()

getOriginalPreferences

protected Map<String,Preference> getOriginalPreferences()

getOriginalXML

protected String getOriginalXML()

getPreferences

protected Map<String,Preference> getPreferences()

getXMLSafeValue

protected String getXMLSafeValue(String value)

getXMLSafeValues

protected String[] getXMLSafeValues(String[] values)

toXML

protected String toXML()

Liferay 6.1.2-ce-ga3