On Wed, Jun 12, 2013 at 1:40 PM, Vijitha Kumara <[email protected]> wrote:
> This seems to be a design decision taken while developing the API? Is > there any other method accepting id in jaggery module? > Yes, it has a method. > On Wed, Jun 12, 2013 at 11:26 AM, Chan <[email protected]> wrote: >>> >>>> Hi all, >>>> I want to know if there is a way to get an asset with the id of it. >>>> >>>> var carbon = require('carbon'), >>>> server = new carbon.server.Server(), >>>> registry = new carbon.registry.Registry(server, { >>>> username : 'admin', >>>> tenantId : -1234 >>>> }); >>>> am = new carbon.registry.ArtifactManager(registry, 'android'); >>>> >>>> like am.get(id)? I looked into the >>>> documentation<http://wso2.org/project/registry/1.1/docs/apidocs/org/wso2/registry/CoreRegistry.html>and >>>> saw that registry has a get method but that requires a path parameter >>>> (Also this is pure greg, I am accessing Greg through the jaggery module). >>>> >>> am.get(id) is already there. Did you miss it? You can pass an id(resource uuid) that you get from a am.list() or something else. > >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email [email protected]* >>>> * ~Mobile +94712112165* >>>> * ~Website dulithawijewantha.com >>>> * >>>> * ~Blog >>>> blog.dulithawijewantha.com<http://dulichan.github.io/chan/> >>>> * >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> -- >>> Pulasthi Supun >>> Software Engineer; WSO2 Inc.; http://wso2.com, >>> Email: [email protected] >>> Mobile: +94 (71) 9258281 >>> Blog : http://pulasthisupun.blogspot.com/ >>> Git hub profile: https://github.com/pulasthi >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email [email protected]* >> * ~Mobile +94712112165* >> * ~Website dulithawijewantha.com >> * >> * ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/> >> * >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Vijitha Kumara > Senior Software Engineer; WSO2, Inc.; http://wso2.com/ > email: [email protected] > > > Lean . Enterprise . Middleware > -- *Ruchira Wageesha **Associate Technical Lead** & Member, Management Committee, Development Technologies* *WSO2 Inc. - lean . enterprise . middleware | wso2.com* * email: [email protected], blog: ruchirawageesha.blogspot.com, mobile: +94 77 5493444*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
