Defining Link Sets

Each <links/> element used with contextual and event links can contain one or more link sets, which are defined using <linkSet/> elements. A <linkSet/> element allows you to define a group of <link/> elements, then reuse that group multiple times in various contextual and event links.

For example, the following defines a link set:

<linkSet name="WS_SESSION_SET">
  <link name="eventLinks.name.resourceActivity"
        menuText="eventLinks.menuText.activityByResource"
        image="JSXAPPS/base/application/images/mnmAllUserActivity.gif"
        defaultFilterId="eventLinks.id.summary"
        defaultEventDescription="detail">
        <filters>
           <!-- All activity by this resource -->
           <filter id="eventLinks.id.all"
                   query="principalName='{principalName}'"
                   description="eventLinks.description.allActivityByResource"/>
              .
              .
              .
</linkSet>

This link set can then be used by including the <linkSet/> element in the <links/> element, as follows:

<links messageId="WS_SECURITY_LOGIN">
   <linkSet name="WS_SESSION_SET"/>
</links>

There are many other examples of link sets in the eventLinks.xml file.