org.snmp4j.event
Class UsmUserEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.snmp4j.event.UsmUserEvent
All Implemented Interfaces:
java.io.Serializable

public class UsmUserEvent
extends java.util.EventObject

This Event is issued whenever a user of the USM is created modified or deleted.

Version:
1.0
Author:
Frank Fock
See Also:
Serialized Form

Field Summary
static int USER_ADDED
          Constant: a new user was created.
static int USER_CHANGED
          Constant: a user was changed (but not deleted).
static int USER_REMOVED
          Constant: a user was deleted.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UsmUserEvent(java.lang.Object source, UsmUserEntry changedEntry, int type)
          Construct a UsmUserEvent.
 
Method Summary
 int getType()
          Return the type of operation that triggered this event.
 UsmUserEntry getUser()
          Get the modified entry of the UsmUserTable.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USER_ADDED

public static final int USER_ADDED
Constant: a new user was created.

See Also:
Constant Field Values

USER_REMOVED

public static final int USER_REMOVED
Constant: a user was deleted.

See Also:
Constant Field Values

USER_CHANGED

public static final int USER_CHANGED
Constant: a user was changed (but not deleted).

See Also:
Constant Field Values
Constructor Detail

UsmUserEvent

public UsmUserEvent(java.lang.Object source,
                    UsmUserEntry changedEntry,
                    int type)
Construct a UsmUserEvent.

Parameters:
source - the object that emitts this event
changedEntry - the changed entry
type - can be USER_ADDED, USER_REMOVED or USER_CHANGED.
Method Detail

getUser

public UsmUserEntry getUser()
Get the modified entry of the UsmUserTable.

Returns:
the entry
  • after the modification if the user was added or modified
  • before the modification if the user was deleted

getType

public int getType()
Return the type of operation that triggered this event.

Returns:
One of USER_ADDED, USER_REMOVED or USER_CHANGED.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.