TRow
- Class of the Rows in the reportTColumnGroup
- Class of the column group definitionsTColumnItem
- Class of item reports within a groupTEntryReport
- Class of the stored entriespublic abstract class SecurityInspectorReport<TRow,TColumnGroup,TColumnItem,TEntryReport> extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
fillRowByResult(TRow row,
TEntryReport result) |
void |
forRow(TRow row,
Runnable runnable) |
void |
generateReport(Set<TRow> rows,
Set<TColumnItem> columns,
Set<TColumnGroup> groups) |
Comparator<TColumnItem> |
getColumnComparator() |
Set<TColumnItem> |
getColumns() |
abstract String |
getColumnTitle(TColumnItem column)
Retrieves a title for the specified column.
|
org.apache.commons.collections.map.MultiKeyMap |
getEntries() |
TEntryReport |
getEntry(TRow row,
TColumnItem column) |
protected abstract TEntryReport |
getEntryReport(TRow row,
TColumnItem item)
Retrieves an entry for the specified row and column values.
|
abstract TColumnGroup |
getGroupOfItem(TColumnItem item)
Retrieve a group for an item.
|
Set<TColumnGroup> |
getGroups() |
abstract String |
getGroupTitle(TColumnGroup group)
Retrieves a title for the specified group.
|
abstract Collection<TColumnItem> |
getItemsOfGroup(TColumnGroup group)
Retrieves items for a group.
|
String |
getReportInCSV() |
protected String[][] |
getReportInMatrix() |
abstract String |
getReportTargetName()
Get report target name (e.g.
|
abstract String |
getRowColumnHeader()
Returns display name for the row grouping cell.
|
Comparator<TRow> |
getRowComparator() |
Set<TRow> |
getRows() |
abstract String |
getRowTitle(TRow row)
Retrieves a title for the specified row.
|
abstract boolean |
isEntryReportOk(TRow row,
TColumnItem column,
TEntryReport reportEntry)
Verifies that the generated entry is correct.
|
@Nonnull public abstract String getReportTargetName()
@Nonnull public org.apache.commons.collections.map.MultiKeyMap getEntries()
@Nonnull public Set<TColumnGroup> getGroups()
@Nonnull public Set<TColumnItem> getColumns()
@CheckForNull public final TEntryReport getEntry(@Nonnull TRow row, @Nonnull TColumnItem column)
public final void generateReport(@Nonnull Set<TRow> rows, @Nonnull Set<TColumnItem> columns, @Nonnull Set<TColumnGroup> groups)
protected final void fillRowByResult(@Nonnull TRow row, TEntryReport result)
@Nonnull public Comparator<TRow> getRowComparator()
@Nonnull public Comparator<TColumnItem> getColumnComparator()
@Nonnull public abstract TColumnGroup getGroupOfItem(@Nonnull TColumnItem item)
item
- Item to be analyzednull
@Nonnull public abstract Collection<TColumnItem> getItemsOfGroup(@Nonnull TColumnGroup group)
group
- Groupnull
@Nonnull protected abstract TEntryReport getEntryReport(@Nonnull TRow row, @Nonnull TColumnItem item)
row
- Rowitem
- Column@Nonnull public abstract String getRowColumnHeader()
@Nonnull public abstract String getRowTitle(@Nonnull TRow row)
row
- Row@Nonnull public abstract String getGroupTitle(@Nonnull TColumnGroup group)
group
- Group@Nonnull public abstract String getColumnTitle(@Nonnull TColumnItem column)
column
- Columnpublic abstract boolean isEntryReportOk(@Nonnull TRow row, @Nonnull TColumnItem column, @Nonnull TEntryReport reportEntry)
row
- Rowcolumn
- ColumnreportEntry
- Generated report entrytrue
if the check passedprotected final String[][] getReportInMatrix()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getReportInCSV()
Copyright © 2016–2022. All rights reserved.