Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

svn commit: r234487 - in /lenya/trunk/src/publets/jcr: config/usecase-impor: msg#00061

cms.lenya.cvs

Subject: svn commit: r234487 - in /lenya/trunk/src/publets/jcr: config/usecase-importExport-tab.xconf config/usecase-importExport.xconf usecases/importExport/importExport.jx

Author: andreas
Date: Mon Aug 22 06:36:36 2005
New Revision: 234487

URL: http://svn.apache.org/viewcvs?rev=234487&view=rev
Log:
Display JCR usecase in admin area tab.

Added:
lenya/trunk/src/publets/jcr/config/usecase-importExport-tab.xconf
Modified:
lenya/trunk/src/publets/jcr/config/usecase-importExport.xconf
lenya/trunk/src/publets/jcr/usecases/importExport/importExport.jx

Added: lenya/trunk/src/publets/jcr/config/usecase-importExport-tab.xconf
URL:
http://svn.apache.org/viewcvs/lenya/trunk/src/publets/jcr/config/usecase-importExport-tab.xconf?rev=234487&view=auto
==============================================================================
--- lenya/trunk/src/publets/jcr/config/usecase-importExport-tab.xconf (added)
+++ lenya/trunk/src/publets/jcr/config/usecase-importExport-tab.xconf Mon Aug
22 06:36:36 2005
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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: doctypes.xconf 164635 2005-04-25 20:01:43Z tschlabach $ -->
+
+<xconf xpath="/cocoon/gui-manager/tab-group[@name = 'admin']"
+ unless="/cocoon/gui-manager/tab-group[@name = 'admin']/tab[@name =
'jcr']">
+
+ <tab name="jcr" label="JCR" usecase="jcr.importExport"/>
+
+</xconf>

Modified: lenya/trunk/src/publets/jcr/config/usecase-importExport.xconf
URL:
http://svn.apache.org/viewcvs/lenya/trunk/src/publets/jcr/config/usecase-importExport.xconf?rev=234487&r1=234486&r2=234487&view=diff
==============================================================================
--- lenya/trunk/src/publets/jcr/config/usecase-importExport.xconf (original)
+++ lenya/trunk/src/publets/jcr/config/usecase-importExport.xconf Mon Aug 22
06:36:36 2005
@@ -21,7 +21,9 @@

<component-instance name="jcr.importExport" logger="lenya.jcr"
class="org.apache.lenya.cms.jcr.usecases.JCRImport">
- <view template="publets/jcr/usecases/importExport/importExport.jx"
menu="false"/>
+ <view template="publets/jcr/usecases/importExport/importExport.jx"
menu="true">
+ <tab group="admin" name="jcr"/>
+ </view>
</component-instance>

</xconf>

Modified: lenya/trunk/src/publets/jcr/usecases/importExport/importExport.jx
URL:
http://svn.apache.org/viewcvs/lenya/trunk/src/publets/jcr/usecases/importExport/importExport.jx?rev=234487&r1=234486&r2=234487&view=diff
==============================================================================
--- lenya/trunk/src/publets/jcr/usecases/importExport/importExport.jx (original)
+++ lenya/trunk/src/publets/jcr/usecases/importExport/importExport.jx Mon Aug
22 06:36:36 2005
@@ -22,121 +22,77 @@
xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
xmlns:cinclude="http://apache.org/cocoon/include/1.0";
>
- <page:title><i18n:text>JCR Import/Export</i18n:text></page:title>

<page:body>
- <!--
- <jx:import uri="admin/tabs.jx"/>
+ <jx:import uri="templates/tabs.jx"/>
<div id="contentblock1" class="lenya-tab">
- -->
- <jx:import uri="templates/messages.jx"/>
+ <h1><i18n:text>JCR Import/Export</i18n:text></h1>
+ <jx:import uri="templates/messages.jx"/>
+
+ <p><i18n:text>Import and export repository content in XML data
format.</i18n:text></p>
+ <p><b><i18n:text>Note:</i18n:text></b> <i18n:text>Works with JCR
repository only!</i18n:text></p>
+
+ <table class="lenya-table">
+ <tr>
+ <th class="lenya-caption"><i18n:text>Import
Publication</i18n:text></th>
+ <th class="lenya-caption"><i18n:text>Export
Publication</i18n:text></th>
+ </tr>
+ <tr>
+ <td>
+ <div class="lenya-box-body">
+ <form method="POST" enctype="multipart/form-data">
+ <input type="hidden" name="lenya.continuation"
value="${continuation.id}"/>
+ <input type="hidden" name="lenya.usecase"
value="${request.getParameter('lenya.usecase')}"/>
+ <input type="hidden" name="lenya.usecase.importExport.import"
value="publication"/>
+ <input type="hidden" name="submit" value=""/>
+
+ <input type="file" name="jcrcontent" maxlength="0"
accept="text/xml"/>
+ <input i18n:attr="value" type="submit" value="Import"/>
+ <br/><br/>
+ <strong><i18n:text>Note:</i18n:text></strong>
<i18n:text>Existing publication will be overwritten!</i18n:text>
+ </form>
+ </div>
+ </td>
+ <td>
+ <div class="lenya-box-body">
+ <a
href="${request.requestURI}?lenya.usecase=jcr.export&amp;scope=publication"
target="_blank">Download Publication Content</a>
+ </div>
+ </td>
+ </tr>
+ </table>
+
+ <br/>
+ <br/>
+
+ <table class="lenya-table">
+ <tr>
+ <th class="lenya-caption"><i18n:text>Import
Repository</i18n:text></th>
+ <th class="lenya-caption"><i18n:text>Export
Repository</i18n:text></th>
+ </tr>
+ <tr>
+ <td>
+ <form method="POST" enctype="multipart/form-data">
+ <input type="hidden" name="lenya.continuation"
value="${continuation.id}"/>
+ <input type="hidden" name="lenya.usecase"
value="${request.getParameter('lenya.usecase')}"/>
+ <input type="hidden" name="lenya.usecase.importExport.import"
value="repository"/>
+ <input type="hidden" name="submit" value=""/>
+
+ <div class="lenya-box-body">
+ <input type="file" name="jcrcontent" maxlength="0"
accept="text/xml"/>
+ <input i18n:attr="value" type="submit" value="Import"/>
+ <br/><br/>
+ <strong><i18n:text>Note:</i18n:text></strong> <i18n:text>All
existing Lenya data will be overwritten!</i18n:text>
+ </div>
+ </form>
+ </td>
+ <td>
+ <div class="lenya-box-body">
+ <a
href="${request.requestURI}?lenya.usecase=jcr.export&amp;scope=repository"
target="_blank">Download Repository Content</a>
+ </div>
+ </td>
+ </tr>
+ </table>

- <p><i18n:text>Import and export repository content in XML data
format.</i18n:text></p>
- <p><b><i18n:text>Note:</i18n:text></b> <i18n:text>Works with JCR
repository only!</i18n:text></p>
-
- <table>
- <tr>
- <td>
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th class="lenya-caption"
colspan="2"><i18n:text>Publication</i18n:text></th>
- </tr>
- <tr>
- <td>
- <form method="POST" enctype="multipart/form-data">
- <input type="hidden" name="lenya.continuation"
value="${continuation.id}"/>
- <input type="hidden" name="lenya.usecase"
value="${request.getParameter('lenya.usecase')}"/>
- <input type="hidden"
name="lenya.usecase.importExport.import" value="publication"/>
- <input type="hidden" name="submit" value=""/>
-
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th
class="lenya-caption"><i18n:text>Import</i18n:text></th>
- </tr>
- <tr>
- <td>
- <input type="file" name="jcrcontent" maxlength="0"
accept="text/xml"/>
- <input i18n:attr="value" type="submit"
value="Import"/>
- <br/><br/>
-
<b><i18n:text>Note:</i18n:text></b><i18n:text>Existing publication will be
overwritten!</i18n:text>
- </td>
- </tr>
- </table>
- </div>
- </form>
- </td>
- <td>
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th
class="lenya-entry-caption"><i18n:text>Export</i18n:text></th>
- </tr>
- <tr>
- <td nowrap=""><a
href="${request.requestURI}?lenya.usecase=jcr.export&amp;scope=publication"
target="_blank">Download Publication Content</a></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th class="lenya-caption"
colspan="2"><i18n:text>Repository</i18n:text></th>
- </tr>
- <tr>
- <td>
- <form method="POST" enctype="multipart/form-data">
- <input type="hidden" name="lenya.continuation"
value="${continuation.id}"/>
- <input type="hidden" name="lenya.usecase"
value="${request.getParameter('lenya.usecase')}"/>
- <input type="hidden"
name="lenya.usecase.importExport.import" value="repository"/>
- <input type="hidden" name="submit" value=""/>
-
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th
class="lenya-caption"><i18n:text>Import</i18n:text></th>
- </tr>
- <tr>
- <td>
- <input type="file" name="jcrcontent" maxlength="0"
accept="text/xml"/>
- <input i18n:attr="value" type="submit"
value="Import"/>
- <br/><br/>
- <b><i18n:text>Note:</i18n:text></b><i18n:text>All
existing Lenya data will be overwritten!</i18n:text>
- </td>
- </tr>
- </table>
- </div>
- </form>
- </td>
- <td>
- <div class="lenya-box-body">
- <table class="lenya-table">
- <tr>
- <th
class="lenya-entry-caption"><i18n:text>Export</i18n:text></th>
- </tr>
- <tr>
- <td nowrap=""><a
href="${request.requestURI}?lenya.usecase=jcr.export&amp;scope=repository"
target="_blank">Download Repository Content</a></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
-
- <!--
</div>
- -->
</page:body>
</page:page>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation