Skip to content
Snippets Groups Projects
Role_entity.aod 7.34 KiB
Newer Older
S.Listl's avatar
S.Listl 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.3.21" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.21">
S.Listl's avatar
S.Listl committed
  <name>Role_entity</name>
  <title>Roles</title>
S.Listl's avatar
S.Listl committed
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Role_entity/documentation.adoc</documentation>
S.Listl's avatar
S.Listl committed
  <icon>VAADIN:USER_CHECK</icon>
  <grantUpdateProcess>%aditoprj%/entity/Role_entity/grantUpdateProcess.js</grantUpdateProcess>
  <grantDeleteProcess>%aditoprj%/entity/Role_entity/grantDeleteProcess.js</grantDeleteProcess>
S.Listl's avatar
S.Listl committed
  <contentTitleProcess>%aditoprj%/entity/Role_entity/contentTitleProcess.js</contentTitleProcess>
  <iconId>VAADIN:USER_CHECK</iconId>
S.Leierseder's avatar
S.Leierseder committed
  <titlePlural>Roles</titlePlural>
S.Listl's avatar
S.Listl committed
  <recordContainer>jDito</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>ROLETITLE</name>
      <title>Title</title>
S.Listl's avatar
S.Listl committed
    </entityField>
    <entityField>
      <name>ROLETYPE</name>
      <title>Type</title>
    </entityField>
    <entityField>
      <name>ROLEDESCRIPTION</name>
      <title>Description</title>
    </entityField>
    <entityField>
      <name>ROLENAME</name>
      <title>Name</title>
      <mandatory v="true" />
      <stateProcess>%aditoprj%/entity/Role_entity/entityfields/rolename/stateProcess.js</stateProcess>
S.Listl's avatar
S.Listl committed
    </entityField>
    <entityField>
      <name>USERCOUNT</name>
      <title>Amount</title>
S.Listl's avatar
S.Listl committed
    </entityField>
    <entityConsumer>
      <name>TheirPermissions</name>
S.Listl's avatar
S.Listl committed
      <dependency>
        <name>dependency</name>
        <entityName>PermissionDetail_entity</entityName>
        <fieldName>Permissions</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RoleName_param</name>
          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityConsumer>
      <name>PermissionOverviews</name>
S.Listl's avatar
S.Listl committed
      <dependency>
        <name>dependency</name>
        <entityName>PermissionOverview_entity</entityName>
        <fieldName>PermissionOverviews</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RoleName_param</name>
          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/permissionoverviews/children/rolename_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>Roles</name>
      <recordContainer>jDito</recordContainer>
      <children>
        <entityParameter>
          <name>ExcludeRoles_param</name>
          <expose v="false" />
        </entityParameter>
      </children>
S.Listl's avatar
S.Listl committed
    </entityProvider>
    <entityParameter>
      <name>ExcludeRoles_param</name>
      <valueProcess>%aditoprj%/entity/Role_entity/entityfields/excluderoles_param/valueProcess.js</valueProcess>
S.Listl's avatar
S.Listl committed
      <expose v="true" />
    </entityParameter>
    <entityProvider>
      <name>FilteredRoles</name>
S.Listl's avatar
S.Listl committed
    </entityProvider>
    <entityField>
      <name>IS_ASSIGNABLE</name>
      <title>is assignable</title>
      <contentType>BOOLEAN</contentType>
      <valueProcess>%aditoprj%/entity/Role_entity/entityfields/is_assignable/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>UID</name>
      <valueProcess>%aditoprj%/entity/Role_entity/entityfields/uid/valueProcess.js</valueProcess>
    <entityConsumer>
      <name>RoleChildrens</name>
      <stateProcess>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/stateProcess.js</stateProcess>
      <onValidation>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/onValidation.js</onValidation>
      <dependency>
        <name>dependency</name>
        <entityName>RoleChildren_entity</entityName>
        <fieldName>RoleChildrens</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RoleId_param</name>
          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/children/roleid_param/valueProcess.js</valueProcess>
        </entityParameter>
        <entityParameter>
          <name>RoleType_param</name>
          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/rolechildrens/children/roletype_param/valueProcess.js</valueProcess>
        </entityParameter>
    <entityActionField>
      <name>deleteEverythingLinkedToRole</name>
      <title>delete linked permissions and hierarchies</title>
      <onActionProcess>%aditoprj%/entity/Role_entity/entityfields/deleteeverythinglinkedtorole/onActionProcess.js</onActionProcess>
      <iconId>VAADIN:CLOSE</iconId>
      <stateProcess>%aditoprj%/entity/Role_entity/entityfields/deleteeverythinglinkedtorole/stateProcess.js</stateProcess>
      <dependency>
        <name>dependency</name>
        <entityName>RoleParent_entity</entityName>
        <fieldName>RoleParents</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>RoleId_param</name>
          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/roleparents/children/roleid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>#PROVIDER_AGGREGATES</name>
      <useAggregates v="true" />
    </entityProvider>
    <entityProvider>
      <name>FilterRolesWithoutPermission</name>
      <usePermissions v="false" />
    </entityProvider>
S.Listl's avatar
S.Listl committed
  </entityFields>
  <recordContainers>
    <jDitoRecordContainer>
      <name>jDito</name>
      <jDitoRecordAlias>_____SYSTEMALIAS</jDitoRecordAlias>
      <isFilterable v="true" />
S.Listl's avatar
S.Listl committed
      <contentProcess>%aditoprj%/entity/Role_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
      <onInsert>%aditoprj%/entity/Role_entity/recordcontainers/jdito/onInsert.js</onInsert>
      <onUpdate>%aditoprj%/entity/Role_entity/recordcontainers/jdito/onUpdate.js</onUpdate>
      <onDelete>%aditoprj%/entity/Role_entity/recordcontainers/jdito/onDelete.js</onDelete>
      <recordFieldMappings>
        <jDitoRecordFieldMapping>
          <name>UID.value</name>
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>ROLENAME.value</name>
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>ROLETITLE.value</name>
          <isFilterable v="true" />
Johannes Hörmann's avatar
Johannes Hörmann committed
          <isLookupFilter v="true" />
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>ROLETYPE.value</name>
          <isFilterable v="true" />
Johannes Hörmann's avatar
Johannes Hörmann committed
          <isLookupFilter v="true" />
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>ROLEDESCRIPTION.value</name>
          <isFilterable v="true" />
Johannes Hörmann's avatar
Johannes Hörmann committed
          <isLookupFilter v="true" />
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>USERCOUNT.value</name>
          <isFilterable v="false" />
        </jDitoRecordFieldMapping>
        <jDitoRecordFieldMapping>
          <name>IS_ASSIGNABLE.value</name>
        </jDitoRecordFieldMapping>
      </recordFieldMappings>
S.Listl's avatar
S.Listl committed
    </jDitoRecordContainer>
  </recordContainers>
</entity>