@ParametersAreNonnullByDefault public class DefaultJohnsonEventSerializer extends Object implements JohnsonEventSerializer
Event
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 the LegacyJohnsonEventSerializer
.LegacyJohnsonEventSerializer
Constructor and Description |
---|
DefaultJohnsonEventSerializer() |
Modifier and Type | Method and Description |
---|---|
@NonNull Json |
toJson(com.atlassian.johnson.event.Event johnsonEvent)
Converts the given Johnson
Event to JSON. |
public @NonNull Json toJson(com.atlassian.johnson.event.Event johnsonEvent)
JohnsonEventSerializer
Event
to JSON.toJson
in interface JohnsonEventSerializer
johnsonEvent
- the event to serializeCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences