network.events
Class  UserSwitchConfirmEvent
java.lang.Object
  |
  +--network.events.Event
        |
        +--network.events.UserSwitchAttemptEvent
              |
              +--network.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 | 
private  java.lang.String | 
result
 
            | 
 
 
 
| 
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.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 | 
 
result
private java.lang.String result
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 eventeventGenerationTime - The time at which this event was generatedagentURN - The URN of the agent that generated this eventinitiator - The user that initiated the switch attempttargetUser - The username being switched tosource - The source computer from which the switch event took placetarget - The target computer to which the switch was attemptedtype - The method by which the switch event took placeswitchResult - Determines if the switch was a success or notalertLevel - The alert level of this eventalarmLevel - The alarm level of this event
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