Share UI: Download logfile from repository

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2014 05:06 AM
Hi folks,
first of all, I'm not sure if this is the right sub-forum for my question. If not, I'm sorry and please move the topic.
I have the following requirement:
In Share, I have my custom extension. The UI of the extension should contain a link like "Download Logfile". If a user (admin in all cases) clicks on it, the "alfresco.log" from the repository should be provided for download.
What I have already:
- A post webscript in Share that connects to Alfresco after the user click on the link
- A java based webscript in the repository that receive the request
- Based on JMX I get the logfile and prepare it already
Now I'm struggling, because I dont know what I have to send back to Share as response and how I can provide the file. Are there any best-practises that I should follow? Send a link to the repository directly? Or stream the file to Share and handle the download on Share side?
Thanks for any hints,
Itzamna
first of all, I'm not sure if this is the right sub-forum for my question. If not, I'm sorry and please move the topic.
I have the following requirement:
In Share, I have my custom extension. The UI of the extension should contain a link like "Download Logfile". If a user (admin in all cases) clicks on it, the "alfresco.log" from the repository should be provided for download.
What I have already:
- A post webscript in Share that connects to Alfresco after the user click on the link
- A java based webscript in the repository that receive the request
- Based on JMX I get the logfile and prepare it already
Now I'm struggling, because I dont know what I have to send back to Share as response and how I can provide the file. Are there any best-practises that I should follow? Send a link to the repository directly? Or stream the file to Share and handle the download on Share side?
Thanks for any hints,
Itzamna
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2014 02:18 PM
Did you check out how the link "Download JMX Dump" works [only available in Enterprise edition]?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 04:30 AM
Hi,
no I did not. I know the feature but I'm not sure if I can use it as a template. The reason is, that the Admin Console is running on repository side (i.e. http://localhost:8080/alfresco/service/enterprise/admin/admin-supporttools) and not on Share side. On repository side it is much more easier because I dont need to establish a connection to the repository (I am there…) and I dont take care about sending the content back to the Share application (the initial problem above).
But thank you, I'll have a closer look to that anyway.
no I did not. I know the feature but I'm not sure if I can use it as a template. The reason is, that the Admin Console is running on repository side (i.e. http://localhost:8080/alfresco/service/enterprise/admin/admin-supporttools) and not on Share side. On repository side it is much more easier because I dont need to establish a connection to the repository (I am there…) and I dont take care about sending the content back to the Share application (the initial problem above).
But thank you, I'll have a closer look to that anyway.
