<?xml version="1.0" encoding="UTF-8"?>

<list>
  <definition>
    <departmentBrowser>true</departmentBrowser>
    <departmentRootVisible>true</departmentRootVisible>
    <baseMode>true</baseMode>
    <multiSelect>true</multiSelect>
    <template>../../../ihtml/themes/default/list.tpl</template>
    <module>acl</module>
    <label>List of ACLs</label>
    <defaultSortColumn>1</defaultSortColumn>

    <objectType>
      <label>ACL</label>
      <objectClass>gosaAcl</objectClass>
      <category>acl</category>
      <class>acl</class>
      <image>lock</image>
    </objectType>

    <objectType>
      <label>Role</label>
      <objectClass>gosaRole</objectClass>
      <category>acl</category>
      <class>aclrole</class>
      <image>groups</image>
    </objectType>

  </definition>

  <table>
    <layout>|20px;c|||100px;r|</layout>

    <department>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </department>

    <department>
      <value>%{filter:departmentLink(row,dn,description)}</value>
      <span>1</span>
    </department>

    <column>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </column>

    <column>
      <label>Name</label>
      <sortAttribute>dn</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:filterLabel(row,dn,ou,cn,pid,base)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Description</label>
      <sortAttribute>description</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:link(row,dn,"%s",description)}</value>
      <export>true</export>
    </column>

    <column>
      <label>Actions</label>
      <value>%{filter:actions(dn,row,objectClass)}</value>
    </column>

  </table>

  <actionmenu>

    <action>
      <type>sub</type>
      <image>add_circle</image>
      <label>Create</label>

      <action>
        <name>new</name>
        <type>entry</type>
        <image>groups</image>
        <label>Role</label>
      </action>
    </action>

    <action>
      <type>sub</type>
      <image>settings</image>
      <label>Manage</label>

      <action>
        <name>remove</name>
        <type>entry</type>
        <image>delete</image>
        <label>Remove</label>
      </action>
    </action>

    <action>
      <type>exporter</type>
    </action>

    <action>
      <type>copypaste</type>
    </action>

    <action>
      <type>snapshot</type>
    </action>

  </actionmenu>

  <actiontriggers snapshot="true" copypaste="true">

    <action>
      <name>cp</name>
      <type>copypaste</type>
    </action>

    <action>
      <name>edit</name>
      <type>entry</type>
      <image>edit</image>
      <label>Edit</label>
    </action>

    <action>
      <name>snapshot</name>
      <type>snapshot</type>
    </action>

    <action>
      <name>remove</name>
      <type>entry</type>
      <image>delete</image>
      <acl>acl/acl[d]</acl>
      <label>Remove</label>
    </action>

  </actiontriggers>

</list>
