Documentation Center

Admin.XMLDeleteObjPluginConfig.xml

The Admin.XMLDeleteObjPluginConfig.xml file contains the configuration used when deleting plugins. The conditions that can be used to determine if the plugin must be executed are documented in a separate topic.

Changelog

File versionContent Manager versionNotes
1.015.1.0This is the first version of Admin.XMLDeleteObjPluginConfig.xml.

Overview

To access this configuration file in Organize Space, select the Settings tab, then the XML Settings subtab, and then the Delete Plug-ins subsubtab.

XML elements

NameDescription
infoSharePluginConfigRoot node of the plugin XML configuration.
namespacesContains namespace elements.
namespaceProvides the matched namespace for the namespace prefix used in the XPath expression in the plugin parameters.
namespace @prefixThe prefix that is used for the provided namespace.
deleteDescribes a sequence of plugins that will be executed within the current action. The delete element can define the condition that will be used to make sure that no more than one delete element can be found by the plugin engine for the current action in the current conditions. If there is more than one delete element applicable for the current action, the main operation fails.
delete @ishconditionThe condition that determines when the current delete sequence should be activated.
bodyThe element that contains a sequence of body plugins.
sequenceThe element that contains a sequence of body plugins.
pluginDescribes a single plugin.
plugin @nameThe name of the plugin.
plugin @handler The reference to the plugin implementation.
plugin @ishconditionThe condition that determines when the current plugin should be activated.
descriptionThe plugin description.
workingsetDescribes all the metadata fields the plugin can read or write in. These fields are guaranteed to be loaded by the plugin engine.
ishfieldsContains ishfields.
ishfieldDescribes an ishfield.
initializeDescribes everything that should be passed to the plugin instance upon initialization.
parametersContains parameter elements.
parameterThe parameter that is passed to the plugin.

Example

<infoSharePluginConfig version="1.0">
  <namespaces>
    <namespace prefix="ditaarch">http://dita.oasis-open.org/architecture/2005/</namespace>
    <namespace prefix="xlink">http://www.w3.org/1999/xlink</namespace>
    <namespace prefix="m">http://www.w3.org/1998/Math/MathML</namespace>
  </namespaces>
  <delete ishcondition="ISHType in ('ISHMasterDoc', 'ISHModule', 'ISHLibrary', 'ISHIllustration', 'ISHTemplate')">
    <body>
      <sequence>
        <plugin name="RaiseSyncDeleteEvent" handler="OnObjectDeleteSendEvent">
          <description>Send an event when the object is being deleted.</description>
          <workingset>
            <ishfields>
              <ishfield name="FTITLE" level="logical" ishcondition="ISHLevel in ('logical', 'version', 'lng')"/>
              <ishfield name="VERSION" level="version"  ishcondition="ISHLevel in ('version', 'lng')"/>
              <ishfield name="DOC-LANGUAGE" level="lng" ishcondition="ISHLevel='lng'"/>
              <ishfield name="FRESOLUTION" level="lng" ishcondition="ISHType='ISHIllustration' and ISHLevel='lng'"/>
              <ishfield name="FSTATUS" level="lng" ishcondition="ISHLevel='lng'"/>
            </ishfields>
          </workingset>
          <initialize>
            <parameters>
              <parameter name="EventType">SynchronizeDelete</parameter>
              <parameter name="RequestedMetadata">
                <ishfields>
                  <ishfield name="FTITLE" level="logical" ishvaluetype="value" ishcondition="ISHLevel in ('logical', 'version', 'lng')"/>
                  <ishfield name="VERSION" level="version" ishvaluetype="value"  ishcondition="ISHLevel in ('version', 'lng')"/>
                  <ishfield name="DOC-LANGUAGE" level="lng" ishvaluetype="element" ishcondition="ISHLevel='lng'"/>
                  <ishfield name="FRESOLUTION" level="lng" ishvaluetype="element" ishcondition="ISHType='ISHIllustration' and ISHLevel='lng'"/>
                  <ishfield name="FSTATUS" level="lng" ishvaluetype="element" ishcondition="ISHLevel='lng'"/>
                </ishfields>
              </parameter>
              <parameter name="WaitTime">00:00:10</parameter>
            </parameters>
          </initialize>
        </plugin>
      </sequence>
    </body>
  </delete>  
</infoSharePluginConfig>

Remarks

  • The metadata fields specified in the workingset section of each plugin should NOT be specified with an ishvaluetype. The specified fields are added to the context as internal field objects from which the plugin can request all value types.