Role objects managed by the User Admin
service.
This interface exposes the characteristics shared by all Role
classes: a name, a type, and a set of properties.
Properties represent public information about the Role object that
can be read by anyone. Specific UserAdminPermission objects are
required to change a Role object's properties.
Role object properties are Dictionary objects. Changes to
these objects are propagated to the User Admin service and made persistent.
Every User Admin service contains a set of predefined Role objects
that are always present and cannot be removed. All predefined Role
objects are of type ROLE. This version of the
org.osgi.service.useradmin package defines a single predefined role
named "user.anyone", which is inherited by any other role. Other
predefined roles may be added in the future. Since "user.anyone" is
a Role object that has properties associated with it that can be read
and modified. Access to these properties and their use is application
specific and is controlled using UserAdminPermission in the same way
that properties for other Role objects are.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | ROLE
The type of a predefined role. |
| public static final int | |
| public static final String | USER_ANYONE
The name of the predefined role, user.anyone, that all users and groups belong to. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Dictionary | Returns: Dictionary containing the properties of this Role
object.Returns a |
| public int |
| GROUP | back to summary |
|---|---|
| public static final int GROUP The type of a
The value of | |
| ROLE | back to summary |
|---|---|
| public static final int ROLE The type of a predefined role.
The value of | |
| USER | back to summary |
|---|---|
| public static final int USER The type of a
The value of | |
| USER_ANYONE | back to summary |
|---|---|
| public static final String USER_ANYONE The name of the predefined role, user.anyone, that all users and groups belong to.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this role.
| |
| getProperties | back to summary |
|---|---|
| public Dictionary Returns a
Only objects of type
In order to add, change, or remove a property in the returned
| |
| getType | back to summary |
|---|---|
| public int getType() Returns the type of this role.
| |