public class IndexFinding extends DetachedFinding
DetachedFinding
with additional attributes required for index-based
analysis.Modifier and Type | Field and Description |
---|---|
static long |
NO_TIMESTAMP
Value for
analysisTimestamp that indicates that there is no
timestamp available. |
static java.util.Comparator<IndexFinding> |
STABLE_INDEX_FINDING_COMPARATOR
A comparator for stable sorting of
IndexFinding s. |
static java.lang.String |
TYPE_ID_SEPARATOR
The separator for components of a finding type ID.
|
CATEGORY_NAME_PROPERTY, GROUP_NAME_PROPERTY, LOCATION_PROPERTY, MESSAGE_PROPERTY
Constructor and Description |
---|
IndexFinding(DetachedFinding finding,
long analysisTimestamp)
Constructor.
|
IndexFinding(DetachedFinding finding,
long analysisTimestamp,
java.lang.String typeId) |
IndexFinding(IndexFinding other)
Copy constructor.
|
IndexFinding(java.lang.String groupName,
java.lang.String categoryName,
java.lang.String message,
ElementLocation location) |
Modifier and Type | Method and Description |
---|---|
static IndexFinding |
asRealtimeFinding(DetachedFinding finding)
Creates a
IndexFinding from a DetachedFinding . |
long |
getAnalysisTimestamp()
Returns the analysis timestamp.
|
java.lang.String |
getTypeId()
Returns the type id of this finding.
|
boolean |
isRealTime()
Checks whether the finding is updated in real-time.
|
static java.lang.String |
makeFindingTypeId(java.lang.String category,
java.lang.String group)
Creates a finding type ID for given category and group.
|
void |
setAnalysisTimestamp(long timestamp)
Sets the analysis timestamp.
|
addSecondaryLocation, addSecondaryLocations, addSiblingFinding, addSiblingFindings, addSiblingLocation, addSiblingLocations, getAssessment, getCategoryName, getGroupName, getLocation, getLocationString, getMessage, getProperties, getSecondaryLocations, getSiblingLocations, getStatementPath, hasSiblings, removeMatchingSiblingLocations, setAssessment, setCategoryName, setGroupName, setLocation, setMessage, setProperty, setStatementPath, toString
public static final java.util.Comparator<IndexFinding> STABLE_INDEX_FINDING_COMPARATOR
IndexFinding
s.public static final long NO_TIMESTAMP
analysisTimestamp
that indicates that there is no
timestamp available.public static final java.lang.String TYPE_ID_SEPARATOR
public IndexFinding(DetachedFinding finding, long analysisTimestamp)
public IndexFinding(DetachedFinding finding, long analysisTimestamp, java.lang.String typeId)
public IndexFinding(java.lang.String groupName, java.lang.String categoryName, java.lang.String message, ElementLocation location)
public IndexFinding(IndexFinding other)
public static IndexFinding asRealtimeFinding(DetachedFinding finding)
IndexFinding
from a DetachedFinding
.public static java.lang.String makeFindingTypeId(java.lang.String category, java.lang.String group)
public long getAnalysisTimestamp()
NO_TIMESTAMP
to indicate
that no analysis timestamp is available.public void setAnalysisTimestamp(long timestamp)
public java.lang.String getTypeId()
public boolean isRealTime()
true
if the finding is updated in real-time,
false
if it is updated in 'nightly' analyses.