org.apache.jetspeed.om.preference.impl
Class PrefsPreferenceSetImpl

java.lang.Object
  extended by org.apache.jetspeed.om.preference.impl.PrefsPreferenceSetImpl
All Implemented Interfaces:
org.apache.jetspeed.om.common.preference.PreferenceSetComposite, org.apache.pluto.om.common.PreferenceSet, org.apache.pluto.om.common.PreferenceSetCtrl, org.apache.pluto.om.Controller, org.apache.pluto.om.Model

public class PrefsPreferenceSetImpl
extends Object
implements org.apache.jetspeed.om.common.preference.PreferenceSetComposite

Author:
Scott T. Weaver

Nested Class Summary
protected  class PrefsPreferenceSetImpl.PortletPrefsIterator
           
 
Field Summary
protected  org.apache.jetspeed.om.common.preference.PreferenceSetComposite defaults
           
protected  Preferences prefsRootNode
           
protected  org.apache.jetspeed.om.common.preference.PreferencesValidatorFactory validatorFactory
           
 
Constructor Summary
PrefsPreferenceSetImpl(Preferences prefsRootNode)
           
PrefsPreferenceSetImpl(Preferences prefsRootNode, org.apache.jetspeed.om.common.preference.PreferenceSetComposite defaults)
           
PrefsPreferenceSetImpl(Preferences prefsRootNode, org.apache.jetspeed.om.common.preference.PreferencesValidatorFactory validatorFactory)
           
 
Method Summary
 org.apache.pluto.om.common.Preference add(String name, List values)
           add
protected  boolean arrayContains(String[] array, String value)
           
 void clear()
           clear
 void flush()
           
 org.apache.pluto.om.common.Preference get(String key)
           get
 Set getNames()
           getNames
 javax.portlet.PreferencesValidator getPreferencesValidator()
           getPreferencesValidator
 Iterator iterator()
           iterator
 void remove(org.apache.pluto.om.common.Preference pref)
           remove
 org.apache.pluto.om.common.Preference remove(String key)
           remove
 int size()
           size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefsRootNode

protected Preferences prefsRootNode

defaults

protected org.apache.jetspeed.om.common.preference.PreferenceSetComposite defaults

validatorFactory

protected org.apache.jetspeed.om.common.preference.PreferencesValidatorFactory validatorFactory
Constructor Detail

PrefsPreferenceSetImpl

public PrefsPreferenceSetImpl(Preferences prefsRootNode)
                       throws BackingStoreException
Parameters:
portletEntity - PortletEntity for which to build the PreferenceSet for.
Throws:
BackingStoreException - if an error is encountered while accessing the Preferences backing store.

PrefsPreferenceSetImpl

public PrefsPreferenceSetImpl(Preferences prefsRootNode,
                              org.apache.jetspeed.om.common.preference.PreferencesValidatorFactory validatorFactory)
                       throws BackingStoreException
Parameters:
portletEntity - PortletEntity for which to build the PreferenceSet for.
validatorFactory - Factory for providing access to a PreferencesValidator instance
Throws:
BackingStoreException - if an error is encountered while accessing the Preferences backing store.

PrefsPreferenceSetImpl

public PrefsPreferenceSetImpl(Preferences prefsRootNode,
                              org.apache.jetspeed.om.common.preference.PreferenceSetComposite defaults)
                       throws BackingStoreException
Throws:
BackingStoreException
Method Detail

getNames

public Set getNames()

getNames

Specified by:
getNames in interface org.apache.jetspeed.om.common.preference.PreferenceSetComposite
Returns:
See Also:
PreferenceSetComposite.getNames()

get

public org.apache.pluto.om.common.Preference get(String key)

get

Specified by:
get in interface org.apache.pluto.om.common.PreferenceSet
Parameters:
arg0 -
Returns:
See Also:
PreferenceSet.get(java.lang.String)

getPreferencesValidator

public javax.portlet.PreferencesValidator getPreferencesValidator()

getPreferencesValidator

Specified by:
getPreferencesValidator in interface org.apache.pluto.om.common.PreferenceSet
Returns:
See Also:
PreferenceSet.getPreferencesValidator()

add

public org.apache.pluto.om.common.Preference add(String name,
                                                 List values)

add

Specified by:
add in interface org.apache.pluto.om.common.PreferenceSetCtrl
Parameters:
name -
values -
Returns:
See Also:
PreferenceSetCtrl.add(java.lang.String, java.util.List)

remove

public void remove(org.apache.pluto.om.common.Preference pref)

remove

Specified by:
remove in interface org.apache.pluto.om.common.PreferenceSetCtrl
Parameters:
arg0 -
See Also:
PreferenceSetCtrl.remove(org.apache.pluto.om.common.Preference)

remove

public org.apache.pluto.om.common.Preference remove(String key)

remove

Specified by:
remove in interface org.apache.pluto.om.common.PreferenceSetCtrl
Parameters:
arg0 -
Returns:
See Also:
PreferenceSetCtrl.remove(java.lang.String)

flush

public void flush()
           throws BackingStoreException
Throws:
BackingStoreException

clear

public void clear()
           throws BackingStoreException

clear

Throws:
BackingStoreException

size

public int size()

size

Specified by:
size in interface org.apache.jetspeed.om.common.preference.PreferenceSetComposite
Returns:
See Also:
PreferenceSetComposite.size()

iterator

public Iterator iterator()

iterator

Specified by:
iterator in interface org.apache.pluto.om.common.PreferenceSet
Returns:
See Also:
PreferenceSet.iterator()

arrayContains

protected boolean arrayContains(String[] array,
                                String value)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.