Skip to content
Snippets Groups Projects
LetterRecipient_entity.aod 8.31 KiB
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.14" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.14">
  <name>LetterRecipient_entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/LetterRecipient_entity/documentation.adoc</documentation>
  <siblings>
    <element>Address_entity</element>
  </siblings>
  <titlePlural>Recipients</titlePlural>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>LETTERRECIPIENTID</name>
    </entityField>
    <entityField>
      <name>CONTACT_ID</name>
      <title>Contact</title>
      <consumer>Contacts</consumer>
      <linkedContextProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/contact_id/linkedContextProcess.js</linkedContextProcess>
      <onValidation>%aditoprj%/entity/LetterRecipient_entity/entityfields/contact_id/onValidation.js</onValidation>
    </entityField>
    <entityProvider>
      <name>SerialLetterRecipients</name>
      <lookupIdfield>LETTERRECIPIENTID</lookupIdfield>
      <targetContextField>TARGETCONTEXT</targetContextField>
      <targetIdField>CONTACT_ID</targetIdField>
      <dependencies>
        <entityDependency>
          <name>f8e19c87-d226-4712-b431-2b56324dacb8</name>
          <entityName>SerialLetter_entity</entityName>
          <fieldName>Recipients</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityParameter>
      <name>SerialLetterId_param</name>
      <expose v="true" />
      <mandatory v="true" />
    </entityParameter>
    <entityField>
      <name>SERIALLETTER_ID</name>
      <valueProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/serialletter_id/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>Contacts</name>
      <dependency>
        <name>dependency</name>
        <entityName>AnyContact_entity</entityName>
        <fieldName>#PROVIDER</fieldName>
      </dependency>
    </entityConsumer>
    <entityField>
      <name>ICON</name>
      <colorProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/icon/colorProcess.js</colorProcess>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/icon/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>ORGANISATION_ID</name>
    </entityField>
    <entityField>
      <name>PERSON_ID</name>
    </entityField>
    <entityField>
      <name>HASCOMMRESTRICTION</name>
    </entityField>
    <entityField>
      <name>TARGETCONTEXT</name>
    </entityField>
    <entityActionGroup>
      <name>recipientActions</name>
      <children>
        <entityActionField>
          <name>downloadLetterForSelection</name>
          <onActionProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/recipientactions/children/downloadletterforselection/onActionProcess.js</onActionProcess>
          <isObjectAction v="false" />
          <isSelectionAction v="true" />
          <iconId>VAADIN:DOWNLOAD_ALT</iconId>
          <tooltipProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/recipientactions/children/downloadletterforselection/tooltipProcess.js</tooltipProcess>
        </entityActionField>
        <entityActionField>
          <name>removeWithCommRestriction</name>
          <onActionProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/recipientactions/children/removewithcommrestriction/onActionProcess.js</onActionProcess>
          <isObjectAction v="false" />
          <iconId>VAADIN:BAN</iconId>
          <tooltipProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/recipientactions/children/removewithcommrestriction/tooltipProcess.js</tooltipProcess>
        </entityActionField>
      </children>
    </entityActionGroup>
    <entityField>
      <name>ADDRESS_ID</name>
      <title>Address</title>
      <state>READONLY</state>
      <displayValueProcess>%aditoprj%/entity/LetterRecipient_entity/entityfields/address_id/displayValueProcess.js</displayValueProcess>
    </entityField>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <fromClauseProcess>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
      <conditionProcess>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <orderClauseProcess>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
      <onDBInsert>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
      <onDBUpdate>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
      <onDBDelete>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>0a41cbd3-c199-4191-af95-ba793e4f2554</name>
          <tableName>LETTERRECIPIENT</tableName>
          <primaryKey>LETTERRECIPIENTID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
        <linkInformation>
          <name>d2204511-72e8-4b58-80b0-39cb334e68f7</name>
          <tableName>CONTACT</tableName>
          <primaryKey>CONTACTID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>25149c4f-b158-48e6-b114-cc7e05ebe75b</name>
          <tableName>ORGANISATION</tableName>
          <primaryKey>ORGANISATIONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
        <linkInformation>
          <name>d653cba9-df2f-4b78-8bf3-8e92d8965d36</name>
          <tableName>PERSON</tableName>
          <primaryKey>PERSONID</primaryKey>
          <isUIDTable v="false" />
          <readonly v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.value</name>
          <recordfield>LETTERRECIPIENT.CONTACT_ID</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LETTERRECIPIENTID.value</name>
          <recordfield>LETTERRECIPIENT.LETTERRECIPIENTID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>SERIALLETTER_ID.value</name>
          <recordfield>LETTERRECIPIENT.SERIALLETTER_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.displayValue</name>
          <expression>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/recordfieldmappings/contact_id.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ORGANISATION_ID.value</name>
          <recordfield>CONTACT.ORGANISATION_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>PERSON_ID.value</name>
          <recordfield>CONTACT.PERSON_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>HASCOMMRESTRICTION.value</name>
          <expression>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/recordfieldmappings/hascommrestriction.value/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>TARGETCONTEXT.value</name>
          <expression>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/recordfieldmappings/targetcontext.value/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ADDRESS_ID.displayValue</name>
          <expression>%aditoprj%/entity/LetterRecipient_entity/recordcontainers/db/recordfieldmappings/address_id.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ADDRESS_ID.value</name>
          <recordfield>CONTACT.ADDRESS_ID</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>