org.apache.felix.useradmin.impl
Class RoleProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.apache.felix.useradmin.impl.RoleProperties
All Implemented Interfaces:
Serializable, Cloneable, Map
Direct Known Subclasses:
RoleCredentials

public class RoleProperties
extends Hashtable

This class RoleProperties represents role properties. Act as a base class for different types of properties.

Version:
$Rev$ $Date$
See Also:
Serialized Form

Field Summary
protected  RoleImpl role
           
 
Constructor Summary
RoleProperties(RoleImpl role)
          Constructs new RoleProperties.
 
Method Summary
 void clear()
          Clears the properties.
 Object get(Object key)
          Getting property with specified key.
protected  String getChangeAction()
          The permission need to modify the properties.
 Object put(Object key, Object value)
           Putting new property key-value pair into properties.
 Object remove(Object key)
          Removing properties with specified key.
 String toString()
           
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

role

protected RoleImpl role
Constructor Detail

RoleProperties

public RoleProperties(RoleImpl role)
Constructs new RoleProperties.

Parameters:
role - Role instance.
Method Detail

clear

public void clear()
Clears the properties. User needs to have proper change permissions.

Specified by:
clear in interface Map
Overrides:
clear in class Hashtable

get

public Object get(Object key)
Getting property with specified key.

Specified by:
get in interface Map
Overrides:
get in class Hashtable

remove

public Object remove(Object key)
Removing properties with specified key. User of this methods needs to have proper permissions. For removing credentials UserAdminPermission#CHANGE_CREDENTIAL For removing properties UserAdminPermission#CHANGE_PROPERTY.

Specified by:
remove in interface Map
Overrides:
remove in class Hashtable

put

public Object put(Object key,
                  Object value)

Putting new property key-value pair into properties. User needs to have proper change permissions. All values are encoded at least with Base64.

Specified by:
put in interface Map
Overrides:
put in class Hashtable

toString

public String toString()
Overrides:
toString in class Hashtable

getChangeAction

protected String getChangeAction()
The permission need to modify the properties.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.