From c71d5b202de20dfcccdebf78b17c527469ebfd27 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Thu, 12 Apr 2012 11:19:46 +0200 Subject: [PATCH] Starting to implement a version based on Orbeon's XPL or the archiver. --- archiver/pipelines/archive-resource.xpl | 328 ++++++++++++++++++++ archiver/pipelines/archive-set.xpl | 89 ++++++ archiver/pipelines/config.xml | 10 + archiver/pipelines/data-access.xpl | 160 ++++++++++ archiver/pipelines/install-db.xpl | 65 ++++ archiver/pipelines/post-archive-request.xpl | 39 +++ archiver/pipelines/reinstall-db.xpl | 21 ++ archiver/pipelines/scheduler.xpl | 53 ++++ archiver/pipelines/uninstall-db.xpl | 33 ++ 9 files changed, 798 insertions(+) create mode 100644 archiver/pipelines/archive-resource.xpl create mode 100644 archiver/pipelines/archive-set.xpl create mode 100644 archiver/pipelines/config.xml create mode 100644 archiver/pipelines/data-access.xpl create mode 100644 archiver/pipelines/install-db.xpl create mode 100644 archiver/pipelines/post-archive-request.xpl create mode 100644 archiver/pipelines/reinstall-db.xpl create mode 100644 archiver/pipelines/scheduler.xpl create mode 100644 archiver/pipelines/uninstall-db.xpl diff --git a/archiver/pipelines/archive-resource.xpl b/archiver/pipelines/archive-resource.xpl new file mode 100644 index 0000000..47cfb8c --- /dev/null +++ b/archiver/pipelines/archive-resource.xpl @@ -0,0 +1,328 @@ + + + + + + + + + + + +
+ User-Agent + + + +
+ archive +
+
+ +
+ + + + + + + + + + + + write + document + + + + + + + + + + + + + + + + + + + + + + session + + + + + + + + + + + + + + html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rewritten- + + + write + document + + + + + + + + + + + + + + + + + + + index.xml + + write + xquery + + + + + + + + rewritten- + + + + + + + into $as + ]]> + + + + + + + + + + + + + queue.xml + write + xquery + + + + + + + + + + + + + + into $q, + +for $a in /queue/action where $a/@uuid = $(uuid) return + update + delete $a + + ]]> + + + + + + + + + + + + + + + + + + + + index.xml + + write + xquery + + + + + + + + + + + into $as + ]]> + + + + + + + + + + + + + queue.xml + write + xquery + + + + + + + + + + + + + + + + + + +
diff --git a/archiver/pipelines/archive-set.xpl b/archiver/pipelines/archive-set.xpl new file mode 100644 index 0000000..62334ed --- /dev/null +++ b/archiver/pipelines/archive-set.xpl @@ -0,0 +1,89 @@ + + + + + + + + + + + + queue.xml + write + xquery + + + / + + + + .xml + + + + + + + + + + + + + + + + + + into $q, + +for $a in /queue/action where $a/@uuid = $(uuid) return + update + delete $a + + ]]> + + + + + + + + + + + + + + + index.xml + + write + document + + + + + + + + + + + + + + + + diff --git a/archiver/pipelines/config.xml b/archiver/pipelines/config.xml new file mode 100644 index 0000000..1060633 --- /dev/null +++ b/archiver/pipelines/config.xml @@ -0,0 +1,10 @@ + + + + http://admin@localhost:8080/orbeon/exist/rest/db/ + owark/ + + Mozilla/5.0 (compatible; owark/0.3; http://owark.org/) + + + \ No newline at end of file diff --git a/archiver/pipelines/data-access.xpl b/archiver/pipelines/data-access.xpl new file mode 100644 index 0000000..7621df5 --- /dev/null +++ b/archiver/pipelines/data-access.xpl @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Parameter not found in query + + + ' + + ' + + + + + + + (' + + ') + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archiver/pipelines/install-db.xpl b/archiver/pipelines/install-db.xpl new file mode 100644 index 0000000..49b8862 --- /dev/null +++ b/archiver/pipelines/install-db.xpl @@ -0,0 +1,65 @@ + + + + + + + + + + index.xhtml + write + document + + + + + + Owark DB + + +

Owark db

+ + +
+ +
+ + + + + + + + + + + queue.xml + write + document + + + + + + + + + + + + + + + + + +
diff --git a/archiver/pipelines/post-archive-request.xpl b/archiver/pipelines/post-archive-request.xpl new file mode 100644 index 0000000..1fc5885 --- /dev/null +++ b/archiver/pipelines/post-archive-request.xpl @@ -0,0 +1,39 @@ + + + + + + + + + + queue.xml + write + xquery + + + + + into $q + + ]]> + + + + + + + + + + diff --git a/archiver/pipelines/reinstall-db.xpl b/archiver/pipelines/reinstall-db.xpl new file mode 100644 index 0000000..c6d8d52 --- /dev/null +++ b/archiver/pipelines/reinstall-db.xpl @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + diff --git a/archiver/pipelines/scheduler.xpl b/archiver/pipelines/scheduler.xpl new file mode 100644 index 0000000..8f60dfe --- /dev/null +++ b/archiver/pipelines/scheduler.xpl @@ -0,0 +1,53 @@ + + + + + + + + + + queue.xml + read + xquery + + + + + + + + + + + + + + + oxf:/ + + .xpl + + + + + + + + + + + + + + + diff --git a/archiver/pipelines/uninstall-db.xpl b/archiver/pipelines/uninstall-db.xpl new file mode 100644 index 0000000..3ff971c --- /dev/null +++ b/archiver/pipelines/uninstall-db.xpl @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + +