blob: 7b6c32e161414c75dc16b9030d6f8b45d7fff563 [file] [log] [blame]
<!--
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: serverStatus.jx 164233 2005-04-22 13:01:45Z jwkaltz $ -->
<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"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
>
<page:body>
<jx:import uri="templates/tabs.jx"/>
<div id="contentblock1" class="lenya-tab">
<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" id="form-pub_import_export">
<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" name="input-import_pub" />
<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="${usecase.getSourceURL()}?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" id="form-repository_import_export">
<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" name="input-import_repository"/>
<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>
</div>
</page:body>
</page:page>