Class LegacyJohnsonEventSerializer
- java.lang.Object
-
- com.atlassian.confluence.impl.health.web.LegacyJohnsonEventSerializer
-
- All Implemented Interfaces:
JohnsonEventSerializer
@ParametersAreNonnullByDefault public class LegacyJohnsonEventSerializer extends Object implements JohnsonEventSerializer
This implementation is for old-style JohnsonEvents, 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 theJohnsonEventSerializerFactory.- Since:
- 6.5.0
- See Also:
DefaultJohnsonEventSerializer
-
-
Constructor Summary
Constructors Constructor Description LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull JsontoJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)Converts the given JohnsonEventto JSON.
-
-
-
Constructor Detail
-
LegacyJohnsonEventSerializer
public LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory)
-
-
Method Detail
-
toJson
public @NonNull Json toJson(@NonNull 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
-
-