Class DefaultJohnsonEventSerializer
java.lang.Object
com.atlassian.confluence.impl.health.web.DefaultJohnsonEventSerializer
- All Implemented Interfaces:
JohnsonEventSerializer
@ParametersAreNonnullByDefault
public class DefaultJohnsonEventSerializer
extends Object
implements JohnsonEventSerializer
This implementation is for Johnson
Events that have the additional attributes necessary for display on the
new Johnson page layout introduced in Confluence 6.5. Legacy events (i.e. without these attributes) should instead be
serialized by the LegacyJohnsonEventSerializer.- Since:
- 6.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultJohnsonEventSerializer
public DefaultJohnsonEventSerializer()
-
-
Method Details
-
toJson
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
-