You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Mariangela Hills (JIRA)" <ji...@apache.org> on 2014/11/19 13:22:34 UTC

[jira] [Created] (STRATOS-990) Remove method for list of subscribed cartridges

Mariangela Hills created STRATOS-990:
----------------------------------------

             Summary: Remove method for list of subscribed cartridges
                 Key: STRATOS-990
                 URL: https://issues.apache.org/jira/browse/STRATOS-990
             Project: Stratos
          Issue Type: Sub-task
          Components: REST API
    Affects Versions: 4.1.0 M4
            Reporter: Mariangela Hills


Users will not need to subscribe to a cartridge anymore with composite applications. Therefore, this method will not be applicable. Please remove this method.

   @GET
    @Path("/cartridge/list/subscribed")
    @Produces("application/json")
    @Consumes("application/json")
    @AuthorizationAction("/permission/admin/manage/view/cartridge")
    public Response getSubscribedCartridges() throws RestAPIException {
        List<Cartridge> cartridgeList = StratosApiV41Utils.getSubscriptions(null, null, getConfigContext());
        // Following is very important when working with axis2
        ResponseBuilder rb = Response.ok();
        rb.entity(cartridgeList.isEmpty() ? new Cartridge[0] : cartridgeList.toArray(new Cartridge[cartridgeList.size()]));
        return rb.build();
    }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Created] (STRATOS-990) Remove method for list of subscribed cartridges

Posted by Udara Liyanage <ud...@wso2.com>.
Hi Mari,

Thanks for pointing this out. The CLI commands which uses this is too
deprecated. I will remove this.

On Wed, Nov 19, 2014 at 5:52 PM, Mariangela Hills (JIRA) <ji...@apache.org>
wrote:

> Mariangela Hills created STRATOS-990:
> ----------------------------------------
>
>              Summary: Remove method for list of subscribed cartridges
>                  Key: STRATOS-990
>                  URL: https://issues.apache.org/jira/browse/STRATOS-990
>              Project: Stratos
>           Issue Type: Sub-task
>           Components: REST API
>     Affects Versions: 4.1.0 M4
>             Reporter: Mariangela Hills
>
>
> Users will not need to subscribe to a cartridge anymore with composite
> applications. Therefore, this method will not be applicable. Please remove
> this method.
>
>    @GET
>     @Path("/cartridge/list/subscribed")
>     @Produces("application/json")
>     @Consumes("application/json")
>     @AuthorizationAction("/permission/admin/manage/view/cartridge")
>     public Response getSubscribedCartridges() throws RestAPIException {
>         List<Cartridge> cartridgeList =
> StratosApiV41Utils.getSubscriptions(null, null, getConfigContext());
>         // Following is very important when working with axis2
>         ResponseBuilder rb = Response.ok();
>         rb.entity(cartridgeList.isEmpty() ? new Cartridge[0] :
> cartridgeList.toArray(new Cartridge[cartridgeList.size()]));
>         return rb.build();
>     }
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897