Hi!
> ________________________________________
> From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of mohit gupta [motgupta(a)gmail.com]
> Sent: 06 April 2012 19:42
> To: XWiki Users
> Subject: [xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?
>
The first thing I would like to understand someday is what does API apply to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it is only a matter of taste, but I do really like to know how to correctly use this concept.
Can Method and API be indistinctly used?
> Hi Folks,
>
> I am looking for three xwiki java api's that do the following functionality
> 1) I give the space name to api and it creates the space with default home
> page .
Perhaps this could be useful:
{{velocity}}
#set ($mydoc = $xwiki.getDocument("Dummy.WebHome"))
$mydoc.setContent("content")
$mydoc.save()
{{/velocity}}
> 2)I give userName,SpaceName and rightsName(like view,edit,delete,admin) to
> api and it gives these rights on given space name for the given username
Does this page through any light to your doubt?
http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights
> 3)I give spaceName to api and it gives me whether the given space exists or
> not?
I don't know how XWiki checks if a space exists when entered in an URL, but perhaps this could help...
$xwiki.getSpaceDocsName('YourSpaceHere).size()
If size > 0 does mean that YourSpace exists!
> I was looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
> com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
> these api's must
> be existing (as user is able to do these stuff from user interface). I will
> be grateful if i can be directed to these apis?
>
> Thanks in advance.
HTH!
Ricardo
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe, por favor elim?nea. A distribuci?n ou copia desta mensaxe non est? autorizada.
Nota: La informaci?n contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y est? dirigida ?nicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no est? autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
Hi, all,
I am trying to add a file upload page to xwiki, since the FileUploadPlugin
java class is deprecated, is there any other fileupload component available
for reuse? if no, I need to create the component on my own, my concern is I
need to insert the file uploaded into database and keep it separate from
all the other wiki tables, I like to create a separate table specifically
for files uploaded, that means I need to use Hibernate in java code to
handle that, any examples about how to do that? BTW, I am coming from
IBatis background.
Thanks in advance
Dave
Hi, all,
I got a weired problem with url handling, when I am on this page:
http://mydomain.com/xwikim/bin/view/Blog/CreatePost, which gives me a
create post button to create post, I check the form action url is:
"/xwikim/bin/view/Blog/CreatePost?xpage=plain", when I click on the create
button, it comes to this url:
http://localhost/xwikim/bin/edit/Blog/Post+title?template=Blog.BlogPostTemp…,
from which I got "Unable to connect" error, I am not sure why it switched
from mydomain.com to localhost, all other links and buttons are working
fine without this kind of problem.
My setup is like that I have an apache web server installed with port 80
opened to the public internet, which forwards request to tomcat with port
8082 on localhost. all other links work fine, only the createpost has this
problem.
Any clue from any of you?
Thanks very much in advance
Dave
Hi!
By accident I found wierd XWiki behaviour. I played with 3.4.
If you rename any Group, all access rights set to this group are gone and admin should set them back once more.
Is it a bug or desired behaviour?
Kind regards,
Dmitry
Hi!
> ________________________________________
> From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of mohit gupta [motgupta(a)gmail.com]
> Sent: 07 April 2012 15:07
> To: XWiki Users
> Subject: [xwiki-users] Configuration to user different database schema for a particular space?
> Hi Folks, i want to use different database schema for a particular space
> due to some requirement, though everything else will remain same.I am not
> sure how i can go
> for this.I mean is there a way among below options:-
>
> 1)Can I mention "connection.url" in xwikiContext at request level
> or
> 2)Can I keep two hibernate.cfg files and specify to pick one of these on
> the basis of space name?
Too tricky for my basic knowledge! Of course I know nothing about the requirements that are leading you to use a different schema but, have you considered the option of using an XWiki farm? Two, in fact, any number, different perfectly integrated virtual wikis. In general, objects are stored in different database schemas, but a lot of great stuff is available out of the box to share contents and cross-manage the whole farm.
I would give Enterprise Manager a try before going for fancy solutions!
http://manager.xwiki.org/xwiki/bin/view/Main/WebHome
HTH!
Ricardo
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe, por favor elim?nea. A distribuci?n ou copia desta mensaxe non est? autorizada.
Nota: La informaci?n contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y est? dirigida ?nicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no est? autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
Hi Folks, i want to use different database schema for a particular space
due to some requirement, though everything else will remain same.I am not
sure how i can go
for this.I mean is there a way among below options:-
1)Can I mention "connection.url" in xwikiContext at request level
or
2)Can I keep two hibernate.cfg files and specify to pick one of these on
the basis of space name?
Hi, all,
One question, I am trying to look at the source code of XWikiPreferences
class, AdminSheet class, but after I searched Data Type, I got a lot of
classes back, I clicked on these two classes, it always shows the rendering
result, I have no way to look at the velocity code behind the classes, but
other classes like BlogClass, I can go inside the BlogSheet and use Edit
button - Wiki to see the velocty code, why for these two classes I cannot
see the code, any ideas?
Thanks
Dave
Hi All,
I dont want to allow the user name or group name search on xwiki(either it
is on click of search button and search sugest). *Basically what i want
is if any user
put some user name or user group name in search text box , it should not
return any results. Looking for your expert suggestion how i can go for it?*
I am sure it should be possible in xwiki looking at its flexibility but
could not figure it out how. Even if i have to make some modification in
code iam open for that. Thanks in advance.
Hi Folks,
I am looking for three xwiki java api's that do the following functionality
1) I give the space name to api and it creates the space with default home
page .
2)I give userName,SpaceName and rightsName(like view,edit,delete,admin) to
api and it gives these rights on given space name for the given username
3)I give spaceName to api and it gives me whether the given space exists or
not?
I was looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
these api's must
be existing (as user is able to do these stuff from user interface). I will
be grateful if i can be directed to these apis?
Thanks in advance.