network.events
Class UserSwitchConfirmEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.UserSwitchAttemptEvent
          extended bynetwork.events.UserSwitchConfirmEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RemoteUserSwitchEvent, UserSwitchToRootEvent

public class UserSwitchConfirmEvent
extends UserSwitchAttemptEvent

This event is generated when a user has succeeded in logging in as another user

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
UserSwitchConfirmEvent(java.lang.String eventName, long eventGenerationTime, ajanta.naming.URN agentURN, java.lang.String initiator, java.lang.String targetUser, java.lang.String source, java.lang.String target, java.lang.String type, java.lang.String switchResult, int alertLevel, int alarmLevel)
           
 
Method Summary
 java.lang.String getColumnNames()
          Returns the SQL column names for this event.
 java.lang.String getFieldNames()
          Returns the SQL field names.
 java.lang.String getFieldValues()
          Returns the list of field values for this event.
 java.lang.String getResult()
          Returns the result of the user switch attempt
 java.lang.String toString()
          Returns a string representation of this object
 
Methods inherited from class network.events.UserSwitchAttemptEvent
getInitiatingUser, getLoginType, getSourceHost, getSwitchedUser, getTargetHost
 
Methods inherited from class network.events.Event
createSQL, getAgentURN, getAlarmLevel, getAlertLevel, getDomainName, getEventDeliverTryNumber, getEventGenerationTime, getEventID, getEventLocation, getID, getINTMonth, getMyClass, getName, getSQLTime, getSQLTime, setAlarmLevel, setAlertLevel, setDomainName, setEventID, setPriority, toSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserSwitchConfirmEvent

public UserSwitchConfirmEvent(java.lang.String eventName,
                              long eventGenerationTime,
                              ajanta.naming.URN agentURN,
                              java.lang.String initiator,
                              java.lang.String targetUser,
                              java.lang.String source,
                              java.lang.String target,
                              java.lang.String type,
                              java.lang.String switchResult,
                              int alertLevel,
                              int alarmLevel)
Parameters:
eventName - The name of this event
eventGenerationTime - The time at which this event was generated
agentURN - The URN of the agent that generated this event
initiator - The user that initiated the switch attempt
targetUser - The username being switched to
source - The source computer from which the switch event took place
target - The target computer to which the switch was attempted
type - The method by which the switch event took place
switchResult - Determines if the switch was a success or not
alertLevel - The alert level of this event
alarmLevel - The alarm level of this event
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class UserSwitchAttemptEvent
Returns:
A string representation of this object

getResult

public java.lang.String getResult()
Returns the result of the user switch attempt

Returns:
A string containing the result of the user switch attempt

getColumnNames

public java.lang.String getColumnNames()
Returns the SQL column names for this event. This is used to place this event into a database table

Overrides:
getColumnNames in class UserSwitchAttemptEvent
Returns:
A string containing the comma seperated list of column names and SQL data types

getFieldNames

public java.lang.String getFieldNames()
Returns the SQL field names. This is used to place this event into a database table

Overrides:
getFieldNames in class UserSwitchAttemptEvent
Returns:
A string containing a comma separated list of the field names for this event

getFieldValues

public java.lang.String getFieldValues()
Returns the list of field values for this event. The field values will match the order of the output of the getFieldNames and getColumnNames methods

Overrides:
getFieldValues in class UserSwitchAttemptEvent
Returns:
A String containing a comma seperated list of field values