Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.platform.birt.reporting.actions

Services

Extension points

Contributions

XML source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.platform.birt.reporting.actions">

  <require>org.nuxeo.ecm.platform.actions</require>
  <require>org.nuxeo.ecm.platform.preview.actions</require>
  <require>org.nuxeo.ecm.platform.comment.actions</require>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
    <action id="TAB_BIRT_PREVIEW" link="/incl/tabs/birt_preview.xhtml"
      enabled="true" order="0" label="label.document.preview" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview_report</filter-id>
    </action>

    <!-- Hide tabs for ReportModel -->
    <action id="TAB_MY_SUBSCRIPTIONS">
      <filter-id>denyForReportModel</filter-id>
      <filter-id>denyForReportInstance</filter-id>
    </action>

    <action id="TAB_MANAGE_SUBSCRIPTIONS">
      <filter-id>denyForReportModel</filter-id>
      <filter-id>denyForReportInstance</filter-id>
    </action>

    <action id="TAB_RELATIONS">
      <filter-id>denyForReportModel</filter-id>
      <filter-id>denyForReportInstance</filter-id>
    </action>

    <!-- Admin center actions -->
    <action id="BirtModel" link="/view_admin-fragment.xhtml" label="adm.report.models"
      type="admin_rest_document_link"
      order="45">
      <category>NUXEO_ADMIN</category>
      <filter-id>only_for_manager</filter-id>
    </action>

    <action id="TAB_VIEW_REPORT_MODELS" link="/incl/birt/report_content_view.xhtml"
      type="admin_rest_document_link"
      label="tab.report.models" order="10">
      <category>BirtModel_sub_tab</category>
      <filter-id>only_for_manager</filter-id>
    </action>

    <action id="CURRENT_SELECTION_REPORTS_TRASH" link="#{deleteActions.deleteSelection}"
      label="command.trashDocs" icon="" help="comand.trashDocs.help"
      confirm="if( !confirmDeleteDocuments() ) return false;">
      <category>CURRENT_SELECTION_REPORTS_LIST</category>
      <filter id="canDeleteBirtReports">
        <rule grant="true">
          <condition>#{deleteActions.canDelete}</condition>
        </rule>
      </filter>
    </action>
  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">
    <filter id="view_preview_report">
      <rule grant="true">
        <permission>Read</permission>
        <type>BirtReport</type>
      </rule>
    </filter>

    <filter id="denyForReportModel">
      <rule grant="false">
        <type>BirtReportModel</type>
      </rule>
    </filter>

    <filter id="denyForReportInstance">
      <rule grant="false">
        <type>BirtReport</type>
      </rule>
    </filter>

    <filter id="view_preview" append="true">
      <rule grant="false">
        <type>BirtReport</type>
        <type>BirtReportModel</type>
      </rule>
    </filter>

    <filter id="denyFilesTab" append="true">
      <rule grant="false">
        <type>BirtReport</type>
        <type>BirtReportModel</type>
      </rule>
    </filter>

    <filter id="rights" append="true">
      <rule grant="true">
        <type>BirtReport</type>
        <type>BirtReportModel</type>
      </rule>
    </filter>

    <filter id="publish_document" append="true">
      <rule grant="false">
        <type>BirtReport</type>
        <type>BirtReportModel</type>
      </rule>
    </filter>

    <filter id="commentable" append="true">
      <rule grant="false">
        <type>BirtReport</type>
        <type>BirtReportModel</type>
      </rule>
    </filter>
  </extension>

</component>

Documentation