Skip to content
Snippets Groups Projects
CommRestriction_Entity.aod 7.24 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.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17">
  <name>CommRestriction_Entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/CommRestriction_Entity/documentation.adoc</documentation>
  <title>Advertising ban</title>
  <titlePlural>Advertising bans</titlePlural>
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>CONTACT_ID</name>
      <title>Person</title>
      <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/contact_id/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>MEDIUM</name>
      <title>Advertising ban</title>
      <consumer>CommRestrictionMedium</consumer>
      <mandatory v="true" />
      <displayValueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/medium/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>STARTDATE</name>
      <title>Valid from</title>
      <contentType>DATE</contentType>
      <resolution>DAY</resolution>
      <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/startdate/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>EMPLOYEE_INVOLVED</name>
      <title>Responsible</title>
      <consumer>EmployeeInvolved</consumer>
      <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/employee_involved/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/employee_involved/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>REASON</name>
      <title>Reason</title>
      <contentType>LONG_TEXT</contentType>
    </entityField>
    <entityField>
      <name>COMMRESTRICTIONID</name>
      <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictionid/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>EmployeeInvolved</name>
      <dependency>
        <name>dependency</name>
        <entityName>Employee_entity</entityName>
        <fieldName>Employees</fieldName>
      </dependency>
    </entityConsumer>
    <entityConsumer>
      <name>CommRestrictionMedium</name>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContainerName_param</name>
          <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictionmedium/children/containername_param/valueProcess.js</valueProcess>
          <expose v="false" />
        </entityParameter>
        <entityParameter>
          <name>ExcludedKeyIdsSubquery_param</name>
          <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictionmedium/children/excludedkeyidssubquery_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>CommRestrictions</name>
      <documentation>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictions/documentation.adoc</documentation>
      <dependencies>
        <entityDependency>
          <name>b50e33cd-e20f-4bdf-b0ee-2ecdab921ffd</name>
          <entityName>Person_entity</entityName>
          <fieldName>CommRestrictions</fieldName>
          <isConsumer v="false" />
        </entityDependency>
        <entityDependency>
          <name>1108f15c-75e3-49a8-b1cd-03259bfbb8a0</name>
          <entityName>Organisation_entity</entityName>
          <fieldName>CommRestrictions</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityParameter>
      <name>ContactId_param</name>
      <expose v="true" />
      <mandatory v="true" />
    </entityParameter>
    <entityField>
      <name>ICON</name>
      <colorProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/icon/colorProcess.js</colorProcess>
      <contentType>IMAGE</contentType>
      <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/icon/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>MediumKeywordAttribute</name>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordAttribute_entity</entityName>
        <fieldName>SpecificContainerKeyword</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContainerName_param</name>
          <valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/mediumkeywordattribute/children/containername_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>#PROVIDER_AGGREGATES</name>
      <useAggregates v="true" />
    </entityProvider>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <conditionProcess>%aditoprj%/entity/CommRestriction_Entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <linkInformation>
        <linkInformation>
          <name>d02c4bb0-c0aa-46fa-bf1b-4bcc44aeb012</name>
          <tableName>COMMRESTRICTION</tableName>
          <primaryKey>COMMRESTRICTIONID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>COMMRESTRICTIONID.value</name>
          <recordfield>COMMRESTRICTION.COMMRESTRICTIONID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>CONTACT_ID.value</name>
          <recordfield>COMMRESTRICTION.CONTACT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>EMPLOYEE_INVOLVED.value</name>
          <recordfield>COMMRESTRICTION.EMPLOYEE_INVOLVED</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>MEDIUM.value</name>
          <recordfield>COMMRESTRICTION.MEDIUM</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>REASON.value</name>
          <recordfield>COMMRESTRICTION.REASON</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>STARTDATE.value</name>
          <recordfield>COMMRESTRICTION.STARTDATE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>EMPLOYEE_INVOLVED.displayValue</name>
          <expression>%aditoprj%/entity/CommRestriction_Entity/recordcontainers/db/recordfieldmappings/employee_involved.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>MEDIUM.displayValue</name>
          <expression>%aditoprj%/entity/CommRestriction_Entity/recordcontainers/db/recordfieldmappings/medium.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>