Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
7b35de07
Commit
7b35de07
authored
14 years ago
by
Sergiu Dumitriu
Browse files
Options
Downloads
Plain Diff
Merge branch 'master-A'
parents
6c319ff1
05fa23e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xwiki-platform-webdav/pom.xml
+48
-0
48 additions, 0 deletions
xwiki-platform-webdav/pom.xml
xwiki-platform-webdav/src/main/resources/XWiki/WebDAV.xml
+163
-0
163 additions, 0 deletions
xwiki-platform-webdav/src/main/resources/XWiki/WebDAV.xml
with
211 additions
and
0 deletions
xwiki-platform-webdav/pom.xml
0 → 100644
+
48
−
0
View file @
7b35de07
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<parent>
<groupId>
org.xwiki.platform.applications
</groupId>
<artifactId>
xwiki-applications
</artifactId>
<version>
37-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
xwiki-application-webdav
</artifactId>
<packaging>
xar
</packaging>
<name>
XWiki Platform - Applications - WebDAV
</name>
<version>
1.5-SNAPSHOT
</version>
<description>
Holds utility functions required for WebDAV ui integration.
</description>
<!-- We must configure SCM in each module. For more information see:
http://svn.xwiki.org/svnroot/xwiki/platform/pom/trunk/pom.xml -->
<scm>
<connection>
scm:svn:http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/webdav
</connection>
<developerConnection>
scm:svn:https://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/webdav
</developerConnection>
<url>
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/webdav
</url>
</scm>
<issueManagement>
<system>
jira
</system>
<url>
http://jira.xwiki.org/jira/browse/XAWEBDAV
</url>
</issueManagement>
</project>
This diff is collapsed.
Click to expand it.
xwiki-platform-webdav/src/main/resources/XWiki/WebDAV.xml
0 → 100644
+
163
−
0
View file @
7b35de07
<?xml version="1.0" encoding="ISO-8859-1"?>
<xwikidoc>
<web>
XWiki
</web>
<name>
WebDAV
</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>
0
</translation>
<parent>
XWiki.WebHome
</parent>
<creator>
XWiki.Admin
</creator>
<author>
XWiki.Admin
</author>
<customClass></customClass>
<contentAuthor>
XWiki.Admin
</contentAuthor>
<creationDate>
1231841324000
</creationDate>
<date>
1236074871000
</date>
<contentUpdateDate>
1236074871000
</contentUpdateDate>
<version>
1.1
</version>
<title></title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>
false
</minorEdit>
<syntaxId>
xwiki/1.0
</syntaxId>
<hidden>
false
</hidden>
<object>
<class>
<name>
XWiki.JavaScriptExtension
</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></validationScript>
<cache>
<cache>
0
</cache>
<displayType>
select
</displayType>
<multiSelect>
0
</multiSelect>
<name>
cache
</name>
<number>
5
</number>
<prettyName>
Caching policy
</prettyName>
<relationalStorage>
0
</relationalStorage>
<separator>
</separator>
<separators>
,|
</separators>
<size>
1
</size>
<unmodifiable>
0
</unmodifiable>
<values>
long|short|default|forbid
</values>
<classType>
com.xpn.xwiki.objects.classes.StaticListClass
</classType>
</cache>
<code>
<name>
code
</name>
<number>
2
</number>
<prettyName>
Code
</prettyName>
<rows>
20
</rows>
<size>
50
</size>
<unmodifiable>
0
</unmodifiable>
<classType>
com.xpn.xwiki.objects.classes.TextAreaClass
</classType>
</code>
<name>
<name>
name
</name>
<number>
1
</number>
<prettyName>
Name
</prettyName>
<size>
30
</size>
<unmodifiable>
0
</unmodifiable>
<classType>
com.xpn.xwiki.objects.classes.StringClass
</classType>
</name>
<parse>
<displayFormType>
select
</displayFormType>
<displayType>
yesno
</displayType>
<name>
parse
</name>
<number>
4
</number>
<prettyName>
Parse content
</prettyName>
<unmodifiable>
0
</unmodifiable>
<classType>
com.xpn.xwiki.objects.classes.BooleanClass
</classType>
</parse>
<use>
<cache>
0
</cache>
<displayType>
select
</displayType>
<multiSelect>
0
</multiSelect>
<name>
use
</name>
<number>
3
</number>
<prettyName>
Use this extension
</prettyName>
<relationalStorage>
0
</relationalStorage>
<separator>
</separator>
<separators>
,|
</separators>
<size>
1
</size>
<unmodifiable>
0
</unmodifiable>
<values>
onDemand=On demand|always=Always
</values>
<classType>
com.xpn.xwiki.objects.classes.StaticListClass
</classType>
</use>
</class>
<name>
XWiki.WebDAV
</name>
<number>
0
</number>
<className>
XWiki.JavaScriptExtension
</className>
<guid>
e164508e-ef2c-45d1-9620-b82f16fb27bb
</guid>
<property>
<cache>
long
</cache>
</property>
<property>
<code>
var XWiki = (function (XWiki) {
// Start XWiki augmentation.
function displayDavLink(node) {
node.down("a[class*='editlink']").removeClassName("hidden");
}
XWiki.WebDAV = {
displayDavLinks: function(domNode) {
// un-hide Dav links only if the browser is going to support it
if(window.ActiveXObject || window.InstallTrigger) {
domNode.select(".attachment").each(displayDavLink);
}
},
davEdit: function(davURL) {
if (window.ActiveXObject) {
var editor;
try {
editor = new window.ActiveXObject("SharePoint.OpenDocuments");
} catch (err) {
window.alert("$msg.get('xe.webdav.initialize.activex')");
return;
}
if (editor) {
editor.EditDocument(davURL);
} else {
window.alert("$msg.get('xe.webdav.initialize.error')");
return;
}
} else if (window.InstallTrigger) {
if ("createEvent" in document) {
var element = document.createElement("FoXWikiDomEventData");
element.setAttribute("davURL", davURL);
element.setAttribute("foxwiki", "false");
document.documentElement.appendChild(element);
var evt = document.createEvent("Events");
evt.initEvent("FoXWikiDomEvent", true, false);
element.dispatchEvent(evt);
if (element.getAttribute("foxwiki") == "false") {
if (window.confirm("$msg.get('xe.webdav.install.foxwiki')")) {
window.InstallTrigger.install( {"FoXWiki" :"https://addons.mozilla.org/en-US/firefox/downloads/file/39674/foxwiki-1.0b-fx.xpi"});
}
}
} else {
window.alert("$msg.get('xe.webdav.error')");
}
} else {
window.alert("$msg.get('xe.webdav.sorry')");
}
}
};
// End XWiki augmentation.
return XWiki;
}(XWiki || {}));
</code>
</property><property><name>
WebDAVJSX
</name>
</property>
<property>
<parse>
1
</parse>
</property>
<property>
<use>
always
</use>
</property>
</object>
<content>
#info($msg.get('xe.webdav.info'))
</content>
</xwikidoc>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment