Skip to content
Snippets Groups Projects
Attribute_entity.aod 7.67 KiB
Newer Older
Johannes Hörmann's avatar
Johannes Hörmann committed
<?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.2.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.2.0">
  <name>Attribute_entity</name>
Johannes Goderbauer's avatar
Johannes Goderbauer committed
  <title>Attribute</title>
Johannes Hörmann's avatar
Johannes Hörmann committed
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Attribute_entity/documentation.adoc</documentation>
  <iconId>VAADIN:TAG</iconId>
S.Listl's avatar
S.Listl committed
  <titleProcess>%aditoprj%/entity/Attribute_entity/titleProcess.js</titleProcess>
Johannes Hörmann's avatar
Johannes Hörmann committed
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>ATTRIBUTE_NAME</name>
      <title>Name</title>
      <mandatory v="true" />
S.Listl's avatar
S.Listl committed
      <state>EDITABLE</state>
S.Listl's avatar
S.Listl committed
      <displayValueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_name/displayValueProcess.js</displayValueProcess>
Johannes Hörmann's avatar
Johannes Hörmann committed
    </entityField>
    <entityField>
      <name>ATTRIBUTE_TYPE</name>
      <title>Type</title>
S.Listl's avatar
S.Listl committed
      <consumer>KeywordAttributeType</consumer>
Johannes Hörmann's avatar
Johannes Hörmann committed
      <mandatory v="true" />
S.Listl's avatar
S.Listl committed
      <stateProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_type/stateProcess.js</stateProcess>
S.Listl's avatar
S.Listl committed
      <valueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_type/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_type/displayValueProcess.js</displayValueProcess>
Johannes Hörmann's avatar
Johannes Hörmann committed
    </entityField>
    <entityField>
      <name>AB_ATTRIBUTEID</name>
      <valueProcess>%aditoprj%/entity/Attribute_entity/entityfields/ab_attributeid/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>ATTRIBUTE_PARENT_ID</name>
      <title>Parent Attribute</title>
S.Listl's avatar
S.Listl committed
      <consumer>AttributeChildren</consumer>
Maximilian Hofmann's avatar
Maximilian Hofmann committed
      <linkedContext>Attribute</linkedContext>
S.Listl's avatar
S.Listl committed
      <stateProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_parent_id/stateProcess.js</stateProcess>
S.Listl's avatar
S.Listl committed
      <valueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_parent_id/valueProcess.js</valueProcess>
      <displayValueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_parent_id/displayValueProcess.js</displayValueProcess>
Johannes Hörmann's avatar
Johannes Hörmann committed
    </entityField>
    <entityConsumer>
      <name>AttributeChildren</name>
S.Listl's avatar
S.Listl committed
      <title>Attributes</title>
Johannes Hörmann's avatar
Johannes Hörmann committed
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
S.Listl's avatar
S.Listl committed
        <entityName>Attribute_entity</entityName>
        <fieldName>AttributeParent</fieldName>
Johannes Hörmann's avatar
Johannes Hörmann committed
      </dependency>
S.Listl's avatar
S.Listl committed
      <children>
        <entityParameter>
          <name>attrParentId_param</name>
          <code>%aditoprj%/entity/Attribute_entity/entityfields/attributechildren/children/attrparentid_param/code.js</code>
          <triggerRecalculation v="true" />
          <mandatory v="false" />
        </entityParameter>
      </children>
Johannes Hörmann's avatar
Johannes Hörmann committed
    </entityConsumer>
    <entityProvider>
      <name>AttributeParent</name>
Johannes Hörmann's avatar
Johannes Hörmann committed
      <fieldType>DEPENDENCY_IN</fieldType>
      <recordContainer>db</recordContainer>
S.Listl's avatar
S.Listl committed
      <dependencies>
        <entityDependency>
          <name>18bd148d-bed3-429f-ba54-c5eac76c5083</name>
          <entityName>Attribute_entity</entityName>
          <fieldName>AttributeChildren</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
      <children>
        <entityParameter>
          <name>attrParentId_param</name>
          <expose v="true" />
        </entityParameter>
      </children>
Johannes Hörmann's avatar
Johannes Hörmann committed
    </entityProvider>
    <entityParameter>
      <name>attrParentId_param</name>
      <expose v="true" />
      <description>PARAMETER</description>
    </entityParameter>
    <entityConsumer>
      <name>AttributeUsages</name>
Johannes Hörmann's avatar
Johannes Hörmann committed
      <title>Usage</title>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>AttributeUsage_entity</entityName>
Johannes Hörmann's avatar
Johannes Hörmann committed
      </dependency>
      <children>
        <entityParameter>
          <name>attributeId_param</name>
          <code>%aditoprj%/entity/Attribute_entity/entityfields/attributeusages/children/attributeid_param/code.js</code>
Johannes Hörmann's avatar
Johannes Hörmann committed
          <triggerRecalculation v="true" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>ATTRIBUTE_ACTIVE</name>
      <title>Active</title>
      <contentType>BOOLEAN</contentType>
      <possibleItemsProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_active/possibleItemsProcess.js</possibleItemsProcess>
      <valueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_active/valueProcess.js</valueProcess>
    </entityField>
S.Listl's avatar
S.Listl committed
    <entityConsumer>
      <name>KeywordAttributeType</name>
      <fieldType>DEPENDENCY_OUT</fieldType>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>containerName_param</name>
          <code>%aditoprj%/entity/Attribute_entity/entityfields/keywordattributetype/children/containername_param/code.js</code>
        </entityParameter>
      </children>
    </entityConsumer>
S.Listl's avatar
S.Listl committed
    <entityField>
      <name>ATTRIBUTE_LEVEL</name>
S.Listl's avatar
S.Listl committed
      <title>Level</title>
      <contentType>NUMBER</contentType>
      <state>INVISIBLE</state>
S.Listl's avatar
S.Listl committed
      <valueProcess>%aditoprj%/entity/Attribute_entity/entityfields/attribute_level/valueProcess.js</valueProcess>
    </entityField>
Johannes Hörmann's avatar
Johannes Hörmann committed
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <conditionProcess>%aditoprj%/entity/Attribute_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
S.Listl's avatar
S.Listl committed
      <orderClauseProcess>%aditoprj%/entity/Attribute_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
S.Listl's avatar
S.Listl committed
      <onDBInsert>%aditoprj%/entity/Attribute_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
Johannes Hörmann's avatar
Johannes Hörmann committed
      <onDBDelete>%aditoprj%/entity/Attribute_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
      <linkInformation>
        <linkInformation>
          <name>b5fd38e1-b315-4e66-bd68-569dfc04710c</name>
          <tableName>AB_ATTRIBUTE</tableName>
          <primaryKey>AB_ATTRIBUTEID</primaryKey>
          <isUIDTable v="true" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>AB_ATTRIBUTEID.value</name>
          <recordfield>AB_ATTRIBUTE.AB_ATTRIBUTEID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_PARENT_ID.value</name>
          <recordfield>AB_ATTRIBUTE.ATTRIBUTE_PARENT_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_TYPE.value</name>
          <recordfield>AB_ATTRIBUTE.ATTRIBUTE_TYPE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_ACTIVE.value</name>
          <recordfield>AB_ATTRIBUTE.ATTRIBUTE_ACTIVE</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_TYPE.displayValue</name>
          <expression>%aditoprj%/entity/Attribute_entity/recordcontainers/db/recordfieldmappings/attribute_type.displayvalue/expression.js</expression>
        </dbRecordFieldMapping>
S.Listl's avatar
S.Listl committed
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_NAME.value</name>
          <recordfield>AB_ATTRIBUTE.ATTRIBUTE_NAME</recordfield>
        </dbRecordFieldMapping>
S.Listl's avatar
S.Listl committed
        <dbRecordFieldMapping>
          <name>ATTRIBUTE_LEVEL.value</name>
          <recordfield>AB_ATTRIBUTE.ATTRIBUTE_LEVEL</recordfield>
        </dbRecordFieldMapping>
Johannes Hörmann's avatar
Johannes Hörmann committed
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>