You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Igor Belakovskiy (JIRA)" <ji...@apache.org> on 2011/04/13 16:28:05 UTC

[jira] [Commented] (SHINDIG-1523) allow declarative parameters in feature specification

    [ https://issues.apache.org/jira/browse/SHINDIG-1523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019352#comment-13019352 ] 

Igor Belakovskiy commented on SHINDIG-1523:
-------------------------------------------

Spoke to Ziv Horesh, will be modifying patch to parse XML as string, and pass through as a string to the container, instead of passing it through as a JSON object. Conversion will occur on the container side.

> allow declarative parameters in feature specification
> -----------------------------------------------------
>
>                 Key: SHINDIG-1523
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1523
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Java
>    Affects Versions: 2.0.0, 2.0.2
>         Environment: All
>            Reporter: Igor Belakovskiy
>              Labels: Enhancement, Feature
>             Fix For: 2.0.0, 2.0.2
>
>         Attachments: featurepatch04082010.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Allow the addition of arbitrary XML inside of the feature param tags. This allows the feature to specify complex objects as parameters that can be returned as JSON as part of the gadget metadata, and be used by the common container. 
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
> <ModulePrefs title="Sample VOIP">
>   <Optional feature="actions">
>  <Param name="action-contributions"> 
>    <action id="org.samplevoip.callbyperson" dataObject="opensocial.Person" label="Call using VOIP Phone" view="DialByPerson" icon="http://ww.samplervoip.org/phone.gif"/>
>    <action id="org.samplervoip.navLink" path="container/navigationLinks" label="Phone" />
> </Param>
> </Optional>
>   </ModulePrefs>
> <Content type="html"><![CDATA[
> <h2>Test</h2>
> ]]></Content>
> </Module>
> JSON Representation of above parameters. 
> {"params":{"action-contributions":[
>                                                {"action":{"label":"Call using VOIP Phone","view":"DialByPerson","icon":"http://ww.samplervoip.org/phone.gif","dataObject":"opensocial.Person","id":"org.samplevoip.callbyperson"}},
>                                                {"action":{"label":"Phone","path":"container/navigationLinks","id":"org.samplervoip.navLink"}}
> ]}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira