[xwiki-users] Spatial Map Extension

2014-05-27 Thread Danilo Amaral de Oliveira
Hello Marius,

I could make the webservice and PoC works but I am not using the method 
$jsontool.serialize.

What is the impact if I not use this serialize method?

Ps.: I have updated the documentation.
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiJSONWebServiceKickStart

Thanks.

Danilo



Grupo Energisa
Danilo Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel: (32) 
8452-9478

Esta mensagem contém informação confidencial. Se você a recebeu por engano, não 
divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e 
apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do 
not disclose or copy its contents. Please notify sender and delete immediately.


-Mensagem original-
De: users [mailto:users-boun...@xwiki.org] Em nome de Marius Dumitru Florea
Enviada em: terça-feira, 20 de maio de 2014 08:14
Para: XWiki Users
Assunto: Re: [xwiki-users] Spatial Map Extension

On Mon, May 19, 2014 at 10:20 PM, Danilo Amaral de Oliveira 
 wrote:
> Hello People,
>
> We are planning to develop an extension that will link and show the documents 
> of a specific wiki spacially allowing the user explore the page dynamically. 
> The idea is similar to the "Just map it" extension.
>
> Our first step was to look some javascript framework available to draw the 
> relationships that could work for us and we came to conclusion that the 
> sigma.js or d3.js will work fine...
> But, I am worried with the data connection, how can I parse the data from the 
> DB to the extension dynamically?
>

> Do you think the kind of webservice bellow could work?
> dev.xwiki.org/xwiki/bin/view/Drafts/XWikiJSONWebServiceKickStart

The direction is ok, but:

* you should use the 'get' action instead of 'view' to access the webservice:

$xwiki.getURL('Main.WebService', 'get', $escapetool.url({
  'outputSyntax': 'plain',
  'limit': 10
}))

* the webservice should build the JSON in memory using plain Java objects 
(maps, lists, strings, numbers, boolean) and then serialize it. In Velocity you 
can use:

$jsontool.serialize({
  'foo': [1, 2, 3],
  'bar': {
'color': 'red',
enabled: true
  },
  'name': 'XWiki'
})

For writing the webservice I would start with Velocity and then move to Groovy 
but only if really needed.

Hope this helps,
Marius

>
> Thank you!
>
>
> Grupo Energisa
> Danilo Oliveira
> Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
> e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel:
> (32) 8452-9478
>
> Esta mensagem contém informação confidencial. Se você a recebeu por engano, 
> não divulgue ou copie seu conteúdo. Por favor, avise ao remetente 
> imediatamente e apague-a do computador.
> Privileged and confidential. If this message has been received by mistake, do 
> not disclose or copy its contents. Please notify sender and delete 
> immediately.
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] context.setUser(xwikiname);

2014-05-27 Thread Sergiu Dumitriu
Whenever something is deprecated, the replacement is mentioned in the
JavaDoc:
https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWikiContext.java#L409

On 05/27/2014 06:10 PM, Daniel Ebanja wrote:
> Hi Devs,
> just wanted to ask what the alternative to "context.setUser(xwikiname);"
> is. This is depracated.
> Thanks in advance.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] context.setUser(xwikiname);

2014-05-27 Thread Daniel Ebanja
Hi Devs,
just wanted to ask what the alternative to "context.setUser(xwikiname);"
is. This is depracated.
Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Using variables

2014-05-27 Thread vinc...@massol.net
Hi,

Hope this helps:
http://www.xwiki.org/xwiki/bin/view/FAQ/How+to+share+content+between+pages

Thanks
-Vincent

On 27 May 2014 at 18:27:13, tullio0106 
(tbettina...@axioma.it(mailto:tbettina...@axioma.it)) wrote:

> Sometime it would be usefull to set "someware" one or more variables to use
> in the wiki text in order to change them in a single point and see value
> change propagated in every page containing the variable.
> Is it possible ?
> How ?
> Tks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Using variables

2014-05-27 Thread tullio0106
Sometime it would be usefull to set "someware" one or more variables to use
in the wiki text in order to change them in a single point and see value
change propagated in every page containing the variable. 
Is it possible ? 
How ? 
Tks



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Using-variables-tp7590678.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Stéphane LASSIRE est en congés

2014-05-27 Thread Stéphane LASSIRE

Je serai absent(e) à partir du  27/05/2014 de retour le 28/05/2014.

je suis en congés.
Je répondrai à vos messages dès mon retour.
En cas de problème technique lié aux progiciels du CESAP, veuillez
contacter SYNOX au 05 67 34 66 56.
Merci

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki version update

2014-05-27 Thread Thomas Mortagne
The database is not enough, did you removed the permanent directory ?
See 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup#HBackupPermanentData.

On Mon, May 26, 2014 at 7:23 PM, wahu  wrote:
> Hi
> I had had xwiki application installed on my local machine. When I wanted to 
> install new version I ran into a problem. During startup application is able 
> to somehow tell that there was another xwiki version installed and is trying 
> to migrate data. I don't want to have old data migrated to the fresh 
> installation. I've deleted index old files, changed database schema, removed 
> previous one - but during startup application is still trying to access old 
> database to perform data migration. Where the informations about old 
> installation is comming from? What other remains  should I remove to make 
> xwiki 'forget' about previously installed one?
>
> Best regards,
> Paweł
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users