org.exoplatform.services.portletcontainer.pci.model
Class ExoPortletPreferences

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Preference>
          extended by org.exoplatform.services.portletcontainer.pci.model.ExoPortletPreferences
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Preference>, javax.portlet.PortletPreferences

public class ExoPortletPreferences
extends HashMap<String,Preference>
implements javax.portlet.PortletPreferences, Serializable

Jun 9, 2004 .

See Also:
Serialized Form

Constructor Summary
ExoPortletPreferences()
           
 
Method Summary
 void addPreference(Preference pref)
           
 String getId()
           
 Map<String,String[]> getMap()
          Overridden method.
 Enumeration<String> getNames()
           
 String getPreferencesValidator()
           
 String getValue(String key, String def)
          Overridden method.
 String[] getValues(String key, String[] def)
          Overridden method.
 boolean isReadOnly(String key)
          Overridden method.
 void reset(String key)
           
 void setId(String value)
           
 void setPreferencesValidator(String preferencesValidator)
           
 void setValue(String key, String value)
          Overridden method.
 void setValues(String key, String[] value)
           
 void store()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ExoPortletPreferences

public ExoPortletPreferences()
Method Detail

getMap

public final Map<String,String[]> getMap()
Overridden method.

Specified by:
getMap in interface javax.portlet.PortletPreferences
Returns:
prefs map
See Also:
PortletPreferences.getMap()

isReadOnly

public final boolean isReadOnly(String key)
Overridden method.

Specified by:
isReadOnly in interface javax.portlet.PortletPreferences
Parameters:
key - key
Returns:
is readonly
See Also:
PortletPreferences.isReadOnly(java.lang.String)

getValue

public final String getValue(String key,
                             String def)
Overridden method.

Specified by:
getValue in interface javax.portlet.PortletPreferences
Parameters:
key - key
def - def
Returns:
value
See Also:
PortletPreferences.getValue(java.lang.String, java.lang.String)

getValues

public final String[] getValues(String key,
                                String[] def)
Overridden method.

Specified by:
getValues in interface javax.portlet.PortletPreferences
Parameters:
key - key
def - def
Returns:
values
See Also:
PortletPreferences.getValues(java.lang.String, java.lang.String[])

setValue

public final void setValue(String key,
                           String value)
                    throws javax.portlet.ReadOnlyException
Overridden method.

Specified by:
setValue in interface javax.portlet.PortletPreferences
Parameters:
key - key
value - value
Throws:
javax.portlet.ReadOnlyException - exception
See Also:
PortletPreferences.setValue(java.lang.String, java.lang.String)

setValues

public final void setValues(String key,
                            String[] value)
                     throws javax.portlet.ReadOnlyException
Specified by:
setValues in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

getNames

public final Enumeration<String> getNames()
Specified by:
getNames in interface javax.portlet.PortletPreferences

reset

public final void reset(String key)
                 throws javax.portlet.ReadOnlyException
Specified by:
reset in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

store

public final void store()
                 throws IOException,
                        javax.portlet.ValidatorException
Specified by:
store in interface javax.portlet.PortletPreferences
Throws:
IOException
javax.portlet.ValidatorException

addPreference

public final void addPreference(Preference pref)

getPreferencesValidator

public final String getPreferencesValidator()

setPreferencesValidator

public final void setPreferencesValidator(String preferencesValidator)

getId

public final String getId()

setId

public final void setId(String value)


Copyright © 2009 eXo Platform SAS. All Rights Reserved.