Class NodeFixReport
- java.lang.Object
-
- eu.xenit.alfresco.healthprocessor.fixer.api.NodeFixReport
-
- All Implemented Interfaces:
NodeHealthReport.PersistableData
,Serializable
public final class NodeFixReport extends Object implements NodeHealthReport.PersistableData
Attachment to aNodeHealthReport
that contains attempted fixes made on aNodeHealthReport
. Fixes attempted by anHealthFixerPlugin
result in aNodeFixReport
that contains the details about the status of the attempted fix.- Since:
- 0.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeFixReport(NodeFixStatus status, NodeHealthReport healthReport)
NodeFixReport(NodeFixStatus status, NodeHealthReport healthReport, String... messages)
NodeFixReport(NodeFixStatus status, NodeHealthReport healthReport, Collection<String> messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
NodeFixStatus
getFixStatus()
Result of this fixNodeHealthReport
getHealthReport()
Health report of the attempted fixSet<String>
getMessages()
Messages about this fixint
hashCode()
String
toString()
-
-
-
Constructor Detail
-
NodeFixReport
@OnlyForUseIn(FIXER) public NodeFixReport(@Nonnull NodeFixStatus status, @Nonnull NodeHealthReport healthReport)
-
NodeFixReport
@OnlyForUseIn(FIXER) public NodeFixReport(@Nonnull NodeFixStatus status, @Nonnull NodeHealthReport healthReport, String... messages)
-
NodeFixReport
@OnlyForUseIn(FIXER) public NodeFixReport(@Nonnull NodeFixStatus status, @Nonnull NodeHealthReport healthReport, Collection<String> messages)
-
-
Method Detail
-
getFixStatus
public NodeFixStatus getFixStatus()
Result of this fix
-
getHealthReport
@OnlyForUseIn(FIXER) public NodeHealthReport getHealthReport()
Health report of the attempted fix- Implementation note:
- This field is transient, so it is not serialized, to avoid a circular reference.
This means this link will not be available after the HealthReportsStore has stored a
NodeHealthReport
. It is only used to be able to link aNodeFixReport
returned fromHealthFixerPlugin.fix(Class, Set)
to its correspondingNodeHealthReport
in HealthProcessor internals. The HealthProcessor fixers component will link it viaNodeHealthReport.data()
, so we have no need for this backlink afterwards.
-
-