org.opennms.web.vulnerability
Class Vulnerability

java.lang.Object
  extended by org.opennms.web.vulnerability.Vulnerability

public class Vulnerability
extends Object

A JavaBean implementation to hold information about a security vulnerability as defined by OpenNMS.

Since:
1.8.1
Version:
$Id: $
Author:
Lawrence Karnowski , OpenNMS , Lawrence Karnowski , OpenNMS

Field Summary
protected  Date createTime
          Creation time of event in database, cannot be null
protected  String cveEntry
           
protected  String description
          Free-form textual description of the event
protected  int id
          Unique identifier for the event, cannot be null
protected  String ipAddr
          IP Address of node's interface
protected  Date lastAttemptTime
          Last time the vulnerability scan was attempted, cannot be null
protected  Date lastScanTime
          Last time the vulnerability was scanned, cannot be null
protected  String logMessage
          Formatted display text to control how the event will appear in the browser.
protected  Integer nodeId
          Unique integer identifier for node, can be null
protected  String nodeLabel
          The human-readable name of the node of this event.
protected  int pluginId
          Unique integer identifier of the plugin that generated this vulnerability.
protected  int pluginSubId
          Specific vulnerability type generated by the plugin.
protected  Integer port
          Port that the vulnerability affects.
protected  String protocol
          Network protocol of the attack (TCP, UDP, ICMP)
protected  Date resolvedTime
          Time the vulnerability was resolved, can be null
protected  Integer serviceId
          Unique integer identifier of service/poller package, can be null
protected  String serviceName
          Human-readable name of the service
protected  OnmsSeverity severity
          The Severity of event.
 
Constructor Summary
protected Vulnerability()
          Only the VulnerabilityFactory should instantiate this object.
 
Method Summary
 Date getCreateTime()
          Getter for the field createTime.
 String getCveEntry()
          can be null
 String getDescription()
          Getter for the field description.
 int getId()
          Getter for the field id.
 String getIpAddress()
          can be null
 Date getLastAttemptTime()
          Getter for the field lastAttemptTime.
 Date getLastScanTime()
          Getter for the field lastScanTime.
 String getLogMessage()
          Getter for the field logMessage.
 Integer getNodeId()
          can be null
 String getNodeLabel()
          can be null
 int getPluginId()
          Getter for the field pluginId.
 int getPluginSubId()
          Getter for the field pluginSubId.
 Integer getPort()
          can be null
 String getProtocol()
          can be null
 Date getResolvedTime()
          can be null
 Integer getServiceId()
          Can be null
 String getServiceName()
          Getter for the field serviceName.
 OnmsSeverity getSeverity()
          Getter for the field severity.
 boolean isResolved()
          isResolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id
Unique identifier for the event, cannot be null


nodeId

protected Integer nodeId
Unique integer identifier for node, can be null


ipAddr

protected String ipAddr
IP Address of node's interface


serviceId

protected Integer serviceId
Unique integer identifier of service/poller package, can be null


serviceName

protected String serviceName
Human-readable name of the service


createTime

protected Date createTime
Creation time of event in database, cannot be null


lastAttemptTime

protected Date lastAttemptTime
Last time the vulnerability scan was attempted, cannot be null


lastScanTime

protected Date lastScanTime
Last time the vulnerability was scanned, cannot be null


resolvedTime

protected Date resolvedTime
Time the vulnerability was resolved, can be null


description

protected String description
Free-form textual description of the event


logMessage

protected String logMessage
Formatted display text to control how the event will appear in the browser. This field may contain variables that are populated by field values of the message.


severity

protected OnmsSeverity severity
The Severity of event.
 
   1  = Indeterminate
   2 = Cleared (unimplemented at this time)
   3 = Warning
   4 = Minor
   5 = Major
   6 = Critical
  
 


nodeLabel

protected String nodeLabel
The human-readable name of the node of this event. Can be null.


pluginId

protected int pluginId
Unique integer identifier of the plugin that generated this vulnerability.


pluginSubId

protected int pluginSubId
Specific vulnerability type generated by the plugin.


port

protected Integer port
Port that the vulnerability affects.


protocol

protected String protocol
Network protocol of the attack (TCP, UDP, ICMP)


cveEntry

protected String cveEntry
Constructor Detail

Vulnerability

protected Vulnerability()
Only the VulnerabilityFactory should instantiate this object.

Method Detail

getId

public int getId()

Getter for the field id.

Returns:
a int.

getCreateTime

public Date getCreateTime()

Getter for the field createTime.

Returns:
a Date object.

getLastAttemptTime

public Date getLastAttemptTime()

Getter for the field lastAttemptTime.

Returns:
a Date object.

getLastScanTime

public Date getLastScanTime()

Getter for the field lastScanTime.

Returns:
a Date object.

getResolvedTime

public Date getResolvedTime()
can be null

Returns:
a Date object.

isResolved

public boolean isResolved()

isResolved

Returns:
a boolean.

getSeverity

public OnmsSeverity getSeverity()

Getter for the field severity.

Returns:
a OnmsSeverity object.

getNodeId

public Integer getNodeId()
can be null

Returns:
a Integer object.

getNodeLabel

public String getNodeLabel()
can be null

Returns:
a String object.

getIpAddress

public String getIpAddress()
can be null

Returns:
a String object.

getServiceId

public Integer getServiceId()
Can be null

Returns:
a Integer object.

getServiceName

public String getServiceName()

Getter for the field serviceName.

Returns:
a String object.

getDescription

public String getDescription()

Getter for the field description.

Returns:
a String object.

getLogMessage

public String getLogMessage()

Getter for the field logMessage.

Returns:
a String object.

getPluginId

public int getPluginId()

Getter for the field pluginId.

Returns:
a int.

getPluginSubId

public int getPluginSubId()

Getter for the field pluginSubId.

Returns:
a int.

getPort

public Integer getPort()
can be null

Returns:
a Integer object.

getProtocol

public String getProtocol()
can be null

Returns:
a String object.

getCveEntry

public String getCveEntry()
can be null

Returns:
a String object.


Copyright © 2011. All Rights Reserved.