Hello,
Are the documents "re-published" when updated? Maybe you could name
the application "Synchronization Application" or something similar if
this is the case.
On Mon, Aug 20, 2018 at 4:48 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi Anca/Stephane,
On 20 Aug 2018, at 16:39, Anca Luca
<lucaa(a)xwiki.com> wrote:
Hello XWiki devs,
slauriere and I have worked on an extension that copies pages from one wiki
(based on a HQL query selecting them) to another wiki, allowing to exclude
some class properties from objects in those pages, if the objects are
present.
It's coded as an async job, it can be manually triggered or scheduled with
a scheduler job.
If I had to implement this, I would code it using the Filter Stream Application framework
(see
https://extensions.xwiki.org/xwiki/bin/view/Extension/Filter%20Module and especially
https://extensions.xwiki.org/xwiki/bin/view/Extension/Filter%20XWiki%20Inst…)
as an input filter (since the output filter to copy to a different wiki already exists).
Is that how you did it?
We used it to implement some publication
scenario, where contributors work
on a set of documents on a subwiki and then these documents, if validated,
get copied (published) to another subwiki periodically. The validation is
based on the custom structure of those documents, using the generic feature
of this extension that allows to select documents to be published based on
a query. Otherwise there's nothing else related to publication in the code
of the application itself.
We'd like to publish this application on contrib, so can we please have a
repo for it?
However, we have some trouble choosing its name. The name that we used so
far is "publication application" but we think it might be misleading esp.
because of the similarity with publication workflow with which it has
nothing to do.
I agree it’s misleading and not a good name ;)
So, if you have an idea for a name that would correctly illustrate this
work (and its future enhancements), please help us choose its name and
create the repo.
Is the code in Java or is it done as wiki pages?
Some suggestions:
If in Java:
* api-wikicopier
* api-wikicopy
If in wiki pages:
* application-wikicopier
* application-wikicopy
If coded as filterstream input:
* filter-instance-hql
* filter-instance-hql-input
Thanks
-Vincent
Thanks,
Anca