Class DefaultJohnsonEventSerializer
- java.lang.Object
-
- com.atlassian.confluence.impl.health.web.DefaultJohnsonEventSerializer
-
- All Implemented Interfaces:
JohnsonEventSerializer
@ParametersAreNonnullByDefault public class DefaultJohnsonEventSerializer extends Object implements JohnsonEventSerializer
This implementation is for JohnsonEvent
s that have the additional attributes necessary for display on the new Johnson page layout introduced in Confluence 6.5. Legacy events (i.e. without these attributes) should instead be serialized by theLegacyJohnsonEventSerializer
.- Since:
- 6.5.0
- See Also:
LegacyJohnsonEventSerializer
-
-
Constructor Summary
Constructors Constructor Description DefaultJohnsonEventSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Json
toJson(com.atlassian.johnson.event.Event johnsonEvent)
Converts the given JohnsonEvent
to JSON.
-
-
-
Method Detail
-
toJson
public @NonNull Json toJson(com.atlassian.johnson.event.Event johnsonEvent)
Description copied from interface:JohnsonEventSerializer
Converts the given JohnsonEvent
to JSON.- Specified by:
toJson
in interfaceJohnsonEventSerializer
- Parameters:
johnsonEvent
- the event to serialize- Returns:
- the JSON object for the event
-
-