org.wso2.carbon.event.builder.admin.internal.util
Class DtoConverter

java.lang.Object
  extended by org.wso2.carbon.event.builder.admin.internal.util.DtoConverter
Direct Known Subclasses:
GenericDtoConverter, JsonDtoConverter, MapDtoConverter, TextDtoConverter, Wso2EventDtoConverter, XmlDtoConverter

public abstract class DtoConverter
extends Object


Constructor Summary
DtoConverter()
           
 
Method Summary
abstract  EventBuilderConfigurationDto fromEventBuilderConfiguration(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
          Returns an EventBuilderConfigurationDto for the passed in EventBuilderConfiguration
 EventBuilderConfigurationInfoDto getEventBuilderConfigurationInfoDto(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
           
protected  EventBuilderMessagePropertyDto[] getEventBuilderMessageProperties(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
           
 EventBuilderMessagePropertyDto[] getEventBuilderPropertiesFrom(org.wso2.carbon.event.input.adaptor.core.message.MessageDto messageDto, org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
          Returns MessageDto properties of the input event adaptor of the passed in event builder as an array of EventBuilderMessagePropertyDto
protected  void setCommonPropertiesToEventBuilderConfig(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration, org.wso2.carbon.event.input.adaptor.core.message.config.InputEventAdaptorMessageConfiguration inputEventAdaptorMessageConfiguration, String eventBuilderName, String streamNameWithVersion, String eventAdaptorName, String eventAdaptorType, boolean mappingEnabled, org.wso2.carbon.event.builder.core.config.InputMapping inputMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DtoConverter

public DtoConverter()
Method Detail

getEventBuilderPropertiesFrom

public EventBuilderMessagePropertyDto[] getEventBuilderPropertiesFrom(org.wso2.carbon.event.input.adaptor.core.message.MessageDto messageDto,
                                                                      org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
Returns MessageDto properties of the input event adaptor of the passed in event builder as an array of EventBuilderMessagePropertyDto

Parameters:
messageDto - the message dto to be used for extracting the properties needed
eventBuilderConfiguration - the event builder configuration which will be used to extract information about the InputEventAdaptorConfiguration
Returns:
an array of EventBuilderMessagePropertyDto

fromEventBuilderConfiguration

public abstract EventBuilderConfigurationDto fromEventBuilderConfiguration(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
                                                                    throws EventBuilderAdminServiceException
Returns an EventBuilderConfigurationDto for the passed in EventBuilderConfiguration

Parameters:
eventBuilderConfiguration - the event builder configuration that needs to be converted to a DTO
Returns:
an EventBuilderConfigurationDto instance that matches the passed in EventBuilderConfiguration
Throws:
EventBuilderAdminServiceException

getEventBuilderConfigurationInfoDto

public EventBuilderConfigurationInfoDto getEventBuilderConfigurationInfoDto(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)
                                                                     throws EventBuilderAdminServiceException
Throws:
EventBuilderAdminServiceException

setCommonPropertiesToEventBuilderConfig

protected void setCommonPropertiesToEventBuilderConfig(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration,
                                                       org.wso2.carbon.event.input.adaptor.core.message.config.InputEventAdaptorMessageConfiguration inputEventAdaptorMessageConfiguration,
                                                       String eventBuilderName,
                                                       String streamNameWithVersion,
                                                       String eventAdaptorName,
                                                       String eventAdaptorType,
                                                       boolean mappingEnabled,
                                                       org.wso2.carbon.event.builder.core.config.InputMapping inputMapping)

getEventBuilderMessageProperties

protected EventBuilderMessagePropertyDto[] getEventBuilderMessageProperties(org.wso2.carbon.event.builder.core.config.EventBuilderConfiguration eventBuilderConfiguration)


Copyright © 2015 WSO2. All rights reserved.