@ParametersAreNonnullByDefault public class LegacyJohnsonEventSerializer extends Object implements JohnsonEventSerializer
Events, i.e. that do not have the attributes required by the
new Johnson UI introduced in Confluence 6.5. Once all Johnson events raised by Confluence contain these attributes,
we can delete this class and the JohnsonEventSerializerFactory.DefaultJohnsonEventSerializer| Constructor and Description |
|---|
LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull Json |
toJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)
Converts the given Johnson
Event to JSON. |
public LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory)
public @NonNull Json toJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)
JohnsonEventSerializerEvent to JSON.toJson in interface JohnsonEventSerializerjohnsonEvent - the event to serializeCopyright © 2003–2022 Atlassian. All rights reserved.