2
0
Fork 0
imxmi/tests/resources/vasc/tables.xml

222 lines
6.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<vasc xmlns:v="http://vasc.idcanet.com/eld/vasc-lang.eld"
xmlns:x4o="http://x4o.idcanet.com/eld/x4o-lang.eld"
>
<v:simpleLdapConnectionProvider
el.id="ldapSudoers"
ldapHost="ldap2.lan.mbuyu.nl"
bindUser="uid=admin-sudo,ou=services,dc=m4n,dc=nl"
bindPass="adminSudo"
/>
<v:ldapBackend
id="ldapBackendSudoers"
ldapConnectionProvider="${ldapSudoers}"
baseDN="ou=sudoers,dc=m4n,dc=nl"
keyAttribute="cn"
ldapFilter="(&amp;(objectClass=sudoRole))"
/>
<v:entry id="sudoers" backendId="ldapBackendSudoers">
<v:field id="user" backendName="cn" readOnly="true"/>
<v:field id="description" rolesEdit="admin" rolesList="all"/>
<v:field id="sudoCommand" vascEntryFieldType="MultiTextField"/>
<v:field id="sudoHost" vascEntryFieldType="MultiTextField"/>
<v:field id="sudoUser" vascEntryFieldType="MultiTextField"/>
<!--
<v:ldapNextIdFunction name="nextUidNumber" ldapFilter="(&(objectClass=posixGroup))" ldapAttribute="gidnumber"/>
<v:listeners hook="post_create">
<etc:loginToFtpServer/>
</v:listeners>
<v:link fieldName="user" viewController="ldapUsers" parameterName="user_cn"/>
<v:link fieldName="gidNumber" viewController="ldapGroups" parameterName="group_key,${baseDn}"/>
<v:detail fieldName="gidNumber" detailController="${ldapGroups}"/>
-->
</v:entry>
<v:entry id="test1" backendId="testBackend1">
<v:field id="name" defaultValue=""/>
<v:field id="description" vascEntryFieldType="EmailField" defaultValue="email@address.nl"/>
<v:field id="active" defaultValue="true"/>
<v:field id="date" vascEntryFieldType="DateField" defaultValue="$myBean.newDate"/>
<v:field id="hexColor" vascEntryFieldType="ColorField" defaultValue="#FF3355"/>
<v:field id="testModel" vascEntryFieldType="ListField" dataObject="$myBean.testBackend1"
vascEntryFieldType.dataObject="#{vascController.vascBackendControllerResolver.vascBackendController.vascBackendById('testBackend1')}"
/>
</v:entry>
<!--
- View
- States
- Tables
- Columns
Master
- Details
-->
<!--
<x4o:bean el.id="dataSource" bean.class="com.id.."/>
<x4o:bean el.id="tableController" bean.class="com.id.."/>
<v:vascView name="test1">
<v:vascTableController>
</v:vascTableController>
<v:vascBackendController>
<v:vascJDBCQueryController>
<x4o:property name="list">select id,name,blog_status_id,description,slug from blog_post</x4o:property>
<x4o:property name="update">update (id,name,blog_status_id,description,slug) values(?,?,?,?,?) from blog_post where id=?</x4o:property>
<x4o:property name="create">instert into (id,name,blog_status_id,description,slug) values(?,?,?,?,?) from blog_post where id=?</x4o:property>
<x4o:property name="delete">delete from blog_post where id=?</x4o:property>
</v:vascJDBCQueryController>
</v:vascBackendController>
<v:vascField name="">
<v:vascFieldOptions/>
<v:vascFieldChoises/>
</v:vascField>
<v:vascField name="">
<v:vascUserRoles list="admin"/>
</v:vascField>
</v:vascView>
<x4o:template el.id="ldapServerTemplate">
<v:ldapConnection name="main">
<x4o:property name="connectionUrl" value="ldaps://ldap.office.mbuyu.nl"/>
</v:ldapConnection>
</x4o:template>
<v:ldapConnection el.id="sudoers" x4o.templates="ldapServerTemplate">
<x4o:property name="user" value="uid=admin-sudo,ou=services,dc=m4n,dc=nl"/>
<x4o:property name="pass" value="adminSudo"/>
<x4o:property name="baseDn" value="ou=sudoers,dc=m4n,dc=nl"/>
</v:ldapConnection>
<x4o:template el.id="sudoTemplate">
<v:field name="user" backendName="cn" readOnly="true"/>
<v:field name="description" backendName="description"/>
<v:field name="sudoCommand" fieldEditor="listField"/>
<v:field name="sudoHost" fieldEditor="listField"/>
<v:field name="sudoUser" fieldEditor="listField"/>
</x4o:template>
<x4o:template el.id="sambaUserSchema">
<v:field name="sambaSID" fieldEditor="textField" edit="false" list="false" view="false" create="false" defaultValue="S-1-5-21-1200182392-965607725-1867741125-514"/>
<v:field name="sambaGroupType" v.defaultValue="2"/>
</x4o:template>
<v:viewController name="ldapUsers" primaryKey="user">
<x4o:templateTag template="${posixUserSchema}"/>
<x4o:templateTag template="${sambaUserSchema}">
<v:field name="sambaGroupType" v.defaultValue="3"/>
</x4o:templateTag>
<v:field name="sambaGroupType" v.defaultValue="4"/>
</v:viewController>
<vasc:fieldType name="EmailField2">
<vasc:fieldHint key="validate" default="true"/>
<vasc:fieldHint key="timeout" default="200"/>
</vasc:fieldType>
<vasc:fieldType name="listField">
<vasc:fieldHint key="validate" default="true"/>
<vasc:fieldHint key="timeout" default="200"/>
</vasc:fieldType>
-->
<v:entry id="test2" backendId="testBackend1">
<v:field id="name"/>
<v:field id="description"/>
<v:field id="active"/>
<v:field id="testModel" vascEntryFieldType="ListField"/>
</v:entry>
<v:entry
id="test3"
name="iets"
description="ietsdescrip"
helpId="someHelpKey"
image="imsdf"
headerName="sdf"
headerDescription="sdfsdf"
headerImage="sdfsdfsd"
primaryKeyFieldId="name"
displayNameFieldId="name"
vascAdmimList="true"
vascAdmimEdit="true"
vascAdmimCreate="true"
vascAdmimDelete="true"
backendId="testBackend1"
>
<v:field id="name"/>
<v:field
id="active"
backendName="active"
name="active"
description="active"
helpId="active"
image="active"
defaultValue="true"
sizeList="100"
sizeEdit="80"
styleList="styleClass"
styleEdit="styleClass"
choices=""
view="true"
optional="false"
create="true"
edit="true"
editReadOnly="false"
list="true"
rolesCreate="admin|manager"
rolesEdit=""
rolesEditReadOnly=""
rolesList=""
vascEntryFieldType=""
vascEntryFieldEventChannel=""
>
<v:intSizeValidator min="20"/>
</v:field>
<v:fieldSet
id="set1"
vascEntryFieldIds="name,active"
name="set1"
description="set1"
helpId="set1"
image="set1"
styleList="styleClass"
styleEdit="styleClass"
collapsed="false"
optional="false"
/>
</v:entry>
</vasc>