Platform Explorer / CMF 1.8

Component com.nuxeo.case-management.types

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="com.nuxeo.case-management.types">

  <require>org.nuxeo.ecm.platform.routing.types</require>

  <extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">

    <!-- remove useless -->
    <type id="File" remove="true" />
    <type id="Note" remove="true" />

    <type id="MailboxRoot">
      <label>label.casemanagement.type.CaseManagementMailboxRoot</label>
      <icon>/icons/folder.gif</icon>
      <default-view>view_documents</default-view>
      <subtypes>
        <type>Mailbox</type>
      </subtypes>
      <layouts mode="any">
        <layout>heading</layout>
      </layouts>
    </type>

    <type id="Mailbox">
      <label>label.casemanagement.type.CaseManagementMailbox</label>
      <icon>/icons/case-management_mailbox.png</icon>
      <default-view>cm_view</default-view>
      <create-view>mailbox_create</create-view>
      <layouts mode="any">
        <layout>cm_mailbox</layout>
        <layout>cm_mailbox_managers</layout>
      </layouts>
      <layouts mode="edit">
        <layout>cm_mailbox</layout>
        <layout>cm_mailbox_managers</layout>
      </layouts>
      <subtypes>
        <type>Case</type>
      </subtypes>
      <contentViews category="inbox">
        <contentView>mailbox_inbox_content</contentView>
      </contentViews>
      <contentViews category="draft_content">
        <contentView>mailbox_draft_content</contentView>
      </contentViews>
      <contentViews category="sent">
        <contentView>mailbox_sent_content</contentView>
      </contentViews>
      <contentViews category="service">
        <contentView>mailbox_service_content</contentView>
      </contentViews>
      <contentViews category="plans">
        <contentView>mailbox_plans_content</contentView>
      </contentViews>
      <contentViews category="content">
        <contentView>document_content</contentView>
      </contentViews>
      <contentViews category="trash_content">
        <contentView>document_trash_content</contentView>
      </contentViews>
    </type>

    <type id="CaseRoot">
      <label>label.casemanagement.type.CaseManagementMailFolder</label>
      <icon>/icons/folder.gif</icon>
      <default-view>view_documents</default-view>
      <subtypes>
        <type>Folder</type>
      </subtypes>
      <layouts mode="any">
        <layout>heading</layout>
      </layouts>
    </type>

    <type id="Case">
      <label>label.casemanagement.type.CaseManagementCase</label>
      <icon>/icons/case.png</icon>
      <bigIcon>/icons/case_100.png</bigIcon>
      <default-view>cm_view</default-view>
      <create-view>create_empty_case</create-view>
      <category>SimpleDocument</category>
      <views>
        <view id="edit_case" value="edit_case" />
      </views>
      <subtypes>
        <type>CaseItem</type>
      </subtypes>
      <layouts mode="create">
        <layout>cm_case</layout>
      </layouts>
      <layouts mode="any">
        <layout>dublincore</layout>
      </layouts>
      <layouts mode="summary">
        <layout>summary_current_case_layout</layout>
      </layouts>
    </type>

    <type id="CaseLink">
      <label>label.case-management.type.CorrespondencePost</label>
      <icon>/icons/case.png</icon>
      <bigIcon>/icons/case_100.png</bigIcon>
      <default-view>view_documents</default-view>
      <views>
        <view id="distribution_caselink" value="distribution_caselink" />
      </views>
      <layouts mode="any">
        <layout>distribution_caselink</layout>
      </layouts>
    </type>

    <type id="CaseItem">
      <label>label.casemanagement.type.CaseItemDocument</label>
      <icon>/icons/case_item.png</icon>
      <bigIcon>/icons/case_item_100.png</bigIcon>
      <default-view>cm_view</default-view>
      <create-view>create_cm_document</create-view>
      <category>CaseItemDocument</category>
      <layouts mode="view">
        <layout>cm_document</layout>
        <layout>file</layout>
      </layouts>
      <layouts mode="header">
        <layout>head_cm_document</layout>
      </layouts>
      <layouts mode="create">
        <layout>cm_document</layout>
        <layout>file</layout>
      </layouts>
      <layouts mode="summary">
        <layout>summary_current_caseitem_layout</layout>
      </layouts>
      <layouts mode="any">
        <layout>cm_document</layout>
        <layout>file</layout>
      </layouts>
    </type>

    <type id="DistributionTask" coreType="DistributionTask">
      <label>label.casemanagement.type.DistributionTask</label>
      <icon>/icons/distribution_task.png</icon>
      <bigIcon>/icons/distribution_task_100.png</bigIcon>
      <category>SimpleDocument</category>
      <description>File.description</description>
      <default-view>view_documents</default-view>
      <edit-view>edit_route_element</edit-view>
      <layouts mode="any">
        <layout>heading</layout>
        <layout>routing_task</layout>
        <layout>all_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
        <layout>routing_task</layout>
        <layout>all_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="view" />
    </type>

    <type id="GenericDistributionTask" coreType="GenericDistributionTask">
      <label>label.casemanagement.type.GenericDistributionTask</label>
      <icon>/icons/generic_distribution_task.png</icon>
      <bigIcon>/icons/generic_distribution_task_100.png</bigIcon>
      <category>SimpleDocument</category>
      <description>File.description</description>
      <default-view>view_documents</default-view>
      <edit-view>edit_route_element</edit-view>
      <layouts mode="any">
        <layout>heading</layout>
        <layout>routing_task</layout>
        <layout>generic_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
        <layout>routing_task</layout>
        <layout>generic_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="view" />
    </type>

    <type id="PersonalDistributionTask" coreType="PersonalDistributionTask">
      <label>label.casemanagement.type.PersonalDistributionTask</label>
      <icon>/icons/personal_distribution_task.png</icon>
      <bigIcon>/icons/personal_distribution_task_100.png</bigIcon>
      <category>SimpleDocument</category>
      <description>File.description</description>
      <default-view>view_documents</default-view>
      <edit-view>edit_route_element</edit-view>
      <layouts mode="any">
        <layout>heading</layout>
        <layout>routing_task</layout>
        <layout>personal_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
        <layout>routing_task</layout>
        <layout>personal_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="view" />
    </type>

    <type id="DistributionStep" coreType="DistributionStep">
      <label>label.casemanagement.type.DistributionStep</label>
      <icon>/icons/distribution_step.png</icon>
      <bigIcon>/icons/distribution_step_100.png</bigIcon>
      <category>SimpleDocument</category>
      <description>File.description</description>
      <default-view>view_documents</default-view>
      <edit-view>edit_route_element</edit-view>
      <layouts mode="any">
        <layout>heading</layout>
        <layout>all_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
        <layout>all_mailboxes_routing_task</layout>
      </layouts>
      <layouts mode="view" />
    </type>

    <type id="StepFolder">
      <label>StepFolder</label>
      <subtypes>
        <type>StepFolder</type>
        <type>DistributionTask</type>
        <type>GenericDistributionTask</type>
        <type>PersonalDistributionTask</type>
        <type>DistributionStep</type>
      </subtypes>
      <deniedSubtypes>
        <type>DocumentRouteStep</type>
      </deniedSubtypes>
    </type>

    <type id="DocumentRoute">
      <label>DocumentRoute</label>
      <subtypes>
        <type>StepFolder</type>
        <type>DistributionTask</type>
        <type>GenericDistributionTask</type>
        <type>PersonalDistributionTask</type>
        <type>DistributionStep</type>
      </subtypes>
      <deniedSubtypes>
        <type>DocumentRouteStep</type>
      </deniedSubtypes>
    </type>

  </extension>

</component>