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 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.
Since:
6.5.0
See Also:
  • Constructor Details

  • Method Details

    • toJson

      public @NonNull Json toJson(@NonNull com.atlassian.johnson.event.Event johnsonEvent)
      Description copied from interface: JohnsonEventSerializer
      Converts the given Johnson Event to JSON.
      Specified by:
      toJson in interface JohnsonEventSerializer
      Parameters:
      johnsonEvent - the event to serialize
      Returns:
      the JSON object for the event