All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring-config.jobs.mapping.contactMecMapping.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<mappingFile targetEntity="io.github.jsoagger.core.model.api.contact.ContactMechanism">
     
     <!-- Add will add to exiting, if the file is load 3 times, 3 contacts mechanism will be added -->
     <command name="ADD_CONTACT_MEC" writers-ref="LineBeanToContactMechanismWriter" processors-ref="VLCSVToBeanProcessor;VLLineBeanDomainProcessor"
     dependent-commands="ADD_POSTAL_ADDRESS;ADD_TELECOM_CONTACT;ADD_WEB_CONTACT" dependent-commands-processor="DefaultDependentNodeProcessor">
          <column id="command" mandatory="true" maxLength="255" />
          <column id="typeInfo" mandatory="true" propertyEditor="TypeInfoByLogicalPathEditor" />
          <column id="containerInfo" mandatory="true" propertyEditor="ContainerInfoByLogicalPathEditor" />
          <column id="owner" mandatory="false"  propertyEditor="OwnerByReferencePropertyEditor" externalAttribute="true"/>
          <column id="ownerReference" mandatory="true"  externalAttribute="true"/>
          <column id="role" mandatory="true" maxLength="255" blankAllowed="false" externalAttribute="true"/>
          <column id="customLabel" mandatory="false" maxLength="255" blankAllowed="false" externalAttribute="true"/>
          <column id="fromDate" mandatory="false" externalAttribute="true"/>
          <column id="thruDate" mandatory="false" externalAttribute="true"/>
     </command>
     
     <!-- Clean existing contact, and this new one -->
     <command name="SET_CONTACT_MEC" writers-ref="LineBeanToContactMechanismWriter" processors-ref="VLCSVToBeanProcessor;VLLineBeanDomainProcessor"
     dependent-commands="ADD_POSTAL_ADDRESS;ADD_TELECOM_CONTACT;ADD_WEB_CONTACT" dependent-commands-processor="DefaultDependentNodeProcessor">
          <column id="command" mandatory="true" maxLength="255" />
          <column id="typeInfo" mandatory="true" propertyEditor="TypeInfoByLogicalPathEditor" />
          <column id="containerInfo" mandatory="true" propertyEditor="ContainerInfoByLogicalPathEditor" />
          <column id="owner" mandatory="false"  propertyEditor="OwnerByReferencePropertyEditor" externalAttribute="true"/>
          <column id="ownerReference" mandatory="true"  externalAttribute="true"/>
          <column id="role" mandatory="true" maxLength="255" blankAllowed="false" externalAttribute="true"/>
          <column id="customLabel" mandatory="false" maxLength="255" blankAllowed="false" externalAttribute="true"/>
          <column id="fromDate" mandatory="false" externalAttribute="true"/>
          <column id="thruDate" mandatory="false" externalAttribute="true"/>
     </command>

	<command name="ADD_POSTAL_ADDRESS" targetEntity="io.github.jsoagger.core.model.api.contact.PostalAddress">
          <column id="command" mandatory="true" maxLength="255" />
          <column id="address1" mandatory="false" blankAllowed="false"/>
          <column id="address2" mandatory="false" blankAllowed="false"/>
          <column id="address3" mandatory="false" blankAllowed="false"/>
          <column id="city" 	mandatory="false" blankAllowed="false"/>
          <column id="postalCode" mandatory="false" blankAllowed="false"/>
          <column id="district" mandatory="false" blankAllowed="false"/>
          <column id="state" 	mandatory="false" blankAllowed="false"/>
          <column id="country"  mandatory="false" blankAllowed="false"/>
     </command>
     
     <command name="ADD_WEB_CONTACT" targetEntity="io.github.jsoagger.core.model.api.contact.WebAddress">
          <column id="command" mandatory="true" maxLength="255" />
          <column id="title" mandatory="true" blankAllowed="false"/>
          <column id="webAddress" mandatory="true" blankAllowed="false"/>
     </command>
     
     <command name="ADD_TELECOM_CONTACT" targetEntity="io.github.jsoagger.core.model.api.contact.TelecomAddress">
          <column id="command" mandatory="true" maxLength="255" />
          <column id="title" mandatory="true" blankAllowed="false"/>
          <column id="areaCode" mandatory="false" blankAllowed="false"/>
          <column id="countryCode" mandatory="true" blankAllowed="false"/>
          <column id="telecomNumber" mandatory="true" blankAllowed="false"/>
     </command>
</mappingFile>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy