You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/01/25 14:33:45 UTC

svn commit: r615218 - in /lenya/trunk/src/modules-core/administration: config/cocoon-xconf/ java/src/org/apache/lenya/cms/publication/ java/src/org/apache/lenya/cms/publication/usecases/ resources/i18n/ usecases/

Author: andreas
Date: Fri Jan 25 05:33:44 2008
New Revision: 615218

URL: http://svn.apache.org/viewvc?rev=615218&view=rev
Log:
Added usecases to show and edit the publication configuration

Added:
    lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-editPubConf.xconf
    lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-showPubConf.xconf
    lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/
    lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/
    lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/EditPubConf.java
    lenya/trunk/src/modules-core/administration/usecases/editPubConf.jx
    lenya/trunk/src/modules-core/administration/usecases/showPubConf.jx
Modified:
    lenya/trunk/src/modules-core/administration/config/cocoon-xconf/tabs.xconf
    lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-sessions.xconf
    lenya/trunk/src/modules-core/administration/resources/i18n/cmsui.xml
    lenya/trunk/src/modules-core/administration/resources/i18n/cmsui_de.xml

Modified: lenya/trunk/src/modules-core/administration/config/cocoon-xconf/tabs.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/config/cocoon-xconf/tabs.xconf?rev=615218&r1=615217&r2=615218&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/config/cocoon-xconf/tabs.xconf (original)
+++ lenya/trunk/src/modules-core/administration/config/cocoon-xconf/tabs.xconf Fri Jan 25 05:33:44 2008
@@ -30,6 +30,7 @@
       <tab name="trash" label="Delete Trash" usecase="admin.emptyTrash"/>
       <tab name="serverStatus" label="Server Status" usecase="admin.serverStatus"/>
       <tab name="sessions" label="Sessions" usecase="admin.sessions"/>
+      <tab name="pubConf" label="Publication" usecase="admin.showPubConf"/>
       <tab name="siteOverview" label="Overview" usecase="admin.siteOverview"/>
     </tab-group>
   </xconf>

Added: lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-editPubConf.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-editPubConf.xconf?rev=615218&view=auto
==============================================================================
--- lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-editPubConf.xconf (added)
+++ lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-editPubConf.xconf Fri Jan 25 05:33:44 2008
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: usecases-workflow-deactivate.xconf 348547 2005-11-23 20:13:01Z chestnut $ -->
+<!--
+    This file defines the publication specific use-cases
+-->
+
+<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/component-instance[@name = 'admin.editPubConf']">
+
+  <component-instance name="admin.editPubConf" logger="lenya.admin"
+    class="org.apache.lenya.cms.publication.usecases.EditPubConf">
+    <view uri="modules/administration/usecases/editPubConf.jx" menu="true">
+      <tab group="admin" name="pubConf"/>
+    </view>
+    <exit usecase="admin.showPubConf"/>
+  </component-instance>
+  
+</xconf>

Modified: lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-sessions.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-sessions.xconf?rev=615218&r1=615217&r2=615218&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-sessions.xconf (original)
+++ lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-sessions.xconf Fri Jan 25 05:33:44 2008
@@ -23,7 +23,7 @@
 
   <xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/component-instance[@name = 'admin.sessions']">
     <component-instance name="admin.sessions" logger="lenya.admin" class="org.apache.lenya.cms.ac.usecases.SessionViewer">
-      <view uri="modules/administration/usecases/sessions.jx" menu="true">
+      <view uri="modules/administration/usecases/sessions.jx" menu="true" createContinuation="false">
         <tab group="admin" name="sessions"/>
       </view>
       <exit usecase="admin.sessions"/>

Added: lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-showPubConf.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-showPubConf.xconf?rev=615218&view=auto
==============================================================================
--- lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-showPubConf.xconf (added)
+++ lenya/trunk/src/modules-core/administration/config/cocoon-xconf/usecase-admin-showPubConf.xconf Fri Jan 25 05:33:44 2008
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: usecases-workflow-deactivate.xconf 348547 2005-11-23 20:13:01Z chestnut $ -->
+<!--
+    This file defines the publication specific use-cases
+-->
+
+<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/component-instance[@name = 'admin.showPubConf']">
+
+  <component-instance name="admin.showPubConf" logger="lenya.admin"
+    class="org.apache.lenya.cms.publication.usecases.EditPubConf">
+    <view uri="modules/administration/usecases/showPubConf.jx" menu="true" createContinuation="false">
+      <tab group="admin" name="pubConf"/>
+    </view>
+  </component-instance>
+  
+</xconf>

Added: lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/EditPubConf.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/EditPubConf.java?rev=615218&view=auto
==============================================================================
--- lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/EditPubConf.java (added)
+++ lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/publication/usecases/EditPubConf.java Fri Jan 25 05:33:44 2008
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+package org.apache.lenya.cms.publication.usecases;
+
+import java.io.File;
+
+import org.apache.lenya.cms.publication.Publication;
+import org.apache.lenya.cms.publication.PublicationException;
+import org.apache.lenya.cms.publication.URLInformation;
+import org.apache.lenya.cms.usecase.AbstractUsecase;
+
+/**
+ * Edit the settings of the current publication.
+ */
+public class EditPubConf extends AbstractUsecase {
+
+    private static final String PUB_NAME = "name";
+    private static final String PUB = "publication";
+    private static final String CONTENT_DIR = "contentDir";
+
+    protected void prepareView() throws Exception {
+        super.prepareView();
+        Publication pub = getPublication();
+        setParameter(PUB, pub);
+        setParameter(PUB_NAME, pub.getName());
+        setParameter(CONTENT_DIR, pub.getContentDir());
+        Boolean[] booleans = { Boolean.FALSE, Boolean.TRUE };
+        String[] areas = pub.getAreaNames();
+        for (int b = 0; b < booleans.length; b++) {
+            for (int a = 0; a < areas.length; a++) {
+                boolean ssl = booleans[b].booleanValue();
+                String name = getProxyParameterName(areas[a], ssl);
+                setParameter(name, pub.getProxy(areas[a], ssl).getUrl());
+            }
+        }
+    }
+
+    protected String getProxyParameterName(String area, boolean ssl) {
+        return "proxy-" + area + "-" + ssl;
+    }
+
+    protected void doCheckExecutionConditions() throws Exception {
+        super.doCheckExecutionConditions();
+        Publication pub = getPublication();
+        String name = getParameterAsString(PUB_NAME);
+        if (name == null || name.trim().equals("")) {
+            addErrorMessage("invalid-publication-name");
+        }
+        String contentPath = getParameterAsString(CONTENT_DIR).trim();
+        if (contentPath.equals("")) {
+            addErrorMessage("content-dir-missing");
+        } else {
+            File contentDir;
+            if (contentPath.startsWith("/")) {
+                contentDir = new File(contentPath);
+            } else {
+                contentDir = new File(pub.getDirectory(), contentPath);
+            }
+            if (!contentDir.isDirectory()) {
+                addErrorMessage("content-dir-does-not-exist");
+            }
+        }
+    }
+
+    protected void doExecute() throws Exception {
+        super.doExecute();
+        Publication pub = getPublication();
+
+        String name = getParameterAsString(PUB_NAME);
+        pub.setName(name);
+
+        Boolean[] booleans = { Boolean.FALSE, Boolean.TRUE };
+        String[] areas = pub.getAreaNames();
+        for (int b = 0; b < booleans.length; b++) {
+            for (int a = 0; a < areas.length; a++) {
+                boolean ssl = booleans[b].booleanValue();
+                String paramName = getProxyParameterName(areas[a], ssl);
+                String url = getParameterAsString(paramName);
+                pub.getProxy(areas[a], ssl).setUrl(url);
+            }
+        }
+        pub.saveConfiguration();
+    }
+
+    protected Publication getPublication() throws PublicationException {
+        URLInformation info = new URLInformation(getSourceURL());
+        String pubId = info.getPublicationId();
+        Publication pub = getDocumentFactory().getPublication(pubId);
+        return pub;
+    }
+
+}

Modified: lenya/trunk/src/modules-core/administration/resources/i18n/cmsui.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/resources/i18n/cmsui.xml?rev=615218&r1=615217&r2=615218&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/resources/i18n/cmsui.xml (original)
+++ lenya/trunk/src/modules-core/administration/resources/i18n/cmsui.xml Fri Jan 25 05:33:44 2008
@@ -49,5 +49,21 @@
   <message key="credential-already-contained">
     The role <xhtml:q>{1}</xhtml:q> is already assigned to the object <xhtml:q>{0}</xhtml:q>.
   </message>
+  
+  <!-- publication configuration -->
+  <message key="show-pub-conf">Properties of this Publication</message>
+  <message key="id">ID</message>
+  <message key="name">Name</message>
+  <message key="templates">Templates</message>
+  <message key="languages">Languages</message>
+  <message key="default-language">default language</message>
+  <message key="content-directory">Content directory</message>
+  <message key="content-dir-does-not-exist">The content directory does not exist.</message>
+  <message key="proxies">Proxy URLs</message>
+  <message key="warning-change-proxy-settings">
+    Caution: If you set invalid proxy URLs, you might not be able to access the publication anymore.
+  </message>
+  <message key="modules">Modules</message>
+  <message key="resource-types">Resource types</message>
   
 </catalogue>

Modified: lenya/trunk/src/modules-core/administration/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/resources/i18n/cmsui_de.xml?rev=615218&r1=615217&r2=615218&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/resources/i18n/cmsui_de.xml (original)
+++ lenya/trunk/src/modules-core/administration/resources/i18n/cmsui_de.xml Fri Jan 25 05:33:44 2008
@@ -50,5 +50,21 @@
     Die Rolle <xhtml:q>{1}</xhtml:q> wurde dem Objekt <xhtml:q>{0}</xhtml:q> bereits zugeordnet.
   </message>
   
+  <!-- publication configuration -->
+  <message key="show-pub-conf">Eigenschaften der Publikation</message>
+  <message key="id">ID</message>
+  <message key="name">Name</message>
+  <message key="templates">Templates</message>
+  <message key="languages">Sprachen</message>
+  <message key="default-language">Default-Sprache</message>
+  <message key="content-directory">Inhalts-Ordner</message>
+  <message key="content-dir-does-not-exist">Der Inhalts-Ordner existiert nicht.</message>
+  <message key="proxies">Proxy-URLs</message>
+  <message key="warning-change-proxy-settings">
+    Vorsicht: Falls Sie ungültige Proxy-URLs eintragen, können Sie evtl. nicht mehr auf die Publikation zugreifen.
+  </message>
+  <message key="modules">Module</message>
+  <message key="resource-types">Ressource-Typen</message>
+  
 </catalogue>
 

Added: lenya/trunk/src/modules-core/administration/usecases/editPubConf.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/usecases/editPubConf.jx?rev=615218&view=auto
==============================================================================
--- lenya/trunk/src/modules-core/administration/usecases/editPubConf.jx (added)
+++ lenya/trunk/src/modules-core/administration/usecases/editPubConf.jx Fri Jan 25 05:33:44 2008
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: addGroup.jx 496697 2007-01-16 14:12:36Z andreas $ -->
+
+<page:page
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"    
+  >
+  
+  <page:body>
+    <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/>
+    <div id="contentblock1" class="lenya-tab">
+      <h1><i18n:text>show-pub-conf</i18n:text></h1>
+      
+      <form method="POST">
+        <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+        <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+        
+        <jx:set var="pub" value="${usecase.getParameter('publication')}"/>
+        
+        <table class="lenya-table-noborder">
+          <tr>
+            <td colspan="2">
+              <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>id</i18n:text>:</td>
+            <td>${pub.getId()}</td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><label for="name"><i18n:text>name</i18n:text>:</label></td>
+            <td><input type="text" name="name" value="${usecase.getParameter('name')}"/></td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><label for="contentDir"><i18n:text>content-directory</i18n:text>:</label></td>
+            <td><input type="text" size="60" name="contentDir" value="${usecase.getParameter('contentDir')}"/></td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption" style="vertical-align: top">
+              <p>
+                <i18n:text>proxies</i18n:text>:
+              </p>
+            </td>
+            <td>
+              <p>
+                <i18n:text>warning-change-proxy-settings</i18n:text>
+              </p>
+              <jx:set var="areas" value="${pub.getAreaNames()}"/>
+              <table class="lenya-table-list-noborder">
+                <jx:forEach var="area" items="${areas}">
+                  <tr>
+                    <td class="lenya-entry-caption">${area}:</td>
+                    <td>
+                      <jx:set var="name" value="${'proxy-' + area + '-false'}"/>
+                      <input type="text" size="40" name="${name}" value="${usecase.getParameter(name)}"/>
+                    </td>
+                  </tr>
+                  <tr>
+                    <td class="lenya-entry-caption">${area} (SSL):</td>
+                    <td>
+                      <jx:set var="name" value="${'proxy-' + area + '-true'}"/>
+                      <input type="text" size="40" name="${name}" value="${usecase.getParameter(name)}"/>
+                    </td>
+                  </tr>
+                </jx:forEach>
+              </table>
+            </td>
+          </tr>
+          <tr>
+            <td/>
+            <td>
+              <br/>
+              <input i18n:attr="value" type="submit" name="submit" value="Save"/>
+              <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+            </td>
+          </tr>
+        </table>
+        
+      </form>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/modules-core/administration/usecases/showPubConf.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/usecases/showPubConf.jx?rev=615218&view=auto
==============================================================================
--- lenya/trunk/src/modules-core/administration/usecases/showPubConf.jx (added)
+++ lenya/trunk/src/modules-core/administration/usecases/showPubConf.jx Fri Jan 25 05:33:44 2008
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: addGroup.jx 496697 2007-01-16 14:12:36Z andreas $ -->
+
+<page:page
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"    
+  >
+  
+  <page:body>
+    <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/>
+    <div id="contentblock1" class="lenya-tab">
+      <h1><i18n:text>show-pub-conf</i18n:text></h1>
+      
+      <jx:set var="pub" value="${usecase.getParameter('publication')}"/>
+    
+      <table class="lenya-table-noborder">
+        <tr>
+          <td colspan="2">
+            <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+          </td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption"><i18n:text>id</i18n:text>:</td>
+          <td>${pub.getId()}</td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption"><i18n:text>name</i18n:text>:</td>
+          <td>${pub.getName()}</td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption" style="vertical-align: top"><i18n:text>templates</i18n:text>:</td>
+          <td>
+            <jx:set var="templates" value="${pub.getTemplateIds()}"/>
+            <jx:choose>
+              <jx:when test="${templates.size() == 0}">
+                -
+              </jx:when>
+              <jx:otherwise>
+                <jx:forEach var="template" items="${templates}">
+                  <a href="/${template}/introduction.html">${template}</a>
+                  (${pub.getFactory().getPublication(template).getName()})
+                  <br/>
+                </jx:forEach>
+              </jx:otherwise>
+            </jx:choose>
+          </td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption" style="vertical-align: top"><i18n:text>languages</i18n:text>:</td>
+          <td>
+            <jx:forEach var="language" items="${pub.getLanguages()}">
+              ${language} (<i18n:text>${language}</i18n:text>)
+              <jx:if test="${language.equals(pub.getDefaultLanguage())}">
+                (<i18n:text>default-language</i18n:text>)
+              </jx:if>
+              <br/>
+            </jx:forEach>
+          </td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption"><i18n:text>content-directory</i18n:text>:</td>
+          <td>${pub.getContentDir()}</td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption" style="vertical-align: top"><i18n:text>proxies</i18n:text>:</td>
+          <td>
+            <jx:set var="areas" value="${pub.getAreaNames()}"/>
+            <table class="lenya-table-list-noborder">
+              <jx:forEach var="area" items="${areas}">
+                <tr>
+                  <td class="lenya-entry-caption">${area}:</td>
+                  <td>${pub.getProxy(area, false).getUrl()}</td>
+                </tr>
+                <tr>
+                  <td class="lenya-entry-caption">${area} (SSL):</td>
+                  <td>${pub.getProxy(area, true).getUrl()}</td>
+                </tr>
+              </jx:forEach>
+            </table>
+          </td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption" style="vertical-align: top"><i18n:text>modules</i18n:text>:</td>
+          <td>
+            <jx:forEach var="module" items="${pub.getModuleNames()}">
+              ${module} &#160;
+            </jx:forEach>
+          </td>
+        </tr>
+        <tr>
+          <td class="lenya-entry-caption" style="vertical-align: top"><i18n:text>resource-types</i18n:text>:</td>
+          <td>
+            <jx:forEach var="type" items="${pub.getResourceTypeNames()}">
+              ${type} &#160;
+            </jx:forEach>
+          </td>
+        </tr>
+        <tr>
+          <td/>
+          <td>
+            <br/>
+            <form method="get" action="${request.pathInfo}">
+              <input type="hidden" name="lenya.usecase" value="admin.editPubConf"/>
+              <input i18n:attr="value" type="submit" value="Edit"/>
+            </form>
+          </td>
+        </tr>
+      </table>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org