org.apache.aries.jmx.codec
Class UserData

java.lang.Object
  extended by org.apache.aries.jmx.codec.RoleData
      extended by org.apache.aries.jmx.codec.UserData
Direct Known Subclasses:
GroupData

public class UserData
extends RoleData

UserData represents User Type @see UserAdminMBean.USER_TYPE.It is a codec for the CompositeData representing a User.

Version:
$Rev: 920467 $ $Date: 2010-03-08 19:22:22 +0000 (Mon, 08 Mar 2010) $
See Also:
RoleData

Field Summary
 
Fields inherited from class org.apache.aries.jmx.codec.RoleData
name, type
 
Constructor Summary
UserData(String name, int type)
          Constructs new UserData.
UserData(org.osgi.service.useradmin.User user)
          Constructs new UserData from User object.
 
Method Summary
static UserData from(CompositeData data)
          Static factory method to create UserData from CompositeData object.
 CompositeData toCompositeData()
          Translates UserData to CompositeData represented by compositeType UserAdminMBean.USER_TYPE.
 
Methods inherited from class org.apache.aries.jmx.codec.RoleData
getName, getType, propertiesFrom, toTabularData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserData

public UserData(String name,
                int type)
Constructs new UserData.

Parameters:
name - user name.
type - role type.

UserData

public UserData(org.osgi.service.useradmin.User user)
Constructs new UserData from User object.

Parameters:
user - User instance.
Method Detail

toCompositeData

public CompositeData toCompositeData()
Translates UserData to CompositeData represented by compositeType UserAdminMBean.USER_TYPE.

Overrides:
toCompositeData in class RoleData
Returns:
translated UserData to compositeData.

from

public static UserData from(CompositeData data)
Static factory method to create UserData from CompositeData object.

Parameters:
data - CompositeData instance.
Returns:
UserData instance.


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.