public class RoleData extends Object
RoleData represents Role Type @see UserAdminMBean.ROLE_TYPE.It is a codec
for the CompositeData representing a Role.
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
role name.
|
protected List<PropertyData<? extends Object>> |
properties
role propeties.
|
protected int |
type
role type.
|
| Constructor and Description |
|---|
RoleData(org.osgi.service.useradmin.Role role)
Constructs new RoleData from Role object.
|
RoleData(String name,
int type)
Constructs new RoleData.
|
RoleData(String name,
int type,
Dictionary properties)
Constructs new RoleData.
|
| Modifier and Type | Method and Description |
|---|---|
static RoleData |
from(CompositeData data)
Static factory method to create RoleData from CompositeData object.
|
String |
getName() |
protected TabularData |
getPropertiesTable() |
protected static TabularData |
getPropertiesTable(List<PropertyData<? extends Object>> data) |
int |
getType() |
protected static Dictionary<String,Object> |
propertiesFrom(TabularData data)
Creates properties from TabularData object.
|
CompositeData |
toCompositeData()
Translates RoleData to CompositeData represented by
compositeType
UserAdminMBean.ROLE_TYPE. |
protected static TabularData |
toTabularData(Dictionary<String,Object> props)
Creates TabularData from Dictionary.
|
protected String name
protected int type
protected List<PropertyData<? extends Object>> properties
public RoleData(org.osgi.service.useradmin.Role role)
role - Role instance.public RoleData(String name, int type)
name - role name.type - role type.public RoleData(String name, int type, Dictionary properties)
name - role name.type - role type.properties - role properties.public CompositeData toCompositeData()
UserAdminMBean.ROLE_TYPE.protected TabularData getPropertiesTable()
protected static TabularData getPropertiesTable(List<PropertyData<? extends Object>> data)
public static RoleData from(CompositeData data)
data - CompositeData instance.protected static TabularData toTabularData(Dictionary<String,Object> props)
props - Dictionary instance.protected static Dictionary<String,Object> propertiesFrom(TabularData data)
data - TabularData instance.Dictionary.public String getName()
public int getType()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.