Platform Explorer / CMF 1.8

Contribution com.nuxeo.case-management.layouts--widgets

This contribution is part of XML component com.nuxeo.case-management.layouts inside nuxeo-case-management-web-1.8.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="summary_current_caseitem" type="summary_current_caseitem"/>
  • <widget name="summary_case_item_content" type="summary_case_item_content"/>
  • <widget name="mailbox_id" type="text">
          <labels>
            <label mode="any">label.mailbox.id</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:mailbox_id</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="any">view</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="validator">
              #{cmMailboxActions.validateMailboxId}
            </property>
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="title" type="text">
          <labels>
            <label mode="any">title</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:title</field>
          </fields>
          <properties widgetMode="edit">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="description" type="textarea">
          <labels>
            <label mode="any">description</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:description</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="mailbox_type" type="template">
          <labels>
            <label mode="any">label.mailbox.type</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:type</field>
          </fields>
          <!-- do not change type after creation -->
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /casemanagement_widgets/mailbox_type_widget_template.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="mailbox_profiles" type="selectManyDirectory">
          <fields>
            <field>mlbx:profiles</field>
          </fields>
          <labels>
            <label mode="any">label.casemanagement.document.profiles</label>
          </labels>
          <translated>true</translated>
          <properties widgetMode="any">
            <!-- TODO: restrict values according to current user accreditation -->
            <property name="directoryName">cm_mailbox_profile</property>
            <property name="localize">true</property>
          </properties>
          <properties widgetMode="edit">
            <property name="notDisplayDefaultOption">true</property>
            <property name="ordering">label</property>
          </properties>
        </widget>
  • <widget name="mailbox_affiliation" type="template">
          <labels>
            <label mode="any">label.mailbox.affiliatedMailbox</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:affiliated_mailbox_id</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /casemanagement_widgets/single_mailbox_suggestion_widget_template.xhtml
            </property>
          </properties>
          <properties mode="edit">
            <property name="mailboxSuggestionSearchType">generic</property>
          </properties>
        </widget>
  • <widget name="mailbox_parent" type="template">
          <labels>
            <label mode="any">label.casemanagement.parentMailbox</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field/>
          </fields>
          <!-- do not change parent after creation -->
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="any">view</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /casemanagement_widgets/parent_mailbox_suggestion_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="mailbox_owner" type="template">
          <fields>
            <field>mlbx:owner</field>
          </fields>
          <labels>
            <label mode="any">label.mailbox.owner</label>
          </labels>
          <translated>true</translated>
          <!-- do not change a personal mailbox owner -->
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="edit">
              #{nxu:test(layoutValue.mlbx.type=='personal', 'view', 'edit')}
            </mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /widgets/single_user_suggestion_widget_template.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="required">true</property>
            <property name="userSuggestionSearchType">USER_TYPE</property>
          </properties>
        </widget>
  • <widget name="mailbox_validate_personal_owner" type="template">
          <labels>
            <label mode="any"/>
          </labels>
          <translated>true</translated>
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="template">
              /casemanagement_widgets/mailbox_personal_owner_validation_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="mailbox_users" type="template">
          <fields>
            <field>mlbx:users</field>
          </fields>
          <labels>
            <label mode="any">label.mailbox.users</label>
          </labels>
          <translated>true</translated>
          <properties mode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="userSuggestionSearchType">USER_TYPE</property>
          </properties>
        </widget>
  • <widget name="mailbox_groups" type="template">
          <fields>
            <field>mlbx:groups</field>
          </fields>
          <labels>
            <label mode="any">label.mailbox.groups</label>
          </labels>
          <translated>true</translated>
          <properties mode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="userSuggestionSearchType">GROUP_TYPE</property>
          </properties>
        </widget>
  • <widget name="mailbox_lastSyncUpdate" type="text">
          <widgetModes>
            <mode value="any">view</mode>
            <mode value="create">hidden</mode>
          </widgetModes>
          <labels>
            <label mode="any">label.mailbox.synchronizer.lastSyncUpdate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:lastSyncUpdate</field>
          </fields>
        </widget>
  • <widget name="mailbox_sync_id" type="text">
          <widgetModes>
            <mode value="any">view</mode>
            <mode value="create">hidden</mode>
          </widgetModes>
          <labels>
            <label mode="any">label.mailbox.synchronizer.id</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:synchronizerId</field>
          </fields>
        </widget>
  • <widget name="mailbox_origin" type="text">
          <widgetModes>
            <mode value="any">view</mode>
            <mode value="create">hidden</mode>
          </widgetModes>
          <labels>
            <label mode="any">label.mailbox.origin</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>mlbx:origin</field>
          </fields>
        </widget>
  • <widget name="mailbox_sync_state" type="selectOneDirectory">
          <fields>
            <field>mlbx:synchronizedState</field>
          </fields>
          <labels>
            <label mode="any">label.mailbox.synchronizer.state</label>
          </labels>
          <translated>true</translated>
          <properties widgetMode="any">
            <property name="directoryName">cm_mailbox_sync_state</property>
            <property name="localize">true</property>
          </properties>
          <properties widgetMode="edit">
            <property name="notDisplayDefaultOption">true</property>
            <property name="ordering">label</property>
          </properties>
        </widget>
  • <widget name="action_participants" type="template">
          <labels>
            <label mode="any">
              label.casemanagement.distribution.actionParticipants
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>forActionMailboxes</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /casemanagement_widgets/mailbox_suggestion_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="copy_participants" type="template">
          <labels>
            <label mode="any">label.distribution.copyParticipants</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>forInformationMailboxes</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /casemanagement_widgets/mailbox_suggestion_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="distribution_comment" type="textarea">
          <fields>
            <field>comment</field>
          </fields>
          <labels>
            <label mode="any">label.relation.comment</label>
          </labels>
          <translated>true</translated>
          <properties widgetMode="edit">
            <property name="cssStyleClass">dataInputText</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
    <widget name="summary_current_caseitem" type="summary_current_caseitem"/>
    <widget name="summary_case_item_content" type="summary_case_item_content"/>

    <widget name="mailbox_id" type="text">
      <labels>
        <label mode="any">label.mailbox.id</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:mailbox_id</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="any">view</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="validator">
          #{cmMailboxActions.validateMailboxId}
        </property>
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="title" type="text">
      <labels>
        <label mode="any">title</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:title</field>
      </fields>
      <properties widgetMode="edit">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="description" type="textarea">
      <labels>
        <label mode="any">description</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:description</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="mailbox_type" type="template">
      <labels>
        <label mode="any">label.mailbox.type</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:type</field>
      </fields>
      <!-- do not change type after creation -->
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /casemanagement_widgets/mailbox_type_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="mailbox_profiles" type="selectManyDirectory">
      <fields>
        <field>mlbx:profiles</field>
      </fields>
      <labels>
        <label mode="any">label.casemanagement.document.profiles</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="any">
        <!-- TODO: restrict values according to current user accreditation -->
        <property name="directoryName">cm_mailbox_profile</property>
        <property name="localize">true</property>
      </properties>
      <properties widgetMode="edit">
        <property name="notDisplayDefaultOption">true</property>
        <property name="ordering">label</property>
      </properties>
    </widget>

    <widget name="mailbox_affiliation" type="template">
      <labels>
        <label mode="any">label.mailbox.affiliatedMailbox</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:affiliated_mailbox_id</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /casemanagement_widgets/single_mailbox_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties mode="edit">
        <property name="mailboxSuggestionSearchType">generic</property>
      </properties>
    </widget>

    <widget name="mailbox_parent" type="template">
      <labels>
        <label mode="any">label.casemanagement.parentMailbox</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field/>
      </fields>
      <!-- do not change parent after creation -->
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="any">view</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /casemanagement_widgets/parent_mailbox_suggestion_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="mailbox_owner" type="template">
      <fields>
        <field>mlbx:owner</field>
      </fields>
      <labels>
        <label mode="any">label.mailbox.owner</label>
      </labels>
      <translated>true</translated>
      <!-- do not change a personal mailbox owner -->
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="edit">
          #{nxu:test(layoutValue.mlbx.type=='personal', 'view', 'edit')}
        </mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /widgets/single_user_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="required">true</property>
        <property name="userSuggestionSearchType">USER_TYPE</property>
      </properties>
    </widget>

    <!-- XXX: depends on mailbox_owner and mailbox_type widget names: throws 
      an error when trying to create a personal mailbox for a user who already 
      has one -->
    <widget name="mailbox_validate_personal_owner" type="template">
      <labels>
        <label mode="any"/>
      </labels>
      <translated>true</translated>
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="template">
          /casemanagement_widgets/mailbox_personal_owner_validation_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="mailbox_users" type="template">
      <fields>
        <field>mlbx:users</field>
      </fields>
      <labels>
        <label mode="any">label.mailbox.users</label>
      </labels>
      <translated>true</translated>
      <properties mode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="userSuggestionSearchType">USER_TYPE</property>
      </properties>
    </widget>

    <widget name="mailbox_groups" type="template">
      <fields>
        <field>mlbx:groups</field>
      </fields>
      <labels>
        <label mode="any">label.mailbox.groups</label>
      </labels>
      <translated>true</translated>
      <properties mode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="userSuggestionSearchType">GROUP_TYPE</property>
      </properties>
    </widget>

    <widget name="mailbox_lastSyncUpdate" type="text">
      <widgetModes>
        <mode value="any">view</mode>
        <mode value="create">hidden</mode>
      </widgetModes>
      <labels>
        <label mode="any">label.mailbox.synchronizer.lastSyncUpdate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:lastSyncUpdate</field>
      </fields>
    </widget>

    <widget name="mailbox_sync_id" type="text">
      <widgetModes>
        <mode value="any">view</mode>
        <mode value="create">hidden</mode>
      </widgetModes>
      <labels>
        <label mode="any">label.mailbox.synchronizer.id</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:synchronizerId</field>
      </fields>
    </widget>

    <widget name="mailbox_origin" type="text">
      <widgetModes>
        <mode value="any">view</mode>
        <mode value="create">hidden</mode>
      </widgetModes>
      <labels>
        <label mode="any">label.mailbox.origin</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>mlbx:origin</field>
      </fields>
    </widget>


    <widget name="mailbox_sync_state" type="selectOneDirectory">
      <fields>
        <field>mlbx:synchronizedState</field>
      </fields>
      <labels>
        <label mode="any">label.mailbox.synchronizer.state</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="any">
        <property name="directoryName">cm_mailbox_sync_state</property>
        <property name="localize">true</property>
      </properties>
      <properties widgetMode="edit">
        <property name="notDisplayDefaultOption">true</property>
        <property name="ordering">label</property>
      </properties>
    </widget>

    <widget name="action_participants" type="template">
      <labels>
        <label mode="any">
          label.casemanagement.distribution.actionParticipants
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>forActionMailboxes</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /casemanagement_widgets/mailbox_suggestion_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="copy_participants" type="template">
      <labels>
        <label mode="any">label.distribution.copyParticipants</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>forInformationMailboxes</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /casemanagement_widgets/mailbox_suggestion_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="distribution_comment" type="textarea">
      <fields>
        <field>comment</field>
      </fields>
      <labels>
        <label mode="any">label.relation.comment</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="edit">
        <property name="cssStyleClass">dataInputText</property>
      </properties>
    </widget>

  </extension>