@ParametersAreNonnullByDefault public class JohnsonEventCollectionSerializer extends Object
Event
s of either legacy (pre CPU-59) or improved style events
to a JSON Array needed to render the improved Johnson page.Constructor and Description |
---|
JohnsonEventCollectionSerializer(String contextPath) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonArray |
toJSON(Iterable<com.atlassian.johnson.event.Event> events)
Takes an iterable of Johnson
Event s and serializes them vai JohnsonEventSerializerFactory
The resulting JSONArray consists of Event serialized by one of the following serializers:
- InteractiveJohnsonEventSerializer as of CPU-59
- LegacyJohnsonEventSerializer for pre CPU-59 Johnson Events |
public JohnsonEventCollectionSerializer(String contextPath)
@Nonnull public com.google.gson.JsonArray toJSON(Iterable<com.atlassian.johnson.event.Event> events)
Event
s and serializes them vai JohnsonEventSerializerFactory
The resulting JSONArray consists of Event
serialized by one of the following serializers:
- InteractiveJohnsonEventSerializer
as of CPU-59
- LegacyJohnsonEventSerializer
for pre CPU-59 Johnson EventsCopyright © 2002-2021 Atlassian. All Rights Reserved.