autonomyimanageworksite-sdk

Is there a Content-Type for an NRL?


I am storing NRLs in my SharePoint 2013 site, in a document library. I've made some server configuration to enable the filetype association for icon and context menus, but IIS still doesn't launch the file with Desk Site, it downloads.

Is there a MIME type / Content Type for an NRL?


Solution

  • I don't believe there is a MIME type for NRLs

    In any case I think the better option is for you to register a custom HttpHandler that understands how to parse NRLs. It would do something like the following:

    1. Parse the NRL for the iManage server, database, doc number, version, etc - NRLs are just text files with an easily understood format
    2. Create a connection to the target iManage database, ensuring you authenticate as the user making the request in SharePoint
    3. Find the target IManDocument using regular iManage API methods
    4. Assert a MIME type based on the IManDocument.Extension property
    5. Attempt to download a copy of the document to a temporary location on the server
    6. Stream the document back to the client

    When you authenticate with the iManage server you may need to assume that the Windows user that authenticated with SharePoint corresponds to a user in iManage. Impersonating the user may be important because otherwise users may be able to open privileged documents. If for some reasons this is not important to you then you can of course authenticate using a privileged iManage service account