[xwiki-devs] XWiki usable for this + how to go on about component development
Hi, we wish to use xwiki in a large project and find it difficult to see if the component architeture suits us. We need to hook into the login process (effectively logging users in through our own authentication process). Can this be done using a 'plugin' or 'component' for xwiki? Also: we need to intercept the page creation process and update our local indexes with certain things when a user saves a page. Can this be done throuh a plugin/component? How would one go on about setting an eclipse project up, where a component can be developed and debugged? Do I need to check out the entire Wiki into the Eclipse workspace? -- View this message in context: http://n2.nabble.com/XWiki-usable-for-this-%2B-how-to-go-on-about-component-... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi, On Fri, Nov 7, 2008 at 12:36 PM, Ion Tichy <[email protected]> wrote:
Hi,
we wish to use xwiki in a large project and find it difficult to see if the component architeture suits us.
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials
We need to hook into the login process (effectively logging users in through our own authentication process). Can this be done using a 'plugin' or 'component' for xwiki?
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCustomAu...
Also: we need to intercept the page creation process and update our local indexes with certain things when a user saves a page. Can this be done throuh a plugin/component?
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications
How would one go on about setting an eclipse project up, where a component can be developed and debugged? Do I need to check out the entire Wiki into the Eclipse workspace?
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse
-- View this message in context: http://n2.nabble.com/XWiki-usable-for-this-%2B-how-to-go-on-about-component-... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Thanks for the RTFM, now can I get some answers, please? :)
Hi, it seems my questions are difficult. Allow me to rephrase: Will we be able to hook into the XWiki authentication process by writing a component or plugin for xwiki? Will we be able to hook into the XWiki page creation process by writing a component or plugin for xwiki? Will it be possible to develop and debug said components without having to check out and install the entire xwiki repository content? Or do we need to check out XWiki Enterprise on Eclipse to develop and debug said components? Thanks. On 07.11.2008, at 13:17, Vincent Massol wrote:
On Nov 7, 2008, at 1:00 PM, Juergen Lorenz Simon wrote:
Thanks for the RTFM,
now can I get some answers, please? :)
What part from the docs do you not understand?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi, On Nov 7, 2008, at 1:23 PM, Juergen Lorenz Simon wrote:
Hi,
it seems my questions are difficult. Allow me to rephrase:
Will we be able to hook into the XWiki authentication process by writing a component or plugin for xwiki?
Did you read http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCustomAu... ? What part did you not understand?
Will we be able to hook into the XWiki page creation process by writing a component or plugin for xwiki?
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications Again what part did you not understand?
Will it be possible to develop and debug said components without having to check out and install the entire xwiki repository content? Or do we need to check out XWiki Enterprise on Eclipse to develop and debug said components?
See http://dev.xwiki.org/xwiki/bin/view/Community/Debugging Thanks -Vincent PS: Please don't remove the answers when you reply to mails. You did so in your first reply to Thomas and it makes it difficult to follow the thread.
On 07.11.2008, at 13:17, Vincent Massol wrote:
On Nov 7, 2008, at 1:00 PM, Juergen Lorenz Simon wrote:
Thanks for the RTFM,
now can I get some answers, please? :)
What part from the docs do you not understand?
Thanks -Vincent
On 07.11.2008, at 13:43, Vincent Massol wrote:
Hi,
On Nov 7, 2008, at 1:23 PM, Juergen Lorenz Simon wrote:
Hi,
it seems my questions are difficult. Allow me to rephrase:
Will we be able to hook into the XWiki authentication process by writing a component or plugin for xwiki?
Did you read http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCustomAu... ?
No. I was looking for information about plugins and such in the Programmer's Guide. Thanks, thats one big plus point already.
Will we be able to hook into the XWiki page creation process by writing a component or plugin for xwiki?
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications
That answers the second question. Looks like XWiki has the features we need. Thanks for your time!
Hi, It was not a RTFM answer, one that doesn't help at all, but an answer that points you to the right location where the answer is. It is our policy to make the documentation as useful as possible, so that when somebody has a question, the answer should be available online. If our online documentation does not cover a question frequently asked, we'd rather improve the documentation and point to it than answer the same question over and over again. Answering questions is time consuming both for the developer that takes time away from writing useful code, and the user that has to wait several hours for an answer, instead of quickly reading the documentation. If somebody reads the documentation and still doesn't find the answer to his problem, then we need to know what exactly is not clear, and how could we improve the documentation. We would appreciate if you told us what exactly isn't clear in our documentation? Juergen Lorenz Simon wrote:
Hi,
it seems my questions are difficult. Allow me to rephrase:
Will we be able to hook into the XWiki authentication process by writing a component or plugin for xwiki?
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCustomAu... says exactly that: it tells you that you must implement the XWikiAuthService interface and configure xwiki.cfg to point to your class. It also points to a tutorial that you can follow. Is it still not clear that you can hook into the login process? It does not use a component or a plugin (an XWiki plugin), but just a plain java class implementing an interface.
Will we be able to hook into the XWiki page creation process by writing a component or plugin for xwiki?
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications says exactly that. You can use notifications to intercept the page modification events and alter the new document before it is saved. As above, you do not write a component or a plugin, but a java class implementing an interface and calling a registration method.
Will it be possible to develop and debug said components without having to check out and install the entire xwiki repository content? Or do we need to check out XWiki Enterprise on Eclipse to develop and debug said components?
You don't have to download the whole repository. If you use maven (and you should), just write a short pom.xml, declare a dependency on the xwiki-core module, and run: mvn install eclipse:eclipse This will download all the dependencies and create an eclipse project you can open with File -> Import -> Existing project into workspace If you also want the javadocs or sources, use: mvn install eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true The first time you run this, it will take a while, since lots of dependencies must be downloaded.
On 07.11.2008, at 13:17, Vincent Massol wrote:
On Nov 7, 2008, at 1:00 PM, Juergen Lorenz Simon wrote:
Thanks for the RTFM,
now can I get some answers, please? :) What part from the docs do you not understand?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Hello, On 07.11.2008, at 15:32, Sergiu Dumitriu wrote:
Hi,
It was not a RTFM answer, one that doesn't help at all, but an answer that points you to the right location where the answer is. It is our policy to make the documentation as useful as possible, so that when somebody has a question, the answer should be available online. If our online documentation does not cover a question frequently asked, we'd rather improve the documentation and point to it than answer the same question over and over again. Answering questions is time consuming both for the developer that takes time away from writing useful code, and the user that has to wait several hours for an answer, instead of quickly reading the documentation. If somebody reads the documentation and still doesn't find the answer to his problem, then we need to know what exactly is not clear, and how could we improve the documentation. We would appreciate if you told us what exactly isn't clear in our documentation?
One main point is, that the information I was expecting to be part of the programming guide was in the Adminitrator's Guide. It's a little confusing because one expects it there. I think the Programmer's Guide needs some work. For instance: there was no obvious link over to the dev guide, where more or less the stuff I expected in the Programmer's Guide is found, such as the API docs.
You don't have to download the whole repository. If you use maven (and you should), just write a short pom.xml, declare a dependency on the xwiki-core module, and run:
mvn install eclipse:eclipse
This will download all the dependencies and create an eclipse project you can open with File -> Import -> Existing project into workspace
If you also want the javadocs or sources, use:
mvn install eclipse:eclipse -DdownloadSources=true - DdownloadJavadocs=true
The first time you run this, it will take a while, since lots of dependencies must be downloaded.
Most helpful. Thanks a lot!
participants (5)
-
Ion Tichy -
Juergen Lorenz Simon -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol