Hi Subash,

We have download buttons in multiple places in the UI, and IMO, its better
to ask a Yes/No question rather than having a checkbox. Just like the
Info/Warn popups there is a confirmation popup that you find in Carbon
which you can use.

Further to this, IIRC, the Servlet makes a BE call to get the resource and
then stream it. If that's the case, its much better to get the archive
prepared at the BE and get it fetched in a single call (I mean within the
servlet) rather than making multiple BE calls to get all the resources.

Thanks,
Senaka.

On Wed, Nov 14, 2012 at 11:47 PM, Subash Chaturanga <[email protected]> wrote:

> FYI, please find the attachment.
>
>
> On Thu, Nov 15, 2012 at 10:55 AM, Subash Chaturanga <[email protected]>wrote:
>
>> Hi Senaka,
>>
>> On Mon, Nov 12, 2012 at 3:44 PM, Senaka Fernando <[email protected]> wrote:
>>
>>> Hi Subash,
>>>
>>> This is for any resource. The idea is that when you click the download
>>> button, you should get a prompt (only for the resources having
>>> dependencies), whether you will download with dependencies or not. If you
>>> choose to download with dependencies, the downloaded file will be a ZIP
>>>  archive, and the media type will be that of a ZIP file. Also, please note
>>> that this only will happen when you click on the Download button (on the
>>> resource browser), and not any of the permalinks. The Admin API should have
>>> a separate method (in the corresponding Admin Service) for download with
>>> dependencies.
>>>
>>
>> And the download happens directly through servlet level. So in that case
>> we do not need admin services to call. But we have a similar method
>> implemented in the GetResourceContentProcessor.
>>
>> In the FE, for the option to select whether to download with dependencies
>> or not shall we add a check box with the name with dependencies next to the
>> download button.
>> UI will be as follows
>>
>>  <Download>  [checkbox] with dependencies
>>
>>
>>
>>> Thanks,
>>> Senaka.
>>>
>>>
>>> On Mon, Nov 12, 2012 at 11:04 AM, Subash Chaturanga <[email protected]>wrote:
>>>
>>>> Moving to dev list.
>>>>
>>>>
>>>> On Mon, Nov 12, 2012 at 3:23 PM, Subash Chaturanga <[email protected]>wrote:
>>>>
>>>>> Hi Senaka,
>>>>>
>>>>> This is regarding the issue you raised at [1] . Is this for governance
>>>>> artifacts in particular or for all registry resources in common ?
>>>>> So I will assume;
>>>>> - We consider downloading the direct (immediate ) dependencies only.
>>>>> - At downloading, the options will be
>>>>>       - Download the file itself
>>>>>       - Download it with its all dependencies
>>>>>
>>>>> [1] - https://wso2.org/jira/browse/REGISTRY-1468
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>>
>>>>> Subash Chaturanga
>>>>> Software Engineer
>>>>> WSO2 Inc. http://wso2.com
>>>>>
>>>>> email - [email protected]
>>>>> phone - 077 2225922
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Subash Chaturanga
>>>> Software Engineer
>>>> WSO2 Inc. http://wso2.com
>>>>
>>>> email - [email protected]
>>>> phone - 077 2225922
>>>>
>>>>
>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Member - Integration Technologies Management Committee;
>>> Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> Subash Chaturanga
>> Software Engineer
>> WSO2 Inc. http://wso2.com
>>
>> email - [email protected]
>> phone - 077 2225922
>>
>>
>
>
> --
>
> Subash Chaturanga
> Software Engineer
> WSO2 Inc. http://wso2.com
>
> email - [email protected]
> phone - 077 2225922
>
>


-- 
*Senaka Fernando*
Member - Integration Technologies Management Committee;
Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to