Last modified by Admin on 2024/03/25 16:29

<
From version < 259.2 >
edited by Marius Dumitru Florea
on 2017/03/23 13:06
To version < 260.1 >
edited by Marius Dumitru Florea
on 2017/03/23 13:52
>
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -472,16 +472,14 @@
472 472  
473 473  * In Groovy:(((
474 474  {{code language="groovy" title="Groovy example:"}}
475 -def customObject = xwiki.getDocument("MyApp.Configuration").getObject("MyApp.ConfigurationClass")
476 -def myAppUrl= customObject.getProperty("myAppUrl").value
477 -
478 -println "$myAppUrl"
475 +def configObject = xwiki.getDocument("Mail.MailConfig").getObject("Mail.SendMailConfigClass")
476 +println configObject.getValue("port")
479 479  {{/code}}
480 480  )))
481 481  
482 -The value of ##myAppUrl## would be the value set in the configuration page, for example:
480 +The value of ##port## would be the value set in the configuration page, for example:
483 483  
484 -{{image reference="2014-08-07_12_04_39.png"/}}
482 +{{image reference="mailSend.png"/}}
485 485  
486 486  === Things to watch out for ===
487 487  

Get Connected