|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.useradmin.UserAdminEvent
public class UserAdminEvent
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
Field Summary | |
---|---|
static int |
ROLE_CHANGED
A Role object has been modified. |
static int |
ROLE_CREATED
A Role object has been created. |
static int |
ROLE_REMOVED
A Role object has been removed. |
Constructor Summary | |
---|---|
UserAdminEvent(ServiceReference ref,
int type,
Role role)
Constructs a UserAdminEvent object from the given
ServiceReference object, event type, and Role
object. |
Method Summary | |
---|---|
Role |
getRole()
Gets the Role object this event was generated for. |
ServiceReference |
getServiceReference()
Gets the ServiceReference object of the User Admin service
that generated this event. |
int |
getType()
Returns the type of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROLE_CREATED
Role
object has been created.
The value of ROLE_CREATED
is 0x00000001.
public static final int ROLE_CHANGED
Role
object has been modified.
The value of ROLE_CHANGED
is 0x00000002.
public static final int ROLE_REMOVED
Role
object has been removed.
The value of ROLE_REMOVED
is 0x00000004.
Constructor Detail |
---|
public UserAdminEvent(ServiceReference ref, int type, Role role)
UserAdminEvent
object from the given
ServiceReference
object, event type, and Role
object.
ref
- The ServiceReference
object of the User Admin
service that generated this event.type
- The event type.role
- The Role
object on which this event occurred.Method Detail |
---|
public ServiceReference getServiceReference()
ServiceReference
object of the User Admin service
that generated this event.
ServiceReference
object.public int getType()
The type values are ROLE_CREATED
type, ROLE_CHANGED
type, and ROLE_REMOVED
type.
public Role getRole()
Role
object this event was generated for.
Role
object this event was generated for.
|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |