08-16-2010 06:55 PM
08-17-2010 01:27 AM
04-03-2011 08:56 PM
This would not be that difficult to implement.Since it wasnt that diffucult to implement I have to ask was it ever successfully implemented?
1) A web script that generates the unique URL extension (Or – you could even use one of the public URL shorteners to generate the URL). (Depending on how you do this…like if you were doing this as a UI action it could be a js script). If you wanted to keep this all in Alfresco you could either keep the map of unique URLs as a content items in Alfresco (single file or as a multi valued property on a node). I would probably go with having an aspect added to the stores the unique URL extension.
2) A web script mapper that when called with the unique ID, looks up the appropriate node and returns a standard html page (generated from an FTL) that starts a download and gives them a link where they can start the download.
3) To manage the length of time or count: This would be part of the aspect that is added to the node. For count after the max number of downloads (through the URL mapper script) removes the aspect. For the length of time, have the URL mapper check to see if the time has expired. If expired have it remove the aspect. Or you could leave it for future instance that you want to re-enable this for…but you you return some message.
4) Part of the script that generates the unique ID would also give read-only permission to "EVERYONE" for the node/content for the duration of your access logic.
In total you are probably looking at 2 or 3 web scripts.
Jared
04-04-2011 05:40 AM
3) To manage the length of time or count: This would be part of the aspect that is added to the node. For count after the max number of downloads (through the URL mapper script) removes the aspect. For the length of time, have the URL mapper check to see if the time has expired. If expired have it remove the aspect. Or you could leave it for future instance that you want to re-enable this for…but you you return some message.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.