|
Module Simantics/DocumentLinkingThis module is undocumented. This is a list of its definitions. createDocumentLink :: Resource -> Resource -> <WriteGraph> Resource
A document outside any model is linked by its URI rather than by the resource. Linking fails if the location is not part of a model, or if the document belongs to a different model than the location. exportDocumentToPDF :: Resource -> String -> <Proc> ()
Any other extension, and any other failure during the export, raises an error. findDocumentReferences :: Resource -> <ReadGraph> [Resource] The source links in the model of the given document that still refer to it
although a newer version exists. The result is a Java fixDocumentReferences :: [Resource] -> <Proc> () Moves the given source links to the newest version of the documents they
refer to, in one write transaction. It is meant to be given what
updateToLatest :: Resource -> <WriteGraph> () Moves a source link to the newest version of the document it refers to, following the chain of newer versions to its end. Does nothing if the link already points at the newest version. |