org.openpermis.editor.policy.configuration
Class ClassSettings

java.lang.Object
  extended by org.openpermis.editor.policy.configuration.ClassSettings

public class ClassSettings
extends Object

Key/value pair settings for several classes.

Since:
0.9.0

Constructor Summary
ClassSettings()
          Creates an empty new class settings object.
 
Method Summary
 Object get(Object type, String key)
          Returns the value for the specified type and key.
protected  Map<String,Object> getClassSettingsMap(Object type, boolean create)
          Returns the class based settings map.
 void put(Object type, String key, Object value)
          Sets the value for a type and key combination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSettings

public ClassSettings()
Creates an empty new class settings object.

Since:
0.9.0
Method Detail

getClassSettingsMap

protected Map<String,Object> getClassSettingsMap(Object type,
                                                 boolean create)
Returns the class based settings map.

Parameters:
type - the class to retrieve the map for.
create - true to insert a map for inexistent types.
Returns:
the map requested, never null.
Since:
0.9.0

get

public Object get(Object type,
                  String key)
Returns the value for the specified type and key.

Parameters:
type - the class for which to retrieve the value of key.
key - the key for which to retrieve the value.
Returns:
the value requested, null if undefined.
Since:
0.9.0

put

public void put(Object type,
                String key,
                Object value)
Sets the value for a type and key combination.

Parameters:
type - the type for which to set the key/value pair.
key - the key to store.
value - the value to store.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG