Interface PurgeReporting<T>
- All Known Implementing Classes:
CachePurgeReport
,DatabasePurgeReport
public interface PurgeReporting<T>
Represents an interface for the purge reporting.
Contains all information of the data which is deleted during the purge.
- Author:
- Christopher Zell <christopher.zell@camunda.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPurgeInformation
(String key, T value) Adds the key value pair as report information to the current purge report.boolean
containsReport
(String key) Returns true if the key is present in the current report.Returns the current purge report.Transforms and returns the purge report to a string.getReportValue
(String key) Returns the value for the given key.boolean
isEmpty()
Returns true if the report is empty.
-
Method Details
-
addPurgeInformation
Adds the key value pair as report information to the current purge report.- Parameters:
key
- the report keyvalue
- the report value
-
getPurgeReport
Returns the current purge report.- Returns:
- the purge report
-
getPurgeReportAsString
String getPurgeReportAsString()Transforms and returns the purge report to a string.- Returns:
- the purge report as string
-
getReportValue
Returns the value for the given key.- Parameters:
key
- the key which exist in the current report- Returns:
- the corresponding value
-
containsReport
Returns true if the key is present in the current report.- Parameters:
key
- the key- Returns:
- true if the key is present
-
isEmpty
boolean isEmpty()Returns true if the report is empty.- Returns:
- true if the report is empty, false otherwise
-