net.sourceforge.blogentis.plugins
Interface IPrefs

All Superinterfaces:
org.apache.commons.configuration.Configuration
All Known Implementing Classes:
PrefsImpl

public interface IPrefs
extends org.apache.commons.configuration.Configuration

Abstract preferences store for plugins that are bound to blogs and need to keep persistent data around.

Author:
abas

Method Summary
 java.lang.String getPrefix()
          The preferences are stored under a specific prefix, get it for us.
 void save()
           
 void setInt(java.lang.String key, int value)
           
 void setInt(java.lang.String key, java.lang.Integer value)
           
 void setList(java.lang.String key, java.util.List value)
           
 void setString(java.lang.String key, java.lang.String value)
          Set the specified key to the given value
 
Methods inherited from interface org.apache.commons.configuration.Configuration
addProperty, clearProperty, containsKey, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getVector, getVector, isEmpty, setProperty, subset
 

Method Detail

getPrefix

public java.lang.String getPrefix()
The preferences are stored under a specific prefix, get it for us.

Returns:
the refix under which this plugins preferences are stored.

setString

public void setString(java.lang.String key,
                      java.lang.String value)
Set the specified key to the given value

Parameters:
key -
value -

setInt

public void setInt(java.lang.String key,
                   int value)

setInt

public void setInt(java.lang.String key,
                   java.lang.Integer value)

setList

public void setList(java.lang.String key,
                    java.util.List value)

save

public void save()
          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.