Attachment: URI to download an attachment
Description
There are situations in which it is necessary to obtain a URI to download a file represented by an Attachment instance.
Attachments can represent either a file, uploaded to a TG-based system, or a hyperlink, pointing to an external resource such as a Google Doc document.
Currently, users can use the share feature for Entity Masters and Centres to "share" attachments as TG artefacts. However, there are use cases where users need links pointing to the resources, represented by attachments, allowing to access/download those resources instead of opening Attachment Master or Centre. Such links are useful as references in emails, documents, etc.
Entity Attachment needs to be enhanced with calculated readonly property url: String that would dynamically compute the full attachment's URL (i.e. with the protocol, domain name, etc.). Such URL can be shared with others, embedded as links into RichText documents, etc.
Attachment can represent both files and hyperlinks. The value for url for hyperlink attachments should be the value of the hyperlink.
Include Attachment.url into Attachment Master and Centre.
Expected outcome
Ability for users of TG-based solutions to get URIs to download/access resources represented by TG attachments.