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 Johnson
Event
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 the JohnsonEventSerializerFactory
.- Since:
- 6.5.0
- See Also:
-
Constructor Summary
ConstructorDescriptionLegacyJohnsonEventSerializer
(I18NBeanFactory i18NBeanFactory, BootstrapManager bootstrapManager) -
Method Summary
-
Constructor Details
-
LegacyJohnsonEventSerializer
public LegacyJohnsonEventSerializer(I18NBeanFactory i18NBeanFactory, BootstrapManager bootstrapManager)
-
-
Method Details
-
toJson
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
-