Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following MessageML tags are also accepted by the API Agent and will be translated into the indicated PresentationML or MessageJSONand EntityJSON.

Permanent MessageML Elements

...

Transitional Tag

Equivalent PresentationML

<hash tag="tag"/>

<span class="hashTag" data-entity-id="obj123hash123">#tag</span>

<cash tag="tag"/>

<span class="cashTag" data-entity-id="obj456cash456">$tag</span>

EntityJSON

The following MessageML tags will generate elements in the EntityJSON content when transliterated to PresentationML:

Convenience Tag

EntityJSON data

<hash tag="tag"/>


Code Block
{"hash123": {
        "type":     "org.symphonyoss.taxonomy",
        "version":  "1.0",
        "id": [
            {
                "type":     “org.symphonyoss.taxonomy.hashtag",
                "value":    “tag" 
            }
        ]
    }
}


<cash tag="tag"/>


Code Block
{"obj123": {
        "type":     "org.symphonyoss.fin.security",
        "version":  "1.0",
        "id": [
            {
                "type":     “org.symphonyoss.fin.security.id.ticker",
                "value":    “tag"
            }
        ]
    }
}


<mention email="user@domain"/>
<mention uid="numericUserId"/>


Code Block
{"mention123456789": {
        "type": "com.symphony.user.mention",
        "version":  "1.0",
        "id":  [
            {
                "type":     “com.symphony.user.userId",
                "value":    123456789
            }
        ]
    }
}



Template Macros

The API Agent will support Freemarker templating (see http://freemarker.org/). Any EntityJSON content associated with a message will be made available as the data model in the Freemarker interpreter and macros can then be used to expand the supplied MessageML document into a PresentationML document which fully describes the message.

...