Platform Explorer / Nuxeo Platform 2021.58

Contribution org.nuxeo.ecm.platform.admin.center.actions.widgets--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.admin.center.actions.widgets inside nuxeo-admin-center-jsf-2021.58.6.jar /OSGI-INF/action-widgets-contrib.xml

Extension Point

Extension point widgettypes of component LayoutStore.

Registration Order

0
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widgetType name="admin_rest_document_link">
          <categories>
            <category>jsfAction</category>
          </categories>
          <configuration>
            <sinceVersion>6.0</sinceVersion>
            <title>Document Admin Rest Link</title>
            <description>
              Widget displaying a restful document link for an action
              (typically a tab link). Useful for Admin Center tabs migration to tabs
              widget, to apply compatibility changes on existing actions.
            </description>
            <categories>
              <category>action</category>
            </categories>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <properties>
              <defaultValues mode="any">
                <property name="repositoryName">#{currentServerLocation.name}</property>
                <property name="discardSurroundingForm">true</property>
                <property name="disableMultiPartForm">true</property>
                <property name="supportAjax">#{canUseAjaxTabs}</property>
                <property name="view">view_admin</property>
                <property name="pattern">admin</property>
              </defaultValues>
              <layouts mode="view">
                <layout name="rest_document_link_action_widget_type_properties_view">
                  <rows>
                    <row>
                      <widget category="actionWidgetTypeConf">label</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">icon</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">ajaxSupport</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">onclick</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">target</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">confirm</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">confirmMessage</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">confirmMessageArgs</widget>
                    </row>
                    <row>
                      <widget category="actionWidgetTypeConf">rest_document_link_view</widget>
                    </row>
                  </rows>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.actions.facelets.ActionWidgetTypeHandler
          </handler-class>
          <property name="template">
            /incl/action/widgets/rest_document_link_action_template.xhtml
          </property>
          <property name="compat_template">
            /incl/action/rest_document_link_action_template.xhtml
          </property>
          <property name="dev_template">
            /widgets/actions/dev/action_widget_type_dev_template.xhtml
          </property>
        </widgetType>

    Widget displaying a restful document link for an action (typically a tab link). Useful for Admin Center tabs migration to tabs widget, to apply compatibility changes on existing actions.

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.LayoutStore">

    <widgetType name="admin_rest_document_link">
      <categories>
        <category>jsfAction</category>
      </categories>
      <configuration>
        <sinceVersion>6.0</sinceVersion>
        <title>Document Admin Rest Link</title>
        <description>
          Widget displaying a restful document link for an action
          (typically a tab link). Useful for Admin Center tabs migration to tabs
          widget, to apply compatibility changes on existing actions.
        </description>
        <categories>
          <category>action</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="repositoryName">#{currentServerLocation.name}</property>
            <property name="discardSurroundingForm">true</property>
            <property name="disableMultiPartForm">true</property>
            <property name="supportAjax">#{canUseAjaxTabs}</property>
            <property name="view">view_admin</property>
            <property name="pattern">admin</property>
          </defaultValues>
          <layouts mode="view">
            <layout name="rest_document_link_action_widget_type_properties_view">
              <rows>
                <row>
                  <widget category="actionWidgetTypeConf">label</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">icon</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">ajaxSupport</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">onclick</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">target</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirm</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirmMessage</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirmMessageArgs</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">rest_document_link_view</widget>
                </row>
              </rows>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.actions.facelets.ActionWidgetTypeHandler
      </handler-class>
      <property name="template">
        /incl/action/widgets/rest_document_link_action_template.xhtml
      </property>
      <property name="compat_template">
        /incl/action/rest_document_link_action_template.xhtml
      </property>
      <property name="dev_template">
        /widgets/actions/dev/action_widget_type_dev_template.xhtml
      </property>
    </widgetType>

  </extension>