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 JohnsonEvent
s, 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, BootstrapManager bootstrapManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Json
toJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)
Converts the given JohnsonEvent
to JSON.
-
-
-
Constructor Detail
-
LegacyJohnsonEventSerializer
public LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory, BootstrapManager bootstrapManager)
-
-
Method Detail
-
toJson
public @NonNull Json toJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)
Description copied from interface:JohnsonEventSerializer
Converts the given JohnsonEvent
to JSON.- Specified by:
toJson
in interfaceJohnsonEventSerializer
- Parameters:
johnsonEvent
- the event to serialize- Returns:
- the JSON object for the event
-
-