Revision: 29806
Author:   wko
Date:     2011-08-23 21:01:48 +0200 (Tue, 23 Aug 2011)
Log Message:
-----------
JCR-12: implementing commons-configuration based application factory with unit 
test and test configuration

Modified Paths:
--------------
    
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/AbstractApplicationFactory.java
    
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactory.java
    
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/JavaApplicationFactory.java
    
experimental/hippo-jcr-console/trunk/engine/src/test/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactoryTest.java
    
experimental/hippo-jcr-console/trunk/engine/src/test/resources/org/onehippo/jcr/console/engine/plugin/config/impl/test-config.xml

Modified: 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/AbstractApplicationFactory.java
===================================================================
--- 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/AbstractApplicationFactory.java
        2011-08-23 16:15:55 UTC (rev 29805)
+++ 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/AbstractApplicationFactory.java
        2011-08-23 19:01:48 UTC (rev 29806)
@@ -31,7 +31,7 @@
     
     private Map<String, IPluginConfigService> applicationMap;
 
-    protected JavaPluginConfig simplePluginConfig(String name, String 
wicketId, String pluginClass)
+    protected JavaPluginConfig createPluginConfig(String name, String 
wicketId, String pluginClass)
     {
         JavaPluginConfig cconfig = new JavaPluginConfig(name);
         cconfig.put("wicket.model", "service.model");

Modified: 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactory.java
===================================================================
--- 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactory.java
    2011-08-23 16:15:55 UTC (rev 29805)
+++ 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactory.java
    2011-08-23 19:01:48 UTC (rev 29806)
@@ -19,6 +19,7 @@
 import java.util.Map;
 
 import org.apache.commons.configuration.Configuration;
+import org.apache.commons.lang.StringUtils;
 import org.onehippo.jcr.console.engine.plugin.config.IPluginConfigService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -45,10 +46,11 @@
         
         for (int i = 0; i < serviceNames.length; i++) {
             String serviceName = serviceNames[i];
-            JavaConfigService service = new JavaConfigService(serviceName);
+            String defaultClusterName = serviceName;
+            JavaConfigService service = new 
JavaConfigService(defaultClusterName);
             applications.put(serviceName, service);
             
-            Configuration clustersConfig = configuration.subset("service(" + i 
+ ").clusters");
+            Configuration clustersConfig = 
configuration.subset(String.format("service(%d).clusters", i));
             String [] clusterNames = 
clustersConfig.getStringArray("cluster.name");
             
             for (int j = 0; j < clusterNames.length; j++) {
@@ -56,11 +58,11 @@
                 JavaClusterConfig cluster = new JavaClusterConfig();
                 service.addClusterConfig(clusterName, cluster);
                 
-                Configuration pluginsConfig = clustersConfig.subset("cluster(" 
+ j + ").plugins");
+                Configuration pluginsConfig = 
clustersConfig.subset(String.format("cluster(%d).plugins", j));
                 String [] pluginNames = 
pluginsConfig.getStringArray("plugin.name");
                 
                 for (int k = 0; k < pluginNames.length; k++) {
-                    Configuration pluginConfig = 
pluginsConfig.subset("plugin(" + k + ")");
+                    Configuration pluginConfig = 
pluginsConfig.subset(String.format("plugin(%d)", k));
                     JavaPluginConfig plugin = createPluginConfig(pluginConfig);
                     cluster.addPlugin(plugin);
                 }
@@ -77,16 +79,22 @@
         
         for (int i = 0; i < keys.length; i++) {
             String key = keys[i];
-            String [] values = pluginConfig.getStringArray("map.entry(" + i + 
").value");
+            String [] values = 
pluginConfig.getStringArray(String.format("map.entry(%d).value", i));
+            int valuesCount = (values != null ? values.length : 0);
             
-            if (values != null) {
-                if (values.length == 0) {
-                    plugin.put(key, null);
-                } else if (values.length == 1) {
+            if (valuesCount > 0) {
+                if (values.length == 1) {
                     plugin.put(key, values[0]);
                 } else {
                     plugin.put(key, values);
                 }
+            } else {
+                String childPluginName = 
pluginConfig.getString(String.format("map.entry(%d).plugin.name", i));
+                
+                if (!StringUtils.isEmpty(childPluginName)) {
+                    JavaPluginConfig childPlugin = 
createPluginConfig(pluginConfig.subset(String.format("map.entry(%d).plugin", 
i)));
+                    plugin.put(key, childPlugin);
+                }
             }
         }
 

Modified: 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/JavaApplicationFactory.java
===================================================================
--- 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/JavaApplicationFactory.java
    2011-08-23 16:15:55 UTC (rev 29805)
+++ 
experimental/hippo-jcr-console/trunk/engine/src/main/java/org/onehippo/jcr/console/engine/plugin/config/impl/JavaApplicationFactory.java
    2011-08-23 19:01:48 UTC (rev 29806)
@@ -108,45 +108,45 @@
         consoleCluster.addPlugin(cconfig);
         
         // console/sorter
-        consoleCluster.addPlugin(simplePluginConfig("sorter", 
"service.sorter", "org.onehippo.jcr.console.plugins.menu.SortMenuPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("sorter", 
"service.sorter", "org.onehippo.jcr.console.plugins.menu.SortMenuPlugin"));
         
         // console/tree
-        consoleCluster.addPlugin(simplePluginConfig("tree", "service.tree", 
"org.onehippo.jcr.console.plugins.browser.BrowserPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("tree", "service.tree", 
"org.onehippo.jcr.console.plugins.browser.BrowserPlugin"));
         
         // console/center
-        consoleCluster.addPlugin(simplePluginConfig("center", 
"service.center", "org.onehippo.jcr.console.plugins.editor.EditorPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("center", 
"service.center", "org.onehippo.jcr.console.plugins.editor.EditorPlugin"));
         
         // console/breadcrumb
-        consoleCluster.addPlugin(simplePluginConfig("breadcrumb", 
"service.breadcrumb", 
"org.onehippo.jcr.console.plugins.breadcrumb.BreadcrumbPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("breadcrumb", 
"service.breadcrumb", 
"org.onehippo.jcr.console.plugins.breadcrumb.BreadcrumbPlugin"));
         
         // console/menu
-        cconfig = simplePluginConfig("menu", "service.menu", 
"org.onehippo.jcr.console.plugins.menu.MenuPlugin");
+        cconfig = createPluginConfig("menu", "service.menu", 
"org.onehippo.jcr.console.plugins.menu.MenuPlugin");
         cconfig.put("item", "service.menu.item");
         cconfig.put("wicket.dialog", "service.dialog");
         consoleCluster.addPlugin(cconfig);
         
         // console/permissions
-        consoleCluster.addPlugin(simplePluginConfig("permission", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.permissions.PermissionsPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("permission", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.permissions.PermissionsPlugin"));
         
         // console/references
-        consoleCluster.addPlugin(simplePluginConfig("references", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.refs.ReferencesPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("references", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.refs.ReferencesPlugin"));
         
         // console/xmlimport
-        consoleCluster.addPlugin(simplePluginConfig("xmlimport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.content.ContentImportPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("xmlimport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.content.ContentImportPlugin"));
         
         // console/xmlexport
-        cconfig = simplePluginConfig("xmlexport", "service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.content.ContentExportPlugin");
+        cconfig = createPluginConfig("xmlexport", "service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.content.ContentExportPlugin");
         cconfig.put("label", "XML Export");
         consoleCluster.addPlugin(cconfig);
         
         // console/checkinout
-        consoleCluster.addPlugin(simplePluginConfig("checkinout", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.check.CheckInOutPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("checkinout", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.check.CheckInOutPlugin"));
         
         // console/cndimport
-        consoleCluster.addPlugin(simplePluginConfig("cndimport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.cnd.CndImportPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("cndimport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.cnd.CndImportPlugin"));
         
         // console/cndexport
-        consoleCluster.addPlugin(simplePluginConfig("cndexport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.cnd.CndExportPlugin"));
+        consoleCluster.addPlugin(createPluginConfig("cndexport", 
"service.menu.item", 
"org.onehippo.jcr.console.plugins.menu.cnd.CndExportPlugin"));
         
         // console/check
         cconfig = new JavaPluginConfig("check");
@@ -155,7 +155,7 @@
         consoleCluster.addPlugin(cconfig);
         
         // console/logout
-        cconfig = simplePluginConfig("logout", "service.logout", 
"org.onehippo.jcr.console.plugins.logout.LogoutPlugin");
+        cconfig = createPluginConfig("logout", "service.logout", 
"org.onehippo.jcr.console.plugins.logout.LogoutPlugin");
         cconfig.put("wicket.dialog", "service.logout.dialog");
         consoleCluster.addPlugin(cconfig);
         

Modified: 
experimental/hippo-jcr-console/trunk/engine/src/test/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactoryTest.java
===================================================================
--- 
experimental/hippo-jcr-console/trunk/engine/src/test/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactoryTest.java
        2011-08-23 16:15:55 UTC (rev 29805)
+++ 
experimental/hippo-jcr-console/trunk/engine/src/test/java/org/onehippo/jcr/console/engine/plugin/config/impl/CommonsConfigurationApplicationFactoryTest.java
        2011-08-23 19:01:48 UTC (rev 29806)
@@ -15,26 +15,128 @@
  */
 package org.onehippo.jcr.console.engine.plugin.config.impl;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNotSame;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;
+
 import java.net.URL;
+import java.util.Arrays;
+import java.util.List;
 
+import org.apache.commons.collections.SetUtils;
 import org.apache.commons.configuration.Configuration;
 import org.apache.commons.configuration.XMLConfiguration;
 import org.junit.Before;
 import org.junit.Test;
+import org.onehippo.jcr.console.engine.plugin.config.IClusterConfig;
+import org.onehippo.jcr.console.engine.plugin.config.IPluginConfig;
+import org.onehippo.jcr.console.engine.plugin.config.IPluginConfigService;
 
 public class CommonsConfigurationApplicationFactoryTest {
-    
+
     private Configuration configuration;
-    
+
     @Before
     public void setUp() throws Exception {
         URL configURL = getClass().getResource("test-config.xml");
         configuration = new XMLConfiguration(configURL);
     }
-    
+
     @Test
     public void testApplicationFactory() throws Exception {
-        // TODO
+        IApplicationFactory factory = new 
CommonsConfigurationApplicationFactory(configuration);
+
+        IPluginConfigService defaultApp = factory.getDefaultApplication();
+        IPluginConfigService loginApp = factory.getApplication("login");
+        IPluginConfigService consoleApp = factory.getApplication("console");
+
+        assertSame(defaultApp, loginApp);
+        assertNotSame(loginApp, consoleApp);
     }
+
+    @Test
+    public void testLoginApplication() throws Exception {
+        IApplicationFactory factory = new 
CommonsConfigurationApplicationFactory(configuration);
+
+        IPluginConfigService loginApp = factory.getApplication("login");
+
+        IClusterConfig defaultCluster = loginApp.getDefaultCluster();
+        IClusterConfig loginCluster = loginApp.getCluster("login");
+
+        assertSame(defaultCluster, loginCluster);
+        assertNotNull(loginCluster.getPlugins());
+
+        List<IPluginConfig> plugins = loginCluster.getPlugins();
+        assertTrue(plugins.size() == 1);
+
+        IPluginConfig loginPagePlugin = plugins.get(0);
+
+        assertEquals("loginPage", loginPagePlugin.getName());
+        assertEquals("service.behavior.browser.check", 
loginPagePlugin.getString("wicket.behavior"));
+        assertTrue(SetUtils.isEqualSet(
+                Arrays.asList(new String[] { "ie 7 >=", "firefox 3 >=", 
"safari 5 >=", "chrome 7 >=" }),
+                
Arrays.asList(loginPagePlugin.getStringArray("browsers.supported"))));
+        assertEquals("skin/screen.css", 
loginPagePlugin.getString("wicket.skin"));
+        
assertEquals("org.onehippo.jcr.console.engine.plugins.login.LoginPlugin", 
loginPagePlugin.getString("plugin.class"));
+        assertEquals("service.root", loginPagePlugin.getString("wicket.id"));
+    }
+
+    @Test
+    public void testConsoleApplication() throws Exception {
+        IApplicationFactory factory = new 
CommonsConfigurationApplicationFactory(configuration);
+
+        IPluginConfigService consoleApp = factory.getApplication("console");
+
+        IClusterConfig defaultCluster = consoleApp.getDefaultCluster();
+        IClusterConfig consoleCluster = consoleApp.getCluster("console");
+
+        assertSame(defaultCluster, consoleCluster);
+        assertNotNull(consoleCluster.getPlugins());
+
+        List<IPluginConfig> plugins = consoleCluster.getPlugins();
+        assertTrue(plugins.size() > 1);
+
+        IPluginConfig rootPlugin = plugins.get(0);
+        IPluginConfig topPlugin = plugins.get(1);
+        
+        assertNotSame(rootPlugin, topPlugin);
+
+        assertEquals("root", rootPlugin.getName());
+        assertEquals("service.center", 
rootPlugin.getString("extension.center"));
+        assertEquals("service.dialog", rootPlugin.getString("wicket.dialog"));
+        assertTrue(SetUtils.isEqualSet(
+                Arrays.asList(new String[] { "extension.top", 
"extension.left", "extension.center" }),
+                
Arrays.asList(rootPlugin.getStringArray("wicket.extensions"))));
+        assertEquals("service.top", rootPlugin.getString("extension.top"));
+        assertEquals("service.model", rootPlugin.getString("wicket.model"));
+        assertEquals("service.left", rootPlugin.getString("extension.left"));
+        assertEquals("org.onehippo.jcr.console.plugins.RootPlugin", 
rootPlugin.getString("plugin.class"));
+        assertEquals("service.root", rootPlugin.getString("wicket.id"));
+        
+        IPluginConfig yuiConfig = rootPlugin.getPluginConfig("yui.config");
+        
+        assertNotNull(yuiConfig);
+        assertEquals("yui.config", yuiConfig.getName());
+        assertEquals(71, yuiConfig.getInt("header.height"));
+        assertEquals("0px 0px 5px 10px", yuiConfig.getString("left.gutter"));
+        assertTrue(yuiConfig.getBoolean("body.scroll"));
+        assertEquals("0px 10px 5px 0px", yuiConfig.getString("body.gutter"));
+        assertEquals(460, yuiConfig.getInt("left.width"));
+        assertEquals("0px 10px 0px 10px", 
yuiConfig.getString("header.gutter"));
+        assertTrue(yuiConfig.getBoolean("left.resize"));
+        
+        assertEquals("top", topPlugin.getName());
+        assertTrue(SetUtils.isEqualSet(
+                Arrays.asList(new String[] { "extension.breadcrumb", 
"extension.logout", "extension.menu", "extension.check" }),
+                Arrays.asList(topPlugin.getStringArray("wicket.extensions"))));
+        assertEquals("service.logout", 
topPlugin.getString("extension.logout"));
+        assertEquals("service.menu", topPlugin.getString("extension.menu"));
+        assertEquals("org.onehippo.jcr.console.plugins.TopPlugin", 
topPlugin.getString("plugin.class"));
+        assertEquals("service.check", topPlugin.getString("extension.check"));
+        assertEquals("service.top", topPlugin.getString("wicket.id"));
+        assertEquals("service.breadcrumb", 
topPlugin.getString("extension.breadcrumb"));
+    }
     
 }

Modified: 
experimental/hippo-jcr-console/trunk/engine/src/test/resources/org/onehippo/jcr/console/engine/plugin/config/impl/test-config.xml
===================================================================
--- 
experimental/hippo-jcr-console/trunk/engine/src/test/resources/org/onehippo/jcr/console/engine/plugin/config/impl/test-config.xml
   2011-08-23 16:15:55 UTC (rev 29805)
+++ 
experimental/hippo-jcr-console/trunk/engine/src/test/resources/org/onehippo/jcr/console/engine/plugin/config/impl/test-config.xml
   2011-08-23 19:01:48 UTC (rev 29806)
@@ -89,7 +89,7 @@
                 <value>service.root</value>
               </entry>
               <entry>
-                <key></key>
+                <key>yui.config</key>
                 <plugin>
                   <name>yui.config</name>
                   <map>
@@ -126,6 +126,389 @@
               </entry>
             </map>
           </plugin>
+          <plugin>
+            <name>top</name>
+            <map>
+              <entry>
+                <key>wicket.extensions</key>
+                <value>extension.breadcrumb</value>
+                <value>extension.logout</value>
+                <value>extension.menu</value>
+                <value>extension.check</value>
+              </entry>
+              <entry>
+                <key>extension.logout</key>
+                <value>service.logout</value>
+              </entry>
+              <entry>
+                <key>extension.menu</key>
+                <value>service.menu</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                <value>org.onehippo.jcr.console.plugins.TopPlugin</value>
+              </entry>
+              <entry>
+                <key>extension.check</key>
+                <value>service.check</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.top</value>
+              </entry>
+              <entry>
+                <key>extension.breadcrumb</key>
+                <value>service.breadcrumb</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>left</name>
+            <map>
+              <entry>
+                <key>extension.sorter</key>
+                <value>service.sorter</value>
+              </entry>
+              <entry>
+                <key>wicket.behavior</key>
+                <value>service.layout.left</value>
+              </entry>
+              <entry>
+                <key>wicket.extensions</key>
+                <value>extension.sorter</value>
+                <value>extension.tree</value>
+              </entry>
+              <entry>
+                <key>wicket.model</key>
+                <value></value>
+              </entry>
+              <entry>
+                <key>extension.tree</key>
+                <value>service.tree</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                <value>org.onehippo.jcr.console.plugins.LeftPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.left</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>sorter</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.SortMenuPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.sorter</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>tree</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.browser.BrowserPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.tree</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>center</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.editor.EditorPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.center</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>breadcrumb</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.breadcrumb.BreadcrumbPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.breadcrumb</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>menu</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                <value>org.onehippo.jcr.console.plugins.menu.MenuPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu</value>
+              </entry>
+              <entry>
+                <key>item</key>
+                <value>service.menu.item</value>
+              </entry>
+              <entry>
+                <key>wicket.dialog</key>
+                <value>service.dialog</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>permission</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.permissions.PermissionsPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>references</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.refs.ReferencesPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>xmlimport</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.content.ContentImportPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>xmlexport</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.content.ContentExportPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>xmlexport</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.content.ContentExportPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+              <entry>
+                <key>label</key>
+                <value>XML Export</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>checkinout</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.check.CheckInOutPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>cndimport</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.cnd.CndImportPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>cndexport</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.cnd.CndExportPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.menu.item</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>check</name>
+            <map>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.menu.CheckPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.check</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>logout</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value>service.model</value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.plugins.logout.LogoutPlugin</value>
+              </entry>
+              <entry>
+                <key>wicket.id</key>
+                <value>service.logout</value>
+              </entry>
+              <entry>
+                <key>wicket.dialog</key>
+                <value>service.logout.dialog</value>
+              </entry>
+            </map>
+          </plugin>
+          <plugin>
+            <name>browserBehavior</name>
+            <map>
+              <entry>
+                <key>wicket.model</key>
+                <value></value>
+              </entry>
+              <entry>
+                <key>plugin.class</key>
+                
<value>org.onehippo.jcr.console.engine.plugins.yui.layout.WireframePlugin</value>
+              </entry>
+              <entry>
+                <key>behavior.id</key>
+                <value>service.layout.left</value>
+              </entry>
+              <entry>
+                <key>yui.config</key>
+                <plugin>
+                  <name>yui.config</name>
+                  <map>
+                    <entry>
+                      <key>center</key>
+                      
<value>id=navigator-center,body=navigator-center-body,scroll=true</value>
+                    </entry>
+                    <entry>
+                      <key>top</key>
+                      <value>id=navigator-top,height=24</value>
+                    </entry>
+                    <entry>
+                      <key>linked.with.parent</key>
+                      <value>true</value>
+                    </entry>
+                    <entry>
+                      <key>root.id</key>
+                      <value>navigator-wrapper</value>
+                    </entry>
+                    <entry>
+                      <key>units</key>
+                      <value>top</value>
+                      <value>center</value>
+                    </entry>
+                  </map>
+                </plugin>
+              </entry>
+            </map>
+          </plugin>
         </plugins>
       </cluster>
     </clusters>

_______________________________________________
Hippocms-svn mailing list
[email protected]
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to