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 JohnsonEvents 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 JsontoJson(com.atlassian.johnson.event.Event johnsonEvent)Converts the given JohnsonEventto JSON.
-
-
-
Method Detail
-
toJson
public @NonNull Json toJson(com.atlassian.johnson.event.Event johnsonEvent)
Description copied from interface:JohnsonEventSerializerConverts the given JohnsonEventto JSON.- Specified by:
toJsonin interfaceJohnsonEventSerializer- Parameters:
johnsonEvent- the event to serialize- Returns:
- the JSON object for the event
-
-