public class SeverityColumn extends Metric implements AuditModelListener
AuditModelListeners as listeners to the
AuditModel.
This column, and AuditModel in general, formerly represented severity
using Severity until 12.1.2. They
now represent severity as Severity. This
change was largely transparent to clients, with a significant exception:
the case of the strings returned by toString differs and Audit's
reporting code directly relied on toString to produce the text representation
of values. Introducing Metric.representation(java.lang.Object) and overriding it here
prevented the change from propagating into reports.comparator, threshold, type| Constructor and Description |
|---|
SeverityColumn() |
| Modifier and Type | Method and Description |
|---|---|
void |
appliedTransformsChanged(AuditModel model,
java.lang.Object row,
java.util.List<Transform> appliedTransforms)
Reports that the transforms applied to this model have changed.
|
void |
auditStarted(AuditModel model,
java.util.List<Metric> columns,
java.util.List<Location> locations,
java.lang.Object root,
java.lang.Class type)
Reports that an audit has started on this model.
|
void |
auditStopped(AuditModel model,
boolean cancelled)
Reports that an audit has stopped on this model.
|
java.util.Comparator<java.lang.Object> |
comparator()
Gets a comparator for values of this attribute, or null if the values
are not comparable.
|
void |
countChanged(AuditModel model,
java.lang.Object row,
AuditModel.Count count,
int oldValue,
int newValue)
Reports that a count of a row changed in a model.
|
void |
modelResorted(AuditModel model)
Reports that the model has been resorted.
|
java.lang.String |
representation(java.lang.Object value)
Gets the localized text representation of a value of this metric.
|
void |
rowsHidden(AuditModel model,
java.util.List<?> rows,
java.lang.Object visibleParent,
int visibleIndex)
Reports that rows were shown in a model.
|
void |
rowsInserted(AuditModel model,
java.util.List<?> rows,
java.lang.Object parent,
int index)
Reports that rows were inserted into a model.
|
void |
rowsRemoved(AuditModel model,
java.util.List<?> rows,
java.lang.Object parent,
int index)
Reports that rows were removed from a model.
|
void |
rowsRestructureBegin(AuditModel model,
java.lang.Object parent,
java.lang.Object visibleParent)
Reports that a restructure of the descendants of a row has begun.
|
void |
rowsRestructureEnd(AuditModel model,
java.lang.Object parent,
java.lang.Object visibleParent)
Reports that a restructure of the descendants of a row has ended.
|
void |
rowsShown(AuditModel model,
java.util.List<?> rows,
java.lang.Object visibleParent,
int visibleIndex)
Reports that rows were shown in a model.
|
void |
valueChanged(AuditModel model,
java.lang.Object row,
int column,
java.lang.Object oldValue,
java.lang.Object newValue)
Reports that a column value of a row changed in a model.
|
category, copyInternalState, definition, getThreshold, getType, isEnabled, isOutOfBand, setEnabled, setThreshold, shortLabel, toStringaddPropertyChangeListener, addPropertyChangeListener, createCopy, description, equals, extensionId, extensionLine, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, formattedString, formattedString, formattedString, hashCode, id, label, logError, logError, logWarning, name, propertyDescription, propertyLabel, removePropertyChangeListener, removePropertyChangeListener, setters, stringpublic java.util.Comparator<java.lang.Object> comparator()
MetricMetric implementation returns a
default comparator if the attribute type is naturally ordered (i.e.,
implements Comparable) and returns null otherwise.comparator in class Metricpublic java.lang.String representation(java.lang.Object value)
MetricMetric implementation returns the value.toString()
if the value is not null, or null otherwise. Note that the typical toString() implementation does not return a localized representation.representation in class Metricpublic void auditStarted(AuditModel model, java.util.List<Metric> columns, java.util.List<Location> locations, java.lang.Object root, java.lang.Class type)
AuditModelListenerauditStarted in interface AuditModelListenermodel - the affected model.columns - the columns.locations - the locations specified.root - the root.public void auditStopped(AuditModel model, boolean cancelled)
AuditModelListenerauditStopped in interface AuditModelListenermodel - the affected model.cancelled - whether the audit was cancelled.public void rowsInserted(AuditModel model, java.util.List<?> rows, java.lang.Object parent, int index)
AuditModelListenerThe inserted row is childless and not visible.
The model invokes AuditModelListener.rowsShown(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int) immediately after this method for any
of the rows that are visible.
The model propagates visibility or count changes to the parent row and its
ancestors as described in the class comment.
rowsInserted in interface AuditModelListenermodel - The changed model.rows - The shown rows, adjacent if more than one.parent - The parent of the row.index - The index of the shown rows in the parent.public void rowsRemoved(AuditModel model, java.util.List<?> rows, java.lang.Object parent, int index)
AuditModelListenerAuditModelListener.rowsHidden(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int) immediately before this method
for any of the rows that were visible.
The model propagates visibility or count changes to the parent row and its
ancestors as described in the class comment.
rowsRemoved in interface AuditModelListenermodel - The changed model.rows - The removed rows, adjacent if more than one.parent - The parent of the removed rows.index - The index of the removed rows in the parent.public void rowsShown(AuditModel model, java.util.List<?> rows, java.lang.Object visibleParent, int visibleIndex)
AuditModelListenerAuditModelListener.countChanged(oracle.jdeveloper.audit.service.AuditModel, java.lang.Object, oracle.jdeveloper.audit.service.AuditModel.Count, int, int) immediately after this method for each changed count
of the parent row.
The model propagates visibility or count changes to the parent row and its
ancestors as described in the class comment.
rowsShown in interface AuditModelListenermodel - The changed model.rows - The shown rows, adjacent if more than one.visibleParent - The visible parent row of the shown rows.visibleIndex - The visible index of the shown rows in the visible parent.public void rowsHidden(AuditModel model, java.util.List<?> rows, java.lang.Object visibleParent, int visibleIndex)
AuditModelListenerAuditModelListener.countChanged(oracle.jdeveloper.audit.service.AuditModel, java.lang.Object, oracle.jdeveloper.audit.service.AuditModel.Count, int, int) immediately after this method for each changed count
of the parent row.
The model propagates visibility or count changes to the parent row and its
ancestors as described in the class comment.
rowsHidden in interface AuditModelListenermodel - The changed model.rows - The hidden rows, adjacent if more than one.visibleParent - The visible parent row of the hidden rows.visibleIndex - The visible index of the hidden rows in the visible parent.public void rowsRestructureBegin(AuditModel model, java.lang.Object parent, java.lang.Object visibleParent)
AuditModelListenerrowsRestructureBegin in interface AuditModelListenermodel - The changed model.parent - The parent of the restructured rows.visibleParent - The visible parent row of the restructured rows.public void rowsRestructureEnd(AuditModel model, java.lang.Object parent, java.lang.Object visibleParent)
AuditModelListenerrowsRestructureEnd in interface AuditModelListenermodel - The changed model.parent - The parent of the restructured rows.visibleParent - The visible parent row of the restructured rows.public void countChanged(AuditModel model, java.lang.Object row, AuditModel.Count count, int oldValue, int newValue)
AuditModelListener
The model propagates visibility or count changes to the parent row and its
ancestors as described in the class comment.
countChanged in interface AuditModelListenermodel - The changed model.row - The changed row in the model.count - The count that change.oldValue - The old value of the count.newValue - The new value of the count.public void valueChanged(AuditModel model, java.lang.Object row, int column, java.lang.Object oldValue, java.lang.Object newValue)
AuditModelListenerAuditModelListener.rowsHidden(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int), AuditModelListener.rowsRemoved(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int), AuditModelListener.rowsInserted(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int),
and AuditModelListener.rowsShown(oracle.jdeveloper.audit.service.AuditModel, java.util.List<?>, java.lang.Object, int) as needed.valueChanged in interface AuditModelListenermodel - The changed model.row - The changed row in the model.column - The column index of the changed value.oldValue - The old value.newValue - The new value.public void modelResorted(AuditModel model)
AuditModelListenermodelResorted in interface AuditModelListenermodel - The resorted model.public void appliedTransformsChanged(AuditModel model, java.lang.Object row, java.util.List<Transform> appliedTransforms)
AuditModelListenerappliedTransformsChanged in interface AuditModelListenermodel - The changed model.row - The row in the model just restructured.appliedTransforms - The transforms applied to the row.