Class ChannelJsonConverter

java.lang.Object
org.flowable.eventregistry.json.converter.ChannelJsonConverter

public class ChannelJsonConverter extends Object
Author:
Tijs Rademakers
  • Field Details

    • objectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • validators

      protected List<ChannelValidator> validators
    • channelModelClasses

      protected Map<String,Class<? extends ChannelModel>> channelModelClasses
  • Constructor Details

    • ChannelJsonConverter

      public ChannelJsonConverter()
    • ChannelJsonConverter

      public ChannelJsonConverter(Collection<ChannelValidator> validators)
  • Method Details

    • addDefaultChannelModelClasses

      protected void addDefaultChannelModelClasses()
    • convertToChannelModel

      public ChannelModel convertToChannelModel(String modelJson)
    • determineChannelModelClass

      protected Class<? extends ChannelModel> determineChannelModelClass(com.fasterxml.jackson.databind.JsonNode channelNode)
    • validateChannel

      protected void validateChannel(ChannelModel channelModel)
    • convertToJson

      public String convertToJson(ChannelModel definition)
    • getValidators

      public List<ChannelValidator> getValidators()
    • addValidator

      public void addValidator(ChannelValidator validator)
    • setValidators

      public void setValidators(List<ChannelValidator> validators)
    • getChannelModelClasses

      public Map<String,Class<? extends ChannelModel>> getChannelModelClasses()
    • addOutboundChannelModelClass

      public void addOutboundChannelModelClass(String type, Class<? extends OutboundChannelModel> channelModelClass)
    • addInboundChannelModelClass

      public void addInboundChannelModelClass(String type, Class<? extends InboundChannelModel> channelModelClass)
    • setChannelModelClasses

      public void setChannelModelClasses(Map<String,Class<? extends ChannelModel>> channelModelClasses)