<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin SYSTEM "plugin.dtd">

<!--THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
5724-J08, 5724-I63, 5724-H88, 5724-H89, 5655-N02, 5733-W70 COPYRIGHT International Business Machines Corp., 1997, 2010
All Rights Reserved * Licensed Materials - Property of IBM
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.--> 

<plugin id="com.ibm.ws.console.dynacache" 
        name="dynacache" 
        version="1.0.0" 
        vendor-name="IBM Corp. - WebSphere Server Group"
        embedded="true"
        context-root="dynacache">  
   
<requires>
    <import plugin="com.ibm.ws.console.core"/>
    <import plugin="com.ibm.ws.console.servermanagement"/>
    <import plugin="com.ibm.ws.console.pme.resources"/>
</requires>

<extension point="com.ibm.ws.console.core.help">
  <toc file="toc.xml" primary="true" />
</extension>

<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="servermanagement.Server"
          contextType="Server">
    <link label="ApplicationServer.components.DynamicCache.displayName"
          description="ApplicationServer.components.DynamicCache.description"
          categoryId="containerservices.properties"
          actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=DynamicCache.config.view&amp;sfname=services&amp;lastPage=Server.config.view"/>
   </linkSet>
</extension>

<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="servermanagement.ApplicationServer"
          contextType="ApplicationServer">
    <link label="ApplicationServer.components.DynamicCache.displayName"
          description="ApplicationServer.components.DynamicCache.description"
          categoryId="containerservices.properties"
          actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=DynamicCache.config.view&#38;sfname=services&#38;lastPage=ApplicationServer.config.view"/>
  </linkSet>
</extension>

<!-- BEGIN LIDB3726-2 -->
<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="servermanagement.ClusterMember"
          contextType="ClusterMember">
    <link label="ApplicationServer.components.DynamicCache.displayName"
          description="ApplicationServer.components.DynamicCache.description"
          categoryId="clustermember.containerservices.properties"
          actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=DynamicCache.config.view&#38;sfname=services&#38;lastPage=ClusterMember.config.view"/>
  </linkSet>
</extension>
<!-- END LIDB3726-2 -->

<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="dynacache.DynamicCache"
          contextType="DynamicCache">
    <link label="DynamicCache.cacheGroups.displayName"
          description="DynamicCache.cacheGroups.description"
          categoryId="additional.properties"
          actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=ExternalCacheGroup.content.main&#38;sfname=cacheGroups"/>
  </linkSet>
</extension>

<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="dynacache.DynamicCache2"
          contextType="DynamicCache">
    <link label="Service.properties.displayName"
          description="Service.properties.description"
          categoryId="additional.properties"
          actionURI="com.ibm.ws.console.servermanagement.forwardCmd.do?forwardName=Property.content.main&amp;sfname=properties"/>
  </linkSet>
</extension>

<extension point="com.ibm.websphere.wsc.link">
  <linkSet id="dynacache.ExternalCacheGroup"
          contextType="ExternalCacheGroup">
    <link label="ExternalCacheGroup.members.displayName"
          description="ExternalCacheGroup.members.description"
          categoryId="additional.properties"
          actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=ExternalCacheGroupMember.content.main&#38;sfname=members"/>
  </linkSet>
</extension>

<!-- buttons.panel -->
<extension point="com.ibm.websphere.wsc.actionSet">
    <actionSet id="dynacache.ExternalCacheGroupMember.collection1" contextType="ExternalCacheGroupMember">
        <action
              enablesFor="Collection"
              role="administrator,configurator"
              label="button.new"
              actionURI="externalCacheGroupMemberCollection.do">
        </action>
        <action
              enablesFor="Collection"
              role="administrator,configurator"
              label="button.delete"
              actionURI="externalCacheGroupMemberCollection.do">
        </action>
    </actionSet>
</extension>
<extension point="com.ibm.websphere.wsc.actionSet">
    <actionSet id="dynacache.ExternalCacheGroup.collection1" contextType="ExternalCacheGroup">
        <action
              enablesFor="Collection"
              role="administrator,configurator"
              label="button.new"
              actionURI="externalCacheGroupCollection.do">
        </action>
        <action
              enablesFor="Collection"
              role="administrator,configurator"
              label="button.delete"
              actionURI="externalCacheGroupCollection.do">
        </action>
    </actionSet>
</extension>

<!-- collection.table.extends -->
<extension point="com.ibm.websphere.wsc.collectionItem">
    <collectionItem id="dynacache.ExternalCacheGroupMember1" contextType="ExternalCacheGroupMember">
        <item
              attributeName="address"
              sortable="sort"
              itemURI="externalCacheGroupMemberCollection.do?EditAction=true"
              label="ExternalCacheGroupMember.address.displayName">
        </item>
        <item
              attributeName="adapterBeanName"
              sortable="sort"
              itemURI=""
              label="ExternalCacheGroupMember.adapterBeanName.displayName">
        </item>
    </collectionItem>
</extension>
<extension point="com.ibm.websphere.wsc.collectionItem">
    <collectionItem id="dynacache.ExternalCacheGroup1" contextType="ExternalCacheGroup">
        <item
              attributeName="name"
              sortable="sort"
              itemURI="externalCacheGroupCollection.do?EditAction=true"
              label="ExternalCacheGroup.name.displayName">
        </item>
        <item
              attributeName="type"
              sortable="sort"
              itemURI=""
              label="ExternalCacheGroup.type.displayName">
        </item>
    </collectionItem>
</extension>

<!-- tabsLayout -->
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="dynacache.ExternalCacheGroup1" contextType="ExternalCacheGroup">
        <tab
              label="tab.configuration"
              contentURI="ExternalCacheGroup.config.tab.view">
        </tab>
    </detailTab>
</extension>
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="dynacache.ExternalCacheGroupMember1" contextType="ExternalCacheGroupMember">
        <tab
              label="tab.configuration"
              contentURI="ExternalCacheGroupMember.config.tab.view">
        </tab>
    </detailTab>
</extension>
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="dynacache.DynamicCache1" contextType="DynamicCache">
        <tab
              label="tab.configuration"
              contentURI="DynamicCache.config.tab.view">
        </tab>
    </detailTab>
</extension>

<!-- The following were added because of the move of CacheInstance from ws/code/webui.pme to ws/code/webui.dynacache -->

<!-- Add a link under resource navigator panel -->
<extension point="com.ibm.ws.console.core.navigatorTask">
    <tasks>
  <categoryDefinition id="CacheInstanceResourceTask" parent="resources" icon="/com.ibm.ws.console.resources/images/onepix.gif" label="CacheInstance.displayName" weight="160"/>
            <task id="ObjectCacheInstanceResourceTask" icon="/com.ibm.ws.console.resources/images/onepix.gif" label="ObjectCacheInstance.displayName" view="/navigatorCmd.do?forwardName=CacheInstance.content.main" external="false" weight="103">
		        <category id="CacheInstanceResourceTask"/>
            </task>
            <task id="ServletCacheInstanceResourceTask" icon="/com.ibm.ws.console.resources/images/onepix.gif" label="ServletCacheInstance.displayName" view="/navigatorCmd.do?forwardName=ServletCacheInstance.content.main" external="false" weight="103">
		        <category id="CacheInstanceResourceTask"/>
            </task>
  </tasks>    
</extension>   

<!--LI2505 LinkProcessor changes -->
<extension point="com.ibm.websphere.wsc.link">
    <linkSet id="DynaCache_Link.CacheInstance1" contextType="CacheInstance">
        <link
              categoryId="additional.properties"
              label="J2EEResourceFactory.propertySet.displayName"
              description="J2EEResourceFactory.propertySet.description"
              actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=PMEJ2EEResourceProperty.content.main&amp;sfname=propertySet">
        </link>
    </linkSet>
</extension>

<extension point="com.ibm.websphere.wsc.link">
    <linkSet id="DynaCache_Link.CacheInstance10" contextType="ServletCacheInstance">
        <link
              categoryId="additional.properties"
              label="J2EEResourceFactory.propertySet.displayName"
              description="J2EEResourceFactory.propertySet.description"
              actionURI="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=PMEJ2EEResourceProperty.content.main&amp;sfname=propertySet">
        </link>
    </linkSet>
</extension>

<!-- LI2505 ActionSetProcessor changes -->
<extension point="com.ibm.websphere.wsc.actionSet">
    <actionSet id="DynaCache_ActionSet.CacheInstance.collection1" contextType="CacheInstance">
        <action
              enablesFor="Collection"
              label="button.new"
              actionURI="cacheInstanceCollection.do"
              role="administrator,configurator">
        </action>
        <action
              enablesFor="Collection"
              label="button.delete"
              actionURI="cacheInstanceCollection.do"
              role="administrator,configurator">
        </action>
    </actionSet>
</extension>

<extension point="com.ibm.websphere.wsc.actionSet">
    <actionSet id="DynaCache_ActionSet.ServletCacheInstance.collection1" contextType="ServletCacheInstance">
        <action
              enablesFor="Collection"
              label="button.new"
              actionURI="servletCacheInstanceCollection.do"
              role="administrator,configurator">
        </action>
        <action
              enablesFor="Collection"
              label="button.delete"
              actionURI="servletCacheInstanceCollection.do"
              role="administrator,configurator">
        </action>
    </actionSet>
</extension>

<!-- LI2505 CollectionItemProcessor changes -->
<extension point="com.ibm.websphere.wsc.collectionItem">
    <collectionItem id="DynaCache_CollectionItem.CacheInstance.collectionItem1" contextType="CacheInstance">
        <item
              attributeName="name"
              sortable="sort"
              itemURI="cacheInstanceCollection.do?EditAction=true"
              label="J2EEResourceFactory.name.displayName">
        </item>
        <item
              attributeName="jndiName"
              type="url"
              sortable="sort"
              itemURI=""
              label="J2EEResourceFactory.jndiName.displayName">
        </item>
        <item
             attributeName="contextID"
             sortable="sort"
             itemURI=""
             label="label.scope">
        </item>
        <item
              attributeName="cacheSize"
              sortable="sort"
              itemURI=""
              label="CacheInstance.cacheSize.displayName">
        </item>
    </collectionItem>
</extension>

<extension point="com.ibm.websphere.wsc.collectionItem">
    <collectionItem id="DynaCache_CollectionItem.ServletCacheInstance.collectionItem1" contextType="ServletCacheInstance">
        <item
              attributeName="name"
              sortable="sort"
              itemURI="servletCacheInstanceCollection.do?EditAction=true"
              label="J2EEResourceFactory.name.displayName">
        </item>
        <item
              attributeName="jndiName"
              type="url"
              sortable="sort"
              itemURI=""
              label="J2EEResourceFactory.jndiName.displayName">
        </item>
        <item
             attributeName="contextID"
             sortable="sort"
             itemURI=""
             label="label.scope">
        </item>
        <item
              attributeName="cacheSize"
              sortable="sort"
              itemURI=""
              label="ServletCacheInstance.cacheSize.displayName">
        </item>
    </collectionItem>
</extension>

<!-- LI2505 DetailTabProcessor changes -->
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="DynaCache_DetailTab.CacheInstance.detailTab1" contextType="CacheInstance">
        <tab
              label="tab.configuration"
              contentURI="CacheInstance.config.tab.view">
        </tab>
    </detailTab>
</extension>
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="DynaCache_DetailTab.ServletCacheInstance.detailTab1" contextType="ServletCacheInstance">
        <tab
              label="tab.configuration"
              contentURI="ServletCacheInstance.config.tab.view">
        </tab>
    </detailTab>
</extension>
<!-- LI2505 DetailTabProcessor changes -->
<extension point="com.ibm.websphere.wsc.detailTab">
    <detailTab id="DynaCache_DetailTab.PMEDynamicCacheDRSSettings.detailTab1" contextType="PMEDynamicCacheDRSSettings">
        <tab
              label="tab.configuration"
              contentURI="PMEDynamicCacheDRSSettings.config.tab.view">
        </tab>
    </detailTab>
</extension>

<!-- enable checkbox was added back in V8 and still not visible in V7 to keep the design consistent -->
<extension point="com.ibm.websphere.wsc.form">
   <form id="DynamicCache.config.general.properties" contextType="DynamicCache">
      <field 
         attributeName="enable"
         perspective="config">
         <compatibility>
         	<match key="com.ibm.websphere.baseProductMajorVersion" 	value="[5-6,8-9]"/>
		 </compatibility>
      </field>
      <field 
         attributeName="memoryCacheSize"
         perspective="config">
         <compatibility>
         	<match key="com.ibm.websphere.baseProductMajorVersion" 	value="[7-9]"/>
		 </compatibility>
      </field>
   </form>
</extension>

<extension point="com.ibm.websphere.wsc.form">
   <form id="CacheInstance.config.general.properties" contextType="CacheInstance">
      <field 
         attributeName="memoryCacheSize"
         perspective="config">
         <compatibility>
         	<match key="com.ibm.websphere.baseProductMajorVersion" 	value="[7-9]"/>
		 </compatibility>
      </field>
   </form>
</extension>

<extension point="com.ibm.websphere.wsc.form">
   <form id="ServletCacheInstance.config.general.properties" contextType="ServletCacheInstance">
      <field 
         attributeName="memoryCacheSize"
         perspective="config">
         <compatibility>
         	<match key="com.ibm.websphere.baseProductMajorVersion" 	value="[7-9]"/>
		 </compatibility>
      </field>
   </form>
</extension>

</plugin>

