network.events
Class SUEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.SyslogEvent
          extended bynetwork.events.SUEvent
All Implemented Interfaces:
java.io.Serializable

public class SUEvent
extends SyslogEvent

SUEvent indicates that a user has attempted to switch users using su.

See Also:
Serialized Form

Field Summary
protected  java.lang.String initiatingUser
           
protected  java.lang.String suStatus
           
protected  java.lang.String targetUser
           
 
Fields inherited from class network.events.SyslogEvent
eventString
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
SUEvent(java.lang.String eventName, long eventGenerationTime, ajanta.naming.URN agentURN, java.lang.String eventTime, java.lang.String eventString, java.lang.String initiatingUser, java.lang.String targetUser, java.lang.String status, int alertLevel, int alarmLevel)
           
 
Method Summary
 java.lang.String getColumnNames()
          Returns a list of column names for use in SQL statements
 java.lang.String getFieldNames()
          Returns a list of field names for use in SQL statements
 java.lang.String getFieldValues()
          Returns a list of field values for use in SQL statements
 java.lang.String getInitiatingUser()
          Returns the user that typed the su command
 java.lang.String getSUStatus()
          Gives the result of the su command
 java.lang.String getTargetUser()
          Returns the user that the su command tried to switch to
 void setInitiatingUser(java.lang.String user)
          Sets the user that initiated the su command
 void setSUStatus(java.lang.String status)
          Sets whether the su command succeeded or not
 void setTargetUser(java.lang.String user)
          Set the user that the su command tried to switch to
 java.lang.String toString()
          Returns a string representation of this object
 
Methods inherited from class network.events.SyslogEvent
getEventString, getEventTime, getSQLEventString
 
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
 

Field Detail

initiatingUser

protected java.lang.String initiatingUser

targetUser

protected java.lang.String targetUser

suStatus

protected java.lang.String suStatus
Constructor Detail

SUEvent

public SUEvent(java.lang.String eventName,
               long eventGenerationTime,
               ajanta.naming.URN agentURN,
               java.lang.String eventTime,
               java.lang.String eventString,
               java.lang.String initiatingUser,
               java.lang.String targetUser,
               java.lang.String status,
               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 reporting this event
eventTime - The time recorded in the syslog line pertaining to this SUEvent
eventString - The syslog line corresponding to this SUEvent
initiatingUser - The user that typed the su command
targetUser - The user that initiatingUser was trying to switch to
status - Determines if the su command succeeded
alertLevel - The alert level of this event
alarmLevel - The alarm level of this event
Method Detail

setSUStatus

public void setSUStatus(java.lang.String status)
Sets whether the su command succeeded or not

Parameters:
status - A string determining whether the su command succeeded or not

getSUStatus

public java.lang.String getSUStatus()
Gives the result of the su command

Returns:
Returns a string used to determine if the su command succeeded or not

setInitiatingUser

public void setInitiatingUser(java.lang.String user)
Sets the user that initiated the su command

Parameters:
user - A string containing a username

setTargetUser

public void setTargetUser(java.lang.String user)
Set the user that the su command tried to switch to

Parameters:
user - A string containing a username

getInitiatingUser

public java.lang.String getInitiatingUser()
Returns the user that typed the su command

Returns:
A string containing a username

getTargetUser

public java.lang.String getTargetUser()
Returns the user that the su command tried to switch to

Returns:
A string containing a username

toString

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

Overrides:
toString in class SyslogEvent
Returns:
A string containing a representation of this object

getColumnNames

public java.lang.String getColumnNames()
Returns a list of column names for use in SQL statements

Overrides:
getColumnNames in class SyslogEvent
Returns:
A comma seperated list of column names and SQL data types

getFieldNames

public java.lang.String getFieldNames()
Returns a list of field names for use in SQL statements

Overrides:
getFieldNames in class SyslogEvent
Returns:
A comma separated list of field names

getFieldValues

public java.lang.String getFieldValues()
Returns a list of field values for use in SQL statements

Overrides:
getFieldValues in class SyslogEvent
Returns:
A comma seperated list of values for this event