Role change event.
UserAdminEvent objects are delivered asynchronously to any
UserAdminListener objects when a change occurs in any of the
Role objects managed by a User Admin service.
A type code is used to identify the event. The following event types are
defined: ROLE_CREATED type, ROLE_CHANGED type, and
ROLE_REMOVED type. Additional event types may be defined in the
future.
UserAdmin, UserAdminListener
| Modifier and Type | Field and Description |
|---|---|
| private ServiceReference | |
| private Role | |
| public static final int | ROLE_CHANGED
A |
| public static final int | ROLE_CREATED
A |
| public static final int | ROLE_REMOVED
A |
| private int |
| Access | Constructor and Description |
|---|---|
| public | UserAdminEvent(ServiceReference<UserAdmin>
The ref, int ServiceReference object of the User Admin service
that generated this event.The event type. type, Role The role)Role object on which this event occurred.Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Role | Returns: TheRole object this event was generated for.Gets the |
| public ServiceReference | Returns: The User Admin service'sServiceReference object.Gets the |
| public int |
| ref | back to summary |
|---|---|
| private ServiceReference<UserAdmin> ref | |
| role | back to summary |
|---|---|
| private Role role | |
| ROLE_CHANGED | back to summary |
|---|---|
| public static final int ROLE_CHANGED A
The value of | |
| ROLE_CREATED | back to summary |
|---|---|
| public static final int ROLE_CREATED A
The value of | |
| ROLE_REMOVED | back to summary |
|---|---|
| public static final int ROLE_REMOVED A
The value of | |
| type | back to summary |
|---|---|
| private int type | |
| UserAdminEvent | back to summary |
|---|---|
| public UserAdminEvent(ServiceReference<UserAdmin> ref, int type, Role role) Constructs a
| |
| getRole | back to summary |
|---|---|
| public Role getRole() Gets the
| |
| getServiceReference | back to summary |
|---|---|
| public ServiceReference Gets the
| |
| getType | back to summary |
|---|---|
| public int getType() Returns the type of this event.
The type values are
| |