Hi Chan

Did you take a look at GenericArtifactManager [1]. it has a method to get
an artifact through the id not sure how applicable it is to your scenario
just take a look and see if it does the job

[1]
http://wso2.org/project/registry/4.1.1/docs/apidocs/governance/org/wso2/carbon/governance/api/generic/GenericArtifactManager.html#getGenericArtifact(java.lang.String)

Regards,
Pulasthi


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).
>
> --
> 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

Reply via email to